Agent Websocket API
Action Websocket
Endpoint
wss://api.fractrade.xyz/ws/actions/{agent_id}Authentication
wss://api.fractrade.xyz/ws/actions/{agent_id}?api_key={api_key}&api_secret={api_secret}Message Format
{
"action_id": "action-uuid",
"action_type": "EXECUTE_HYPERLIQUID_PERP_TRADE",
"agent_id": "agent-uuid",
"config": {
"position": {
"asset": "BTC",
"size": 0.1,
"side": "LONG",
"leverage": 10,
"exchange": "hyperliquid"
}
},
"created_at": "2023-01-01T00:00:00Z",
"status": "PENDING"
}Action Types
Action Type
Description
Example: Connecting with Python
Example: Connecting with JavaScript
User Channel Websocket
Rate Limits
Error Codes
Code
Description
Last updated