Websocket
Websocket connection are exposed at wss://hl-v2.pearprotocol.io/ws.
The following channels are available:
open-orders
trade-histories
positions
twap-details
notifications
account-summary
market-data
Each channel provides real-time updates for the respective data type. Clients can subscribe to one or more channels to receive live updates.
Currently we only support one address subscription per websocket connection.
Example Websocket Subscription
{
"action": "subscribe",
"address": "0xYourEthereumAddressHere",
"channels": ["open-orders", "positions"]
}Last updated