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

Method fetch_option_ohlcv

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

Source from the content-addressed store, hash-verified

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

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