get
https://sandbox.kyan.sh/v2/account_history
Retrieves the trading history and account events for a specified smart account address. This includes trades, transfers (deposits/withdrawals), settlements, and funding events with standardized event structures, advanced filtering, and cursor-based pagination for efficient retrieval.
This endpoint is currently in Beta and has not been fully validated in production yet.
Features:
- Cursor-based pagination: Efficient retrieval of large datasets with
cursorandnext_cursor - Advanced filtering: Filter by event types, actions, markets, and transfer types
- Sorting: Sort results by timestamp or realized P&L (ascending or descending)
- Standardized events: Consistent event structure across all event types with typed
datafield
Available Event Types:
trade: Trade execution events (buy/sell)transfer: Deposit and withdrawal eventssettlement: Option settlement eventsfunding: Funding rate payment events
Available Actions (for filtering):
- Trade actions:
buy,sell - Transfer actions:
deposit,withdrawal - Settlement actions:
settlement - Funding actions:
funding
