hbdmapi / huobi_futures_Python

An Asynchronous Event-driven High-frequency Trading System,huobi future,huobi coin margined swap, huobi usdt margined swap included.
MIT License
267 stars 113 forks source link

HuobiSwap API documentation: example-specification mismatch #42

Closed ebenali closed 4 years ago

ebenali commented 4 years ago

Under Websocket subscribe BBO:

The spec says:

mrid | true | string | Order ID
.
.
version | true | string | version ID.

while both fields in the example to the right show an integral type value:

 {
     "ch": "market.BTC-USD.bbo",
     "ts": 1489474082831,
     "tick":{
        "ch": "market.BTC-USD.bbo",
        "mrid": 269073229,
        "id": 1539843937,
        "bid": [9999.9101, 1],
        "ask": [10010.9800, 10],
        "ts": 1539843937417,
        "version": 1539843937
      }
    }
foonsun commented 4 years ago

Thanks for your feedback.We will fix it ASAP.

foonsun commented 4 years ago

We have fixed it.The type of version should be long type.