{
"jsonrpc": "2.0",
"method": "subscription",
"params": {
"subscription": "0x6f7a8b9c0d1e...",
"channel": "position",
"filters": {
"address": "0xAccc...",
"symbols": [
"BTC"
]
},
"result": {
"symbol": "BTC",
"positionSide": "SHORT",
"size": "0.01",
"entryPrice": "65100.0",
"markPrice": "65050.0",
"unrealizedPnl": "0.5",
"leverage": "10",
"marginType": "cross",
"eventTime": 1710000002000
}
}
}Position changes (requires authentication, available on hyperliquid, aster, and lighter servers only)
{
"jsonrpc": "2.0",
"method": "subscription",
"params": {
"subscription": "0x6f7a8b9c0d1e...",
"channel": "position",
"filters": {
"address": "0xAccc...",
"symbols": [
"BTC"
]
},
"result": {
"symbol": "BTC",
"positionSide": "SHORT",
"size": "0.01",
"entryPrice": "65100.0",
"markPrice": "65050.0",
"unrealizedPnl": "0.5",
"leverage": "10",
"marginType": "cross",
"eventTime": 1710000002000
}
}
}API key for authentication (required for private channels)
Position change notification