Skip to main content
POST
/
queryLedgers
Query Ledgers
curl --request POST \
  --url https://gateway.varchev.com/crypto/queryLedgers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'tenantId: <tenantid>' \
  --data '
{
  "nonce": "-96416318",
  "id": "in non Lorem pariatur",
  "trades": false
}
'
{
  "error": [],
  "result": {
    "L4UESK-KG3EQ-UFO4T5": {
      "refid": "TJKLXF-PGMUI-4NTLXU",
      "time": 1610464484.1787,
      "type": "trade",
      "subtype": "",
      "aclass": "currency",
      "asset": "ZGBP",
      "amount": "-24.5000",
      "fee": "0.0490",
      "balance": "459567.9171"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.varchev.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

tenantId
string
required

Tenant/Owner id

Content-Type
string

Body

application/json
nonce
string

(Required)

Example:

"-96416318"

id
string

Comma delimited list of ledger IDs to query info about (20 maximum)

Example:

"in non Lorem pariatur"

trades
boolean

Whether or not to include trades related to position in output

Example:

false

Response

200 - application/json

OK

The response is of type object.