API ReferencePX Account

Funding ledger

GET/api/v1/px/ledgerBearer

PX Discovery & AccountE6 decimal strings throughoutA | B

Every change to the account's funds, one row each, newest first. balanceAfterE6 is the balance once that entry took effect and refId points at whatever caused it (an order, a liquidation, a settlement — the domain follows kind).

This is the authoritative read for reconciliation: positions and orders are projections, the ledger is the book.

Send Authorization: Bearer <token>. The token is issued by POST /api/v1/auth/verify, and expires after 24h idle or 7d after issuance.

Query parameters

  • limitintegerqueryoptional

    Maximum number of rows returned

    Default100Range≥ 1Example20

Response

200Ledger entries
  • entriesobject(PxLedgerEntry)[]

    Funding ledger, newest first

  • entryIdstring

    Ledger entry id

    Example"entry_01K5H2M3N7"

  • kindstring

    Change type; it determines what refId points at

  • amountE6string

    Change amount, as an E6 string; negative when funds leave

  • balanceAfterE6string

    Balance after this entry, as an E6 string

  • refIdstringnullable

    Id of the object that caused this entry; its domain follows kind

  • createdAtstringnullable

    Time it happened

Switch status codes in the response example to view errors. For all codes, see the Errors page.