Skip to main content
GET
/
api
/
v1
/
order
/
history
Get Order History
curl --request GET \
  --url https://api.ekiden.fi/api/v1/order/history \
  --header 'Authorization: Bearer <token>'
{
  "list": [
    {
      "avg_price": "<string>",
      "close_on_trigger": true,
      "created_time": "1672531200000",
      "cum_exec_fee": "<string>",
      "cum_exec_qty": "<string>",
      "cum_exec_value": "<string>",
      "last_price_on_created": "<string>",
      "leaves_qty": "<string>",
      "leaves_value": "<string>",
      "margin_mode": "Cross",
      "order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "order_status": "New",
      "order_type": "Limit",
      "post_only": true,
      "price": "<string>",
      "qty": "<string>",
      "reduce_only": true,
      "side": "Sell",
      "sub_account_address": "<string>",
      "symbol": "BTCUSDC",
      "time_in_force": "GTC",
      "updated_time": "1672531200000",
      "cancel_type": "<unknown>",
      "closed_pnl": "<string>",
      "create_type": "<unknown>",
      "expire_time": "1672531200000",
      "order_link_id": "<unknown>",
      "reject_reason": "<unknown>",
      "stop_order_type": "<unknown>",
      "tpsl": "<unknown>",
      "trigger": "<unknown>"
    }
  ],
  "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

Trading vault address (subaccount) to query against.

symbol
null | string
Example:

"BTCUSDC"

order_id
null | string<uuid>
order_link_id
null | string
order_filter
null | any
order_status
enum<string>[] | null
Available options:
New,
PartiallyFilled,
Untriggered,
CancelRequested,
Rejected,
PartiallyFilledCanceled,
Filled,
Canceled,
Triggered,
Deactivated,
Expired
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

Orders

Response for order list and order history requests.

list
object[]
required
next_page_cursor
string
required