cURL
curl --request GET \ --url https://api.ekiden.fi/api/v1/position/closed-pnl \ --header 'Authorization: Bearer <token>'
{ "list": [ { "avg_entry_price": "<string>", "avg_exit_price": "<string>", "close_fee": "<string>", "closed_pnl": "<string>", "closed_size": "<string>", "created_time": "1672531200000", "cum_entry_value": "<string>", "cum_exit_value": "<string>", "exec_type": "Trade", "fill_count": "<string>", "leverage": "<string>", "open_fee": "<string>", "order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "order_price": "<string>", "order_type": "Limit", "qty": "<string>", "side": "Sell", "sub_account_address": "<string>", "symbol": "BTCUSDC", "updated_time": "1672531200000" } ], "next_page_cursor": "<string>" }
Query user’s closed profit and loss records
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"BTCUSDC"
x >= 0
Closed PnL
Closed PnL response.
Show child attributes