Closed koal closed 6 years ago
I've been having inconsistent data outisde of the websocket with PublicClient.get_product_historic_rates()...
The most recent product ticker is always right, but it is never within the most recent historic rate high/low range. Something is definitely fishy.
The websocket broadcasts all transactions from the GDAX engine. This includes new orders, changed orders deleted orders and matched orders. If you're only interested in the last traded price, then you want to check that the message type == 'match' before checking the price.
Thanks. I realized that I was retrieving data form the order book.
Thanks for your answers.
I'm introducing myself on python and exchanges APIs. I was doing some tests last night, trying to connect and retrieve data from gdax websocket modding the example code on for your websocketclient.
This is the code I was running:
As you see, it's a slight mod of your file. After a few seconds, the console shows:
According to the gdax web information, the price was quite stable, and it did not pass from 883€, but the feed show prices from 900 to 1040 .
What I'm missing? What's wrong in my mods?
Thanks for your work.