Subscribe
Request Body
| Parameter | Type | Description |
|---|---|---|
method* | string | Must be "subscribe" |
subscription* | object | See below |
subscription.type* | string | Must be "userTransactions" |
subscription.user* | string | Your wallet address (lowercase), e.g., "0x742d35cc6634c0532925a3b844bc9e7595f0beb" |
Response
Subscription Confirmation:Transaction Fields
| Field | Type | Description |
|---|---|---|
transactionId | string | Unique transaction hash |
type | string | Transaction type (see table below) |
timestamp | number | Transaction time in milliseconds |
blockNumber | number | Block containing transaction |
txIndex | number | Transaction index within block |
orderId | string | Related order ID (if applicable) |
data | object | Type-specific transaction data |
Transaction Types
| Type | Description |
|---|---|
OrderPlaced | New order submitted |
OrderCanceled | Order canceled by user |
OrderFilled | Order executed (partial or complete) |
Deposit | Funds deposited to account |
Withdrawal | Funds withdrawn from account |
Transfer | Internal transfer between accounts |
FundingPayment | Funding rate payment |
InterestPayment | Interest charged on borrowed funds |
Liquidation | Position liquidated |
PositionModified | Position take-profit/stop-loss updated |
Type-Specific Data
OrderPlaced
OrderFilled
Deposit
Withdrawal
FundingPayment
Unsubscribe
Notes
- Transactions sent in real-time as they occur
- User address must be lowercase
- Transaction data structure varies by type