GET
/api/orders/{trader}/{asset}/historyGet order history for an asset
Base URL
https://api.storm.tgParameters
Path
traderstringrequiredExample:
0:72c310c83de5060d21674d58379b9a153854338a63d82588f8d912f83a3f8660assetstringrequiredPosition base asset
- minLength
- 1
Example:
BTCQuery
statusesstring · enum[]optionalArray items · string · enum
string · enum
Allowed:
"seq_pending" "seq_executing" "active" "pending" "tx_sent" "executed" "canceled" "canceled_by_sequencer" "expired" "error"View example
[
"seq_pending"
]directionstring · enumoptionalAllowed:
"long" "short"Example:
longlimitintegeroptionalDefault: 20
Example:
20offsetintegeroptionalDefault: 0
Example:
0walletIdstringoptionalExample:
stringExamples
curl --request GET 'https://api.storm.tg/api/orders/{trader}/{asset}/history' \
--header 'Accept: application/json'const response = await fetch("https://api.storm.tg/api/orders/{trader}/{asset}/history", {
method: "GET",
headers: {
"Accept": "application/json"
},
});
console.log(response.status, await response.text());import requests
response = requests.request(
"GET",
"https://api.storm.tg/api/orders/{trader}/{asset}/history",
headers={"Accept":"application/json"},
timeout=30,
)
print(response.status_code, response.text)Responses
200Responseapplication/json
dataobject[]requiredArray items · object
idstringrequiredExample:
stringtxIdstringrequiredExample:
stringtraderstringrequiredExample:
0:72c310c83de5060d21674d58379b9a153854338a63d82588f8d912f83a3f8660masterTraderstringrequiredExample:
0:72c310c83de5060d21674d58379b9a153854338a63d82588f8d912f83a3f8660marketstringrequiredExample:
0:72c310c83de5060d21674d58379b9a153854338a63d82588f8d912f83a3f8660statusstring · enumrequiredAllowed:
"seq_pending" "seq_executing" "active" "pending" "tx_sent" "executed" "canceled" "canceled_by_sequencer" "expired" "error"Example:
seq_pendingtypestring · enumrequiredAllowed:
"market" "stop" "take" "limit" "liquidation" "max_pnl" "add_margin" "remove_margin"Example:
marketdirectionstring · enumrequiredAllowed:
"long" "short"Example:
longstopPricestring · int64 · nullablerequired- pattern
- ^(0|-?[1-9][0-9]*)$
Example:
0limitPricestring · int64 · nullablerequired- pattern
- ^(0|-?[1-9][0-9]*)$
Example:
0stopTriggerPricestring · int64 · nullablerequired- pattern
- ^(0|-?[1-9][0-9]*)$
Example:
0takeTriggerPricestring · int64 · nullablerequired- pattern
- ^(0|-?[1-9][0-9]*)$
Example:
0leveragestring · int64 · nullablerequired- pattern
- ^(0|-?[1-9][0-9]*)$
Example:
0indexnumber · nullablerequiredExample:
0positionIdstring · nullablerequiredExample:
stringexpirationstring · date-time · nullablerequiredExample:
2026-01-01T00:00:00Zamountstring · int64 · nullablerequired- pattern
- ^(0|-?[1-9][0-9]*)$
Example:
0indexPricestring · int64 · nullablerequired- pattern
- ^(0|-?[1-9][0-9]*)$
Example:
0settlementOraclePricestring · int64 · nullablerequired- pattern
- ^(0|-?[1-9][0-9]*)$
Example:
0createdAtstring · date-timerequiredExample:
2026-01-01T00:00:00Zerrorstring · nullablerequiredExample:
stringView example
[
{
"id": "string",
"txId": "string",
"trader": "0:72c310c83de5060d21674d58379b9a153854338a63d82588f8d912f83a3f8660",
"masterTrader": "0:72c310c83de5060d21674d58379b9a153854338a63d82588f8d912f83a3f8660",
"market": "0:72c310c83de5060d21674d58379b9a153854338a63d82588f8d912f83a3f8660",
"status": "seq_pending",
"type": "market",
"direction": "long",
"stopPrice": "0",
"limitPrice": "0",
"stopTriggerPrice": "0",
"takeTriggerPrice": "0",
"leverage": "0",
"index": 0,
"positionId": "string",
"expiration": "2026-01-01T00:00:00Z",
"amount": "0",
"indexPrice": "0",
"settlementOraclePrice": "0",
"createdAt": "2026-01-01T00:00:00Z",
"error": "string"
}
]totalCountintegerrequired- minimum
- 0
Example:
0{
"data": [],
"totalCount": 0
}