Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.
/v1/accounts/{accountId}/ordersGET
Authorization
bearerAuth *Bearer <token>
Token in: header
Path Parameters
accountId *string
Min length: 1
Query Parameters
from?string
Optional initial window start. Defaults deterministically to 30 days before to. Omit with cursor.
to?string
Required on initial windowed reads. The server never defaults it to now. Omit with cursor.
limit?integer
Default: 100Min: 1Max: 50000
cursor?string
requireSynced?booleannull
Default: false
Response
200 · Historical orders
accountId *string
login *string
server *string
observedAt *string
latencyMs *number
data *object[]
Show item properties
id *string
positionId *string
symbol *string
type *"buy" | "sell" | "buy_limit" | "sell_limit" | "buy_stop" | "sell_stop" | "buy_stop_limit" | "sell_stop_limit" | "close_by" | "other"
rawType *integer
state *"started" | "placed" | "canceled" | "partial" | "filled" | "rejected" | "expired" | "request_add" | "request_modify" | "request_cancel" | "other"
rawState *integer
volumeInitial *string
volumeCurrent *string
priceOpen *string
stopLoss?string
takeProfit?string
setupAt *string
doneAt?string
magic *string
reason *"client" | "mobile" | "web" | "expert" | "sl" | "tp" | "so" | "other"
rawReason *integer
comment?string
nextCursor *stringnull
historySynced *boolean
historyState?"converged" | "unsettled"
settledThrough?string (date-time)
serverClockOffsetSeconds *integernull
serverClockOffsetSource?"derived" | "inherited" | null
202 · The account session is warming; retry the same request
error *object | object
400 · Invalid request
error *object | object
401 · Invalid API key
error *object | object
403 · Insufficient API key scope or connected account slot limit
error *object | object
404 · Resource not found
error *object | object
409 · Account is not active
error *object | object
410 · Pagination cursor expired
error *object | object
422 · The broker or terminal rejected the operation
error *object | object
429 · Rate limit exceeded
error *object | object
500 · Unexpected failure
error *object | object
503 · Capacity exhausted, upstream unavailable, or history coverage unsettled
error *object | object
504 · Upstream request timed out
error *object | object
Request example
curl -X GET "https://api.fivesocket.com/v1/accounts/<accountId>/orders" \ -H "Authorization: Bearer <token>"