mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 03:41:14 +00:00
chore: don't suggest binance.us supports futures
it doesn't.
This commit is contained in:
@@ -4,7 +4,7 @@ from freqtrade.exchange.common import MAP_EXCHANGE_CHILDCLASS
|
|||||||
from freqtrade.exchange.exchange import Exchange
|
from freqtrade.exchange.exchange import Exchange
|
||||||
|
|
||||||
# isort: on
|
# isort: on
|
||||||
from freqtrade.exchange.binance import Binance
|
from freqtrade.exchange.binance import Binance, Binanceus, Binanceusdm
|
||||||
from freqtrade.exchange.bingx import Bingx
|
from freqtrade.exchange.bingx import Bingx
|
||||||
from freqtrade.exchange.bitget import Bitget
|
from freqtrade.exchange.bitget import Bitget
|
||||||
from freqtrade.exchange.bitmart import Bitmart
|
from freqtrade.exchange.bitmart import Bitmart
|
||||||
|
|||||||
@@ -544,3 +544,26 @@ class Binance(Exchange):
|
|||||||
cache[ft_symbol] = delist_dt
|
cache[ft_symbol] = delist_dt
|
||||||
|
|
||||||
return cache.get(pair, None)
|
return cache.get(pair, None)
|
||||||
|
|
||||||
|
|
||||||
|
class Binanceusdm(Binance):
|
||||||
|
"""Binacne USDM Exchange
|
||||||
|
Same as Binance - only futures trading is supported (via ccxt).
|
||||||
|
|
||||||
|
Not actually necessary, binance should be preferred.
|
||||||
|
"""
|
||||||
|
|
||||||
|
_supported_trading_mode_margin_pairs: list[tuple[TradingMode, MarginMode]] = [
|
||||||
|
(TradingMode.FUTURES, MarginMode.CROSS),
|
||||||
|
(TradingMode.FUTURES, MarginMode.ISOLATED),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
class Binanceus(Binance):
|
||||||
|
"""Binance US exchange class.
|
||||||
|
Minimal adjustment to disable futures trading for the US subsidiary of Binance
|
||||||
|
"""
|
||||||
|
|
||||||
|
_supported_trading_mode_margin_pairs: list[tuple[TradingMode, MarginMode]] = [
|
||||||
|
(TradingMode.SPOT, MarginMode.NONE),
|
||||||
|
]
|
||||||
|
|||||||
@@ -45,8 +45,6 @@ BAD_EXCHANGES = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MAP_EXCHANGE_CHILDCLASS = {
|
MAP_EXCHANGE_CHILDCLASS = {
|
||||||
"binanceus": "binance",
|
|
||||||
"binanceusdm": "binance",
|
|
||||||
"okex": "okx",
|
"okex": "okx",
|
||||||
"gateio": "gate",
|
"gateio": "gate",
|
||||||
"huboi": "htx",
|
"huboi": "htx",
|
||||||
@@ -54,6 +52,8 @@ MAP_EXCHANGE_CHILDCLASS = {
|
|||||||
|
|
||||||
SUPPORTED_EXCHANGES = [
|
SUPPORTED_EXCHANGES = [
|
||||||
"binance",
|
"binance",
|
||||||
|
"binanceus",
|
||||||
|
"binanceusdm",
|
||||||
"bingx",
|
"bingx",
|
||||||
"bitmart",
|
"bitmart",
|
||||||
"bitget",
|
"bitget",
|
||||||
|
|||||||
Reference in New Issue
Block a user