Get trade history
Query Parameters
"account"
string
required
User's wallet address
42trU9A5...
"symbol"
string
optional
Market symbol to filter by
BTC
"start_time"
integer
optional
Start time in milliseconds
1625097600000
"end_time"
integer
optional
End time in milliseconds
1625184000000
"limit"
integer
optional
Maximum number of records to return, defaults to system defined limit
100
"offset"
integer
optional
Number of records to skip
0
Response
Status 200: Successfully retrieved portfolio position history
'event_type'
string
"fulfill_taker"
if maker
"fulfill_maker"
if taker
'side'
string
"open_long"
"open_short"
"close_long"
"close_short"
'cause'
string
"normal"
regular user-initiated trading
"market_liquidation"
position was liquidated due to insufficient margin
"backstop_liquidation"
position was liquidated by backstop mechanism
"settlement"
position was closed due to Auto-Deleveraging (ADL) or other settlement
Status 400: Invalid request parameters
Status 401: Unauthorized access
Status 500: Internal server error
Code Example (Python)
Last updated