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
|
"fetchMyTrades": [], # Trades for order - fee detection
|
||||||
"createLimitOrder": [],
|
"createLimitOrder": [],
|
||||||
"createMarketOrder": [], # Either OR for orders
|
"createMarketOrder": [], # Either OR for orders
|
||||||
# "setLeverage": [], # Margin/Futures trading
|
|
||||||
# "setMarginMode": [], # Margin/Futures trading
|
|
||||||
# "fetchFundingHistory": [], # Futures trading
|
|
||||||
# Public
|
# Public
|
||||||
"fetchOrderBook": [],
|
"fetchOrderBook": [],
|
||||||
"fetchL2OrderBook": [],
|
"fetchL2OrderBook": [],
|
||||||
@@ -94,17 +91,24 @@ EXCHANGE_HAS_OPTIONAL: dict[str, list[str]] = {
|
|||||||
"fetchTickers": [], # For volumepairlist?
|
"fetchTickers": [], # For volumepairlist?
|
||||||
"fetchTrades": [], # Downloading trades data
|
"fetchTrades": [], # Downloading trades data
|
||||||
"fetchOrders": ["fetchOpenOrders", "fetchClosedOrders"], # , # Refinding balance...
|
"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
|
# ccxt.pro
|
||||||
"watchOHLCV": [],
|
"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):
|
def calculate_backoff(retrycount, max_retries):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user