Messages
{
"topic": "protected_trial_update:0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"trials": [
{
"trial_id": 7,
"user": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"campaign_addr": "0xfedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210",
"market": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"trial_subaccount": "0x9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba",
"side": "Buy",
"protected_amount": 5000000,
"protected_amount_usd": 5,
"size": 0.5,
"mark_at_open": 65000000000,
"mark_at_open_usd": 65000,
"leverage_at_open": 10,
"opened_at_ms": 1699564800000,
"expires_at_ms": 1699651200000,
"status": "Active"
}
]
}Websockets
Protected_trial_update
Real-time protected trial updates for the user. Each push replaces the active set (absence = removal); terminal DTOs are advisory. Degraded reset DTOs omit open-sourced fields like market and opened_at_ms.
WSS
protected_trial_update:
{userAddr}
Messages
{
"topic": "protected_trial_update:0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"trials": [
{
"trial_id": 7,
"user": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"campaign_addr": "0xfedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210",
"market": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"trial_subaccount": "0x9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba",
"side": "Buy",
"protected_amount": 5000000,
"protected_amount_usd": 5,
"size": 0.5,
"mark_at_open": 65000000000,
"mark_at_open_usd": 65000,
"leverage_at_open": 10,
"opened_at_ms": 1699564800000,
"expires_at_ms": 1699651200000,
"status": "Active"
}
]
}userAddr
type:string
required
User wallet address (Aptos address format, e.g. 0x123...)
ProtectedTrialUpdateMessage
type:object
Real-time protected trial updates for the user. Each push replaces the active set (absence = removal); terminal DTOs are advisory. Degraded reset DTOs omit open-sourced fields like market and opened_at_ms.
⌘I

