Logo
Explore Help
Sign In
Simon/Cycles
1
0
Fork 0
You've already forked Cycles
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Cycles/cycles/market_fees.py

8 lines
202 B
Python
Raw Normal View History

Refactor backtesting logic and introduce new components - Replaced TrendDetectorSimple with a new Backtest class for improved backtesting functionality. - Integrated argparse for configuration file input, allowing dynamic parameter setting. - Added MarketFees and Supertrends classes to handle fee calculations and trend detection, respectively. - Removed deprecated main_debug.py and trend_detector_simple.py files to streamline the codebase. - Enhanced process_timeframe_data to utilize the new Backtest class for executing trades and calculating results. - Updated Storage class to support writing backtest results with metadata.
2025-05-21 17:03:34 +08:00
import pandas as pd
class MarketFees:
@staticmethod
def calculate_okx_taker_maker_fee(amount, is_maker=True):
fee_rate = 0.0008 if is_maker else 0.0010
return amount * fee_rate
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 26ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API