I’m working with cbpro python library. There’s a nice websockets thingy in there and it works famously, it seems, in keeping me up to date on order statuses, except for a fill itself.
I can pull the info via a get_fills() routine, but this is an API call and not a websockets message., and I sure don’t want to have to loop around waiting for a fill. Does anyone have any experience with this library, and this topic in particular?
[hmmm. I hope I don’t have to monitor the entire product ticker searching for my order id…]
Thank you.
Seems to be, and it does provide the data I need. I read that User channel is exactly that, a user-specific subset of the “full” channel.
Are you working in Python and, if so, can you recommend a resource for learning good OO and program design practices? I’m coming at it from the top down, which can make for much refactoring.
The WebSocket API is an advanced technology that makes it possible to open a two-way interactive communication session between the user’s browser and a server.
With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply.
To view the contents of a binary WebSocket message:
Open the Network panel.
Click WS to filter out all resources that aren’t WebSocket connections.
Click the Name of a WebSocket connection to inspect it.
Click the Messages tab.
Click one of the Binary Message entries to inspect it.