fixing support for HitBTC #4778
hitbtc by default send candle from beginning (not most recently) this change fixed
This commit is contained in:
parent
4005708f85
commit
b69a9134f5
@ -874,8 +874,15 @@ class Exchange:
|
|||||||
"Fetching pair %s, interval %s, since %s %s...",
|
"Fetching pair %s, interval %s, since %s %s...",
|
||||||
pair, timeframe, since_ms, s
|
pair, timeframe, since_ms, s
|
||||||
)
|
)
|
||||||
|
#fixing support for HitBTC #4778
|
||||||
data = await self._api_async.fetch_ohlcv(pair, timeframe=timeframe,
|
if self.name== 'HitBTC':
|
||||||
|
data = await self._api_async.fetch_ohlcv(pair, timeframe=timeframe,
|
||||||
|
since=since_ms,
|
||||||
|
limit=self.ohlcv_candle_limit(timeframe),
|
||||||
|
params={"sort": "DESC"}
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
data = await self._api_async.fetch_ohlcv(pair, timeframe=timeframe,
|
||||||
since=since_ms,
|
since=since_ms,
|
||||||
limit=self.ohlcv_candle_limit(timeframe))
|
limit=self.ohlcv_candle_limit(timeframe))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user