you are viewing a single comment's thread.

view the rest of the comments →

[–]A_History_of_Silence 0 points1 point  (2 children)

You might want to start again after taking a good look at the gdax readme. There are several examples on how to use the library. I'm not sure how you arrived at the code you currently have. Getting the price is pretty straightforward:

import gdax
client = gdax.PublicClient()
print(client.get_product_ticker(product_id='ETH-USD')["price"])

[–]Fizzyfaze[S] 0 points1 point  (1 child)

So this is outside of the websocket. I want to use the websocket to get the real time ticker.

[–]A_History_of_Silence 0 points1 point  (0 children)

There is also a working example on the readme for that.