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}/tradesGET
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 · Closed trades
accountId *string
login *string
server *string
observedAt *string
latencyMs *number
data *object[]
Show item properties
id *string
orderId *string
positionId *string
symbol *string
side *"buy" | "sell"
volume *string
closePrice *string
profit *string
commission *string
swap *string
fee *string
magic *string
entry *"in" | "out" | "inout" | "out_by" | "other"
rawEntry *integer
reason *"client" | "mobile" | "web" | "expert" | "sl" | "tp" | "so" | "rollover" | "vmargin" | "split" | "other"
rawReason *integer
closedAt *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>/trades" \ -H "Authorization: Bearer <token>"