Connect to wss://synthesis.trade/api/v1/balance/ws and then send JSON messages over that socket.
Supported message types:
subscribeunsubscribeSubscription behavior:
wallets array when subscribingaddressassets to restrict the assets returned for that walletSupported addresses:
WebSocket message type. Supported values: subscribe or unsubscribe.
Wallet subscription list. Maximum 500 wallet entries total, and no more than 500 total requested assets across all entries.
[
{
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"assets": ["USDC", "12345"]
},
{
"address": "7xKXtg2CWz9P8VxP1Wm2G7x5Q8Y9LwYH6a7b8c9d1e2F"
}
]WebSocket connection established