Subscription Management
Subscribe to Topics
To subscribe to data streams, send a JSON message with this structure:
json
{
"action": "subscribe",
"subscriptions": [
{
"topic": "topic_name",
"type": "message_type",
"filters": "optional_filter_string",
"clob_auth": {
"key": "api_key",
"secret": "api_secret",
"passphrase": "api_passphrase"
},
"gamma_auth": {
"address": "wallet_address"
}
}
]
}Unsubscribe from Topics
To unsubscribe from data streams, send a similar message with "action": "unsubscribe".