Buckets:

download
raw
1.11 kB
"""HTX exchange subclass"""
import logging
from freqtrade.constants import BuySell
from freqtrade.exchange import Exchange
from freqtrade.exchange.exchange_types import FtHas
logger = logging.getLogger(__name__)
class Htx(Exchange):
"""HTX exchange class.
Contains adjustments needed for Freqtrade to work with this exchange.
"""
_ft_has: FtHas = {
"stoploss_on_exchange": True,
"stop_price_param": "stopPrice",
"stop_price_prop": "stopPrice",
"stoploss_order_types": {"limit": "stop-limit"},
"l2_limit_range": [5, 10, 20],
"l2_limit_range_required": False,
"ohlcv_candle_limit_per_timeframe": {
"1w": 500,
"1M": 500,
},
"trades_has_history": False, # Endpoint doesn't have a "since" parameter
}
def _get_stop_params(self, side: BuySell, ordertype: str, stop_price: float) -> dict:
params = self._params.copy()
params.update(
{
"stopPrice": stop_price,
"operator": "lte",
}
)
return params

Xet Storage Details

Size:
1.11 kB
·
Xet hash:
82f96ba0be71023a03d7c28760d83df53d240c9374eff518e81c6f76a7054a8d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.