Skip to main content
GET
/
api
/
v1
/
position
/
closed-pnl
Get Closed PnL
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

sub_account_address
string
required
symbol
null | string
Example:

"BTCUSDC"

start_time
string<date-time> | null
end_time
string<date-time> | null
limit
integer<int32> | null
Required range: x >= 0
cursor
string | null

Response

200 - application/json

Closed PnL

Closed PnL response.

list
object[]
required
next_page_cursor
string
required