Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

huobi - watchTicker - allow different topics #16198

Merged
merged 2 commits into from Dec 26, 2022

Conversation

pcriadoperez
Copy link
Contributor

topic: market.{marketId}.detail

huobi.watchTicker(BTC/USDT)
{'ask': None,
 'askVolume': None,
 'average': 16831.6,
 'baseVolume': 1041.4857005618476,
 'bid': None,
 'bidVolume': None,
 'change': -1.52,
 'close': 16830.84,
 'datetime': '2022-12-25T04:25:07.628Z',
 'high': 16856.98,
 'info': {'amount': 1041.4857005618476,
          'close': 16830.84,
          'count': 23386,
          'high': 16856.98,
          'id': 322994613001,
          'low': 16809.0,
          'open': 16832.36,
          'version': 322994613001,
          'vol': 17530669.84725299},
 'last': 16830.84,
 'low': 16809.0,
 'open': 16832.36,
 'percentage': -0.0090302251140065,
 'previousClose': None,
 'quoteVolume': 17530669.84725299,
 'symbol': 'BTC/USDT',
 'timestamp': 1671942307628,
 'vwap': 16832.367297789846}

topic: market.{marketId}.bbo

huobi.watchTicker(BTC/USDT)
{'ask': 16830.85,
'askVolume': 0.5189305239854196,
'average': None,
'baseVolume': None,
'bid': 16830.84,
'bidVolume': 0.728783,
'change': None,
'close': None,
'datetime': '2022-12-25T04:26:57.399Z',
'high': None,
'info': {'ask': 16830.85,
         'askSize': 0.5189305239854196,
         'bid': 16830.84,
         'bidSize': 0.728783,
         'quoteTime': 1671942417398,
         'seqId': 161499606270,
         'symbol': 'btcusdt'},
'last': None,
'low': None,
'open': None,
'percentage': None,
'previousClose': None,
'quoteVolume': None,
'symbol': 'BTC/USDT',
'timestamp': 1671942417399,
'vwap': None}

topic: market.{marketId}.ticker

huobi.watchTicker(BTC/USDT)
{'ask': 16830.85,
'askVolume': 0.5197295239854196,
'average': 16833.52,
'baseVolume': 1041.8649674065791,
'bid': 16830.84,
'bidVolume': 0.659688,
'change': -5.36,
'close': 16830.84,
'datetime': '2022-12-25T04:27:30.618Z',
'high': 16856.98,
'info': {'amount': 1041.8649674065791,
        'ask': 16830.85,
        'askSize': 0.5197295239854196,
        'bid': 16830.84,
        'bidSize': 0.659688,
        'close': 16830.84,
        'count': 23393,
        'high': 16856.98,
        'lastPrice': 16830.84,
        'lastSize': 0.06078,
        'low': 16809.0,
        'open': 16836.2,
        'vol': 17537053.13994048},
'last': 16830.84,
'low': 16809.0,
'open': 16836.2,
'percentage': -0.0318361625544956,
'previousClose': None,
'quoteVolume': 17537053.13994048,
'symbol': 'BTC/USDT',
'timestamp': 1671942450618,
'vwap': 16832.366658410534}

js/pro/huobi.js Outdated Show resolved Hide resolved
@carlosmiei
Copy link
Collaborator

LGTM ✅

p huobi watchTicker "BTC/USDT"               
Python v3.10.8
CCXT v2.4.27
huobi.watchTicker(BTC/USDT)
{'ask': 16845.55,
 'askVolume': 1.2852651415596403,
 'average': None,
 'baseVolume': None,
 'bid': 16845.54,
 'bidVolume': 0.858996,
 'change': None,
 'close': None,
 'datetime': '2022-12-26T10:27:51.833Z',
 'high': None,
 'info': {'ask': 16845.55,
          'askSize': 1.2852651415596403,
          'bid': 16845.54,
          'bidSize': 0.858996,
          'quoteTime': 1672050471831,
          'seqId': 161507243239,
          'symbol': 'btcusdt'},
 'last': None,
 'low': None,
 'open': None,
 'percentage': None,
 'previousClose': None,
 'quoteVolume': None,
 'symbol': 'BTC/USDT',
 'timestamp': 1672050471833,
 'vwap': None}

@carlosmiei carlosmiei self-assigned this Dec 26, 2022
@kroitor kroitor merged commit ee91206 into ccxt:master Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants