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

Method parse_ws_ohlcv

python/ccxt/pro/backpack.py:522–546  ·  view source on GitHub ↗
(self, ohlcv, market=None)

Source from the content-addressed store, hash-verified

520 client.resolve([symbol, timeframe, ohlcv], messageHash)
521
522 def parse_ws_ohlcv(self, ohlcv, market=None) -> list:
523 #
524 # {
525 # E: '1754519557526056',
526 # T: '2025-08-07T00:00:00',
527 # X: False,
528 # c: '3680.520000000',
529 # e: 'kline',
530 # h: '3681.370000000',
531 # l: '3667.650000000',
532 # n: 255,
533 # o: '3670.150000000',
534 # s: 'ETH_USDC',
535 # t: '2025-08-06T22:00:00',
536 # v: '62.2621000'
537 # },
538 #
539 return [
540 self.parse8601(self.safe_string(ohlcv, 'T')),
541 self.safe_number(ohlcv, 'o'),
542 self.safe_number(ohlcv, 'h'),
543 self.safe_number(ohlcv, 'l'),
544 self.safe_number(ohlcv, 'c'),
545 self.safe_number(ohlcv, 'v'),
546 ]
547
548 async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
549 """

Callers 1

handle_ohlcvMethod · 0.95

Calls 3

safe_stringMethod · 0.80
safe_numberMethod · 0.80
parse8601Method · 0.45

Tested by

no test coverage detected