MCPcopy Create free account
hub / github.com/ccxt/ccxt / fetch_option_ohlcv

Method fetch_option_ohlcv

python/ccxt/async_support/gate.py:3294–3302  ·  view source on GitHub ↗
(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={})

Source from the content-addressed store, hash-verified

3292 return self.parse_ohlcvs(response, market, timeframe, since, limit)
3293
3294 async def fetch_option_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={}):
3295 # separated option logic because the from, to and limit parameters weren't functioning
3296 await self.load_markets()
3297 market = self.market(symbol)
3298 request = {}
3299 request, params = self.prepare_request(market, None, params)
3300 request['interval'] = self.safe_string(self.timeframes, timeframe, timeframe)
3301 response = await self.publicOptionsGetCandlesticks(self.extend(request, params))
3302 return self.parse_ohlcvs(response, market, timeframe, since, limit)
3303
3304 async def fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={}):
3305 """

Callers 1

fetch_ohlcvMethod · 0.95

Calls 7

prepare_requestMethod · 0.95
safe_stringMethod · 0.80
load_marketsMethod · 0.45
marketMethod · 0.45
extendMethod · 0.45
parse_ohlcvsMethod · 0.45

Tested by

no test coverage detected