Posts

Showing posts from October, 2017

Connecting Python to the GDAX Websocket Feed

Reading the GDAX Feed using PythonGDAX provides a public websocket service which allows anyone to read real-time GDAX data. This is a great service when you consider that it is free to anyone that has the skills to utilize it. This feed could be used for automated trading purposes or for performing real-time calculations that are not included in the GDAX web UI.
In this case, there is not an official GDAX Python module. There are some notable modules on GitHub which you could utilize. We will put together some code using the well established websocket module.
A WORD OF CAUTIONCoinbase handles financial assets. Always use the sandbox when testing code and ideas. Use appropriate security measures when using API credentials.  GoalsCreate a subscription request in JSON formatSend the subscription request to wss://ws-feed.gdax.comDisplay the resultsDisplay the execution duration in seconds each time  PrepInstall the python websocket and json modulesChoose the GDAX Channels to join Python…