Skip to content

Commit

Permalink
Merge pull request #6702 from yancong001/fix/gateio_perpetual_candles…
Browse files Browse the repository at this point in the history
…_more_than_100
  • Loading branch information
cardosofede committed Dec 8, 2023
2 parents e63368c + f4dad8f commit 817a910
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@ async def fetch_candles(self,
limit: Optional[int] = 500):
rest_assistant = await self._api_factory.get_rest_assistant()
params = {"contract": self._ex_trading_pair, "interval": self.interval, "limit": limit}
if start_time or end_time:
del params["limit"]
if start_time:
params["from"] = str(start_time)
if end_time:
params["to"] = str(end_time)

candles = await rest_assistant.execute_request(url=self.candles_url,
throttler_limit_id=CONSTANTS.CANDLES_ENDPOINT,
Expand Down

0 comments on commit 817a910

Please sign in to comment.