freqtrade_origin/freqtrade/exchange/bitmart.py

23 lines
561 B
Python
Raw Normal View History

2024-05-12 14:58:33 +00:00
"""Bitmart exchange subclass"""
2023-11-09 05:35:15 +00:00
import logging
from freqtrade.exchange import Exchange
2024-09-04 05:15:17 +00:00
from freqtrade.exchange.exchange_types import FtHas
2023-11-09 05:35:15 +00:00
logger = logging.getLogger(__name__)
class Bitmart(Exchange):
"""
Bitmart exchange class. Contains adjustments needed for Freqtrade to work
with this exchange.
"""
2024-09-04 05:15:17 +00:00
_ft_has: FtHas = {
"stoploss_on_exchange": False, # Bitmart API does not support stoploss orders
"ohlcv_candle_limit": 200,
2024-06-20 16:24:43 +00:00
"trades_has_history": False, # Endpoint doesn't seem to support pagination
2023-11-09 05:35:15 +00:00
}