A statement for a period, as CSV
const url = 'https://api.sotirea.com/v1/statement?from=example&to=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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.sotirea.com/v1/statement?from=example&to=example' \ --header 'Authorization: Bearer <token>'For each asset: the opening balance, every movement made final in the period (received, sent, network_fee, sweep) and the closing balance, read from the ledger in one snapshot, so opening plus the movements is the closing balance exactly. Columns: row (opening, movement or closing), network, chain_id, asset, symbol, recognised, decimals, at, kind, account, amount, amount_base_units, tx_hash, counterparty, reference (the payment’s id), posting_id, journal_id. Amounts are exact decimals beside their base units; times are UTC. A period is at most 366 days and 100,000 movements.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The first day, YYYY-MM-DD, in UTC.
The last day, YYYY-MM-DD, included.
Only this vault’s; without it, the organisation’s vaults and gas pools.
Responses
Section titled “Responses”The file itself, as an attachment.
default
Section titled “default”Refused or failed, in words a person can act on.
object
object
object
object
Quote it when asking about a request.
Example
{ "success": false}