Align coinbase download with ccxt limits

Align with https://github.com/ccxt/ccxt/issues/9268
This commit is contained in:
Matthias 2021-05-27 07:38:47 +02:00
parent 8e89d3e6e4
commit 42453333be
5 changed files with 25 additions and 3 deletions

View File

@ -7,6 +7,7 @@ from freqtrade.exchange.bibox import Bibox
from freqtrade.exchange.binance import Binance from freqtrade.exchange.binance import Binance
from freqtrade.exchange.bittrex import Bittrex from freqtrade.exchange.bittrex import Bittrex
from freqtrade.exchange.bybit import Bybit from freqtrade.exchange.bybit import Bybit
from freqtrade.exchange.coinbasepro import Coinbasepro
from freqtrade.exchange.exchange import (available_exchanges, ccxt_exchanges, from freqtrade.exchange.exchange import (available_exchanges, ccxt_exchanges,
is_exchange_known_ccxt, is_exchange_officially_supported, is_exchange_known_ccxt, is_exchange_officially_supported,
market_is_active, timeframe_to_minutes, timeframe_to_msecs, market_is_active, timeframe_to_minutes, timeframe_to_msecs,

View File

@ -18,7 +18,6 @@ class Bybit(Exchange):
may still not work as expected. may still not work as expected.
""" """
# fetchCurrencies API point requires authentication for Bybit,
_ft_has: Dict = { _ft_has: Dict = {
"ohlcv_candle_limit": 200, "ohlcv_candle_limit": 200,
} }

View File

@ -0,0 +1,23 @@
""" CoinbasePro exchange subclass """
import logging
from typing import Dict
from freqtrade.exchange import Exchange
logger = logging.getLogger(__name__)
class Coinbasepro(Exchange):
"""
CoinbasePro exchange class. Contains adjustments needed for Freqtrade to work
with this exchange.
Please note that this exchange is not included in the list of exchanges
officially supported by the Freqtrade development team. So some features
may still not work as expected.
"""
_ft_has: Dict = {
"ohlcv_candle_limit": 300,
}

View File

@ -17,7 +17,6 @@ class Hitbtc(Exchange):
may still not work as expected. may still not work as expected.
""" """
# fetchCurrencies API point requires authentication for Hitbtc,
_ft_has: Dict = { _ft_has: Dict = {
"ohlcv_candle_limit": 1000, "ohlcv_candle_limit": 1000,
"ohlcv_params": {"sort": "DESC"} "ohlcv_params": {"sort": "DESC"}

View File

@ -1,7 +1,7 @@
numpy==1.20.3 numpy==1.20.3
pandas==1.2.4 pandas==1.2.4
ccxt==1.50.30 ccxt==1.50.48
# Pin cryptography for now due to rust build errors with piwheels # Pin cryptography for now due to rust build errors with piwheels
cryptography==3.4.7 cryptography==3.4.7
aiohttp==3.7.4.post0 aiohttp==3.7.4.post0