// Subscribe to users
{
"action": "subscribe",
"platform": "polymarket",
"version": 1,
"type": "orders",
"filters": {
"users": ["0x6031b6eed1c97e853c6e0f03ad3ce3529351f96d"]
}
}
// Response: { "type": "ack", "subscription_id": "sub_abc123" }
// Subscribe to condition IDs
{
"action": "subscribe",
"platform": "polymarket",
"version": 1,
"type": "orders",
"filters": {
"condition_ids": ["0x17815081230e3b9c78b098162c33b1ffa68c4ec29c123d3d14989599e0c2e113"]
}
}
// Response: { "type": "ack", "subscription_id": "sub_xyz789" }
// Later, unsubscribe from just the first one
{
"action": "unsubscribe",
"version": 1,
"subscription_id": "sub_abc123"
}
// sub_xyz789 will continue to receive events