mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 14:00:38 +00:00
feat: split futures "has" parameters to a separate variable
This commit is contained in:
@@ -84,9 +84,6 @@ EXCHANGE_HAS_OPTIONAL: dict[str, list[str]] = {
|
||||
"fetchMyTrades": [], # Trades for order - fee detection
|
||||
"createLimitOrder": [],
|
||||
"createMarketOrder": [], # Either OR for orders
|
||||
# "setLeverage": [], # Margin/Futures trading
|
||||
# "setMarginMode": [], # Margin/Futures trading
|
||||
# "fetchFundingHistory": [], # Futures trading
|
||||
# Public
|
||||
"fetchOrderBook": [],
|
||||
"fetchL2OrderBook": [],
|
||||
@@ -94,17 +91,24 @@ EXCHANGE_HAS_OPTIONAL: dict[str, list[str]] = {
|
||||
"fetchTickers": [], # For volumepairlist?
|
||||
"fetchTrades": [], # Downloading trades data
|
||||
"fetchOrders": ["fetchOpenOrders", "fetchClosedOrders"], # , # Refinding balance...
|
||||
# "fetchFundingRateHistory": [], # Futures trading
|
||||
# "fetchPositions": [], # Futures trading
|
||||
# "fetchLeverageTiers": [], # Futures initialization
|
||||
# "fetchMarketLeverageTiers": [], # Futures initialization
|
||||
# "fetchPremiumIndexOHLCV": [], # Futures additional data
|
||||
# "fetchMarkOHLCV": [], # Futures additional data
|
||||
# "fetchIndexOHLCV": [], # Futures additional data
|
||||
# ccxt.pro
|
||||
"watchOHLCV": [],
|
||||
}
|
||||
|
||||
EXCHANGE_HAS_OPTIONAL_FUTURES: dict[str, list[str]] = {
|
||||
# private
|
||||
"setLeverage": [], # Margin/Futures trading
|
||||
"setMarginMode": [], # Margin/Futures trading
|
||||
"fetchFundingHistory": [], # Futures trading
|
||||
# Public
|
||||
"fetchFundingRateHistory": [], # Futures trading
|
||||
"fetchPositions": [], # Futures trading
|
||||
"fetchLeverageTiers": ["fetchMarketLeverageTiers"], # Futures initialization
|
||||
"fetchMarkOHLCV": [],
|
||||
"fetchIndexOHLCV": [], # Futures additional data
|
||||
"fetchPremiumIndexOHLCV": [],
|
||||
}
|
||||
|
||||
|
||||
def calculate_backoff(retrycount, max_retries):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user