General WSS information
Base Address
wss://fstream.monochrome.exchange/ws/userRequest Headers
The request header of the compression extension protocol must be added. Sec-Websocket-Extensions:permessage-deflateSubscription Steps
Step 1: The user need to call the interface: /v1/user/listen-key to get the listenKey. Step 2: When subscribing to user-related websocket events, users need to send: {“method”:”SUBSCRIBE”,”params”:[“order@{listenKey obtained in the previous step}”],”id”:”test1”} If you receive “invalid_listen_key”, it means that the listenKey is expired or invalid, and you need to re-request to obtain the listenKey. ps: listenKey is obtained through the interface. User-related data will be pushed after subscription.Request message format
subscribe:subscribe
Response message format
Response-success
response-token invalid
Subscription parameters
format {topic}@{listenKey},…Balance change
subscribe:Response
Change position
subscribe:Response
Transactions
subscribe:Response
user Order
subscribe:Response
Message
subscribe:Response

