BitMEX / api-connectors

Libraries for connecting to the BitMEX API.
https://www.bitmex.com/app/restAPI
909 stars 804 forks source link

Bucketed Data all wrong #382

Open TheLegendAli opened 4 years ago

TheLegendAli commented 4 years ago

when I compare the open and closed position for bitmex to trading view they are way off some time as much as $80. No Im not using testnet and its not off by one hour. Here is the code

client = bitmex.bitmex(test=False) client.Trade.Trade_getBucketed(symbol="XBTUSD", partial = False, binSize='1h', count=10, startTime=datetime.datetime(2018, 3, 11, 0)).result()

PwnPeter commented 4 years ago

Same

hariseldon78 commented 4 years ago

when I compare the open and closed position for bitmex to trading view they are way off some time [as much as $80. No Im not using testnet and its not off by one hour. Here is the code

On tradingview which data are you using? It's normal that all exchanges have different data because they are independent markets.