Skip to main content
Use the command line to open a WebSocket connection to the Sandbox BTC Market Data Feed.
See the WebSocket API reference for more details.

➊ Install WebSocket Client

The quickest way to open a connection is by using wscat, which runs in the terminal. Using the Python websocket-client package requires a bit of code and the Python shell.
Open the terminal and install wscat using the -g (global) flag.
Ensure wscat is working. If you see the version number, the module is working:
Leave the terminal window open.

➋ Connect to Sandbox Feed

Open a long-lived connection to the Sandbox BTC Market Data Feed.

➌ Review Sandbox Feed

If everything worked, you see the initial SNAPSHOT and then an UPDATE stream in the terminal.
Sandbox BTC Market Data Feed (wscat)