Added funding_fee method headers to exchange, and implemented some of the methods

This commit is contained in:
Sam Germain
2021-09-09 01:19:24 -06:00
parent d559b6d6c6
commit d54117990b
8 changed files with 78 additions and 25 deletions

View File

@@ -3,12 +3,12 @@ import logging
from typing import Dict, List, Optional
import ccxt
from datetime import time
from freqtrade.exceptions import (DDosProtection, InsufficientFundsError, InvalidOrderException,
OperationalException, TemporaryError)
from freqtrade.exchange import Exchange
from freqtrade.exchange.common import retrier
from freqtrade.utils import hours_to_time
logger = logging.getLogger(__name__)
@@ -23,7 +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])
funding_fee_times: List[int] = [0, 8, 16] # hours of the day
def stoploss_adjust(self, stop_loss: float, order: Dict) -> bool:
"""