Theme switcher

Get Ledgers

Header Parameters

Authorizationstring Required

Bearer token issued for your trading account.

Query Parameters

frominteger Required

Start of the time range.

tointeger Required

End of the time range.

typearray

Entry type to filter by: SWAP, COMMISSION, DEPOSIT, WITHDRAWAL, CREDIT_IN, CREDIT_OUT, CLOSE_POSITION, or AGENT_COMMISSION. Repeat the parameter for several types; omit it to return all of them. An unsupported value returns 400 error://trader-api/ledger-type-invalid.

Enum values:
SWAPCOMMISSIONDEPOSITWITHDRAWALCREDIT_INCREDIT_OUTCLOSE_POSITIONAGENT_COMMISSION
limitinteger

Maximum number of entries to return. Defaults to 100, maximum 500.

Minimum
1
Maximum
500
Default value
100

Response

200
Object

OK

Response Attributes

ledgersarray

Cash-flow entries within the requested range.

Show child attributes

400
Object

error://trader-api/ledger-type-invalid

Response Attributes

pathstring Required

The request path with the actual identifiers filled in, without query parameters.

statusinteger Required

The HTTP status code, the same as the response status.

typestring Required

A stable identifier of the kind of error, in the form error://trader-api/{code}. Base your error handling on this field, not on title or detail.

Enum values:
error://trader-api/ledger-type-invalid
titlestring Required

A short, human-readable name of the error. Several types can share the same title.

detailstring Required

A description of this particular occurrence. The wording can change, so never parse it or base logic on it.

additionalInfoobject | null

Extra information as key-value pairs.

401
Object

error://trader-api/unauthorized

Response Attributes

pathstring Required

The request path with the actual identifiers filled in, without query parameters.

statusinteger Required

The HTTP status code, the same as the response status.

typestring Required

A stable identifier of the kind of error, in the form error://trader-api/{code}. Base your error handling on this field, not on title or detail.

Enum values:
error://trader-api/unauthorized
titlestring Required

A short, human-readable name of the error. Several types can share the same title.

detailstring Required

A description of this particular occurrence. The wording can change, so never parse it or base logic on it.

additionalInfoobject | null

Extra information as key-value pairs.

403
Object

error://trader-api/forbidden

Response Attributes

pathstring Required

The request path with the actual identifiers filled in, without query parameters.

statusinteger Required

The HTTP status code, the same as the response status.

typestring Required

A stable identifier of the kind of error, in the form error://trader-api/{code}. Base your error handling on this field, not on title or detail.

Enum values:
error://trader-api/forbidden
titlestring Required

A short, human-readable name of the error. Several types can share the same title.

detailstring Required

A description of this particular occurrence. The wording can change, so never parse it or base logic on it.

additionalInfoobject | null

Extra information as key-value pairs.

Was this section helpful?

GET

/

Select
1

Response

Was this section helpful?