Storm Trade
EN
EnglishРусскийNot available
Menu
On this page

Get order history for an asset

Try it out ↓
GET/api/orders/{trader}/{asset}/history
Get order history for an assetPositions and order history
Base URL https://api.storm.tg

Parameters

Path
traderstringrequired
Example: 0:72c310c83de5060d21674d58379b9a153854338a63d82588f8d912f83a3f8660
assetstringrequired

Position base asset

minLength
1
Example: BTC
Query
statusesstring · enum[]optional
Array 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 · enumoptional
Allowed: "long" "short"
Example: long
limitintegeroptional

Default: 20

Example: 20
offsetintegeroptional

Default: 0

Example: 0
walletIdstringoptional
Example: string

Examples

curl --request GET 'https://api.storm.tg/api/orders/{trader}/{asset}/history' \
  --header 'Accept: application/json'

Responses

200Responseapplication/json
dataobject[]required
Array items · object
idstringrequired
Example: string
txIdstringrequired
Example: string
traderstringrequired
Example: 0:72c310c83de5060d21674d58379b9a153854338a63d82588f8d912f83a3f8660
masterTraderstringrequired
Example: 0:72c310c83de5060d21674d58379b9a153854338a63d82588f8d912f83a3f8660
marketstringrequired
Example: 0:72c310c83de5060d21674d58379b9a153854338a63d82588f8d912f83a3f8660
statusstring · enumrequired
Allowed: "seq_pending" "seq_executing" "active" "pending" "tx_sent" "executed" "canceled" "canceled_by_sequencer" "expired" "error"
Example: seq_pending
typestring · enumrequired
Allowed: "market" "stop" "take" "limit" "liquidation" "max_pnl" "add_margin" "remove_margin"
Example: market
directionstring · enumrequired
Allowed: "long" "short"
Example: long
stopPricestring · int64 · nullablerequired
pattern
^(0|-?[1-9][0-9]*)$
Example: 0
limitPricestring · int64 · nullablerequired
pattern
^(0|-?[1-9][0-9]*)$
Example: 0
stopTriggerPricestring · int64 · nullablerequired
pattern
^(0|-?[1-9][0-9]*)$
Example: 0
takeTriggerPricestring · int64 · nullablerequired
pattern
^(0|-?[1-9][0-9]*)$
Example: 0
leveragestring · int64 · nullablerequired
pattern
^(0|-?[1-9][0-9]*)$
Example: 0
indexnumber · nullablerequired
Example: 0
positionIdstring · nullablerequired
Example: string
expirationstring · date-time · nullablerequired
Example: 2026-01-01T00:00:00Z
amountstring · int64 · nullablerequired
pattern
^(0|-?[1-9][0-9]*)$
Example: 0
indexPricestring · int64 · nullablerequired
pattern
^(0|-?[1-9][0-9]*)$
Example: 0
settlementOraclePricestring · int64 · nullablerequired
pattern
^(0|-?[1-9][0-9]*)$
Example: 0
createdAtstring · date-timerequired
Example: 2026-01-01T00:00:00Z
errorstring · nullablerequired
Example: string
View 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