Added funding_times property to exchange

This commit is contained in:
Sam Germain
2021-09-08 13:41:32 -06:00
parent f5248be043
commit baaf516aa6
5 changed files with 24 additions and 11 deletions

View File

@@ -1,12 +1,12 @@
""" Binance exchange subclass """
import logging
from typing import Dict, Optional
from typing import Dict, List
import ccxt
from datetime import time
from freqtrade.exceptions import (DDosProtection, InsufficientFundsError, InvalidOrderException,
OperationalException, TemporaryError)
from freqtrade.exchange import Exchange
from freqtrade.exchange import Exchange, hours_to_time
from freqtrade.exchange.common import retrier
@@ -23,6 +23,7 @@ class Binance(Exchange):
"trades_pagination_arg": "fromId",
"l2_limit_range": [5, 10, 20, 50, 100, 500, 1000],
}
funding_fee_times: List[time] = hours_to_time([0, 8, 16])
def stoploss_adjust(self, stop_loss: float, order: Dict) -> bool:
"""