Trading Endpoints
Get Orders
Trading Endpoints
Get Orders
Get all orders of the user
GET
/
api
/
v1
/
spotorder
/
orders
curl --request GET \
--url https://apiserver.beratrade.io/api/v1/spotorder/orders \
--header 'Bliq-Key: <bliq-key>' \
--header 'Bliq-Secret: <bliq-secret>'
[
{
"body": {
"orders": [
{
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"subaccount_id": "<string>",
"market_id": 123,
"side": "BUY",
"type": "MARKET",
"total_filled_x18": "<string>",
"expiry_ts": 123,
"status": "CANCELLED",
"timestamp": 123,
"signature": "<string>",
"session_key": "<string>",
"amount_x18": "<string>",
"price_x18": "<string>"
}
]
},
"message": "<string>",
"status": 123
}
]
Headers
bliq_key
obtained during authentication
bliq_secret
obtained during authentication
Response
200
application/json
List of user orders
Available options:
BUY
, SELL
Available options:
MARKET
, LIMIT
Available options:
CANCELLED
, FILLED
, PARTIAL
curl --request GET \
--url https://apiserver.beratrade.io/api/v1/spotorder/orders \
--header 'Bliq-Key: <bliq-key>' \
--header 'Bliq-Secret: <bliq-secret>'
[
{
"body": {
"orders": [
{
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"subaccount_id": "<string>",
"market_id": 123,
"side": "BUY",
"type": "MARKET",
"total_filled_x18": "<string>",
"expiry_ts": 123,
"status": "CANCELLED",
"timestamp": 123,
"signature": "<string>",
"session_key": "<string>",
"amount_x18": "<string>",
"price_x18": "<string>"
}
]
},
"message": "<string>",
"status": 123
}
]