2024-05-12 14:58:33 +00:00
|
|
|
"""Bingx exchange subclass"""
|
|
|
|
|
2024-04-02 05:14:52 +00:00
|
|
|
import logging
|
|
|
|
|
|
|
|
from freqtrade.exchange import Exchange
|
2024-09-04 05:15:17 +00:00
|
|
|
from freqtrade.exchange.exchange_types import FtHas
|
2024-04-02 05:14:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
|
|
|
|
|
|
class Bingx(Exchange):
|
|
|
|
"""
|
|
|
|
Bingx exchange class. Contains adjustments needed for Freqtrade to work
|
|
|
|
with this exchange.
|
|
|
|
"""
|
|
|
|
|
2024-09-04 05:15:17 +00:00
|
|
|
_ft_has: FtHas = {
|
2024-04-02 05:14:52 +00:00
|
|
|
"ohlcv_candle_limit": 1000,
|
2024-05-25 14:51:28 +00:00
|
|
|
"stoploss_on_exchange": True,
|
2024-05-20 07:53:52 +00:00
|
|
|
"stoploss_order_types": {"limit": "limit", "market": "market"},
|
2024-05-26 07:24:19 +00:00
|
|
|
"order_time_in_force": ["GTC", "IOC", "PO"],
|
2024-06-20 16:24:43 +00:00
|
|
|
"trades_has_history": False, # Endpoint doesn't seem to support pagination
|
2024-04-02 05:14:52 +00:00
|
|
|
}
|