List an account's ledger entries.
GET
/api/ledger/{accountId}
const url = 'https://api.tradr.cloud/api/ledger/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0?page=1&pageSize=50';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.tradr.cloud/api/ledger/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0?page=1&pageSize=50'Authed. The ledger is the cash record for one account: deposits, withdrawals, and the cash effect of each fill, newest first. runningBalanceAtFirstRow is the balance as at the first row on this page, so a client can reconstruct the running balance down the page without fetching the whole history.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”accountId
required
string format: uuid
Query Parameters
Section titled “Query Parameters”page
integer
pageSize
integer
Responses
Section titled “Responses”One page of ledger entries.
Media typeapplication/json
object
entries
Array<object>
object
hasMore
boolean
page
integer
pageSize
integer
runningBalanceAtFirstRow
string
Examplegenerated
{ "entries": [ {} ], "hasMore": true, "page": 1, "pageSize": 1, "runningBalanceAtFirstRow": "example"}No such account for this user.