List balance history
curl --request GET \
--url https://api.paperdrill.dev/v1/balances/history \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.paperdrill.dev/v1/balances/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.paperdrill.dev/v1/balances/history"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"entries": [
{
"id": "<string>",
"asset": "<string>",
"available": "125.50",
"locked": "125.50",
"total": "125.50",
"deltaAvailable": "+3.40",
"deltaLocked": "+3.40",
"deltaTotal": "+3.40",
"reason": "initialized",
"occurredAt": "2023-11-07T05:31:56Z",
"referenceId": "<string>",
"symbol": "<string>"
}
],
"pagination": {
"page": 123,
"limit": 123,
"total": 123,
"totalPages": 123,
"hasNextPage": true,
"hasPreviousPage": true
},
"assets": [
{
"asset": "<string>",
"available": "125.50",
"locked": "125.50",
"total": "125.50",
"netChange": "+3.40",
"entryCount": 123,
"lastChangedAt": "2023-11-07T05:31:56Z"
}
],
"filtered": {
"entryCount": 123,
"netChange": "+3.40"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"details": [
{
"field": "qty",
"message": "invalid decimal format"
}
]
},
"requestId": "f4c0baf4-b8d2-4c9a-a17b-c8656c4a7b0e"
}Account
List balance history
Returns recorded balance movements newest first. Use asset and reason
to narrow the ledger. Requires the ACCOUNT_READ scope.
GET
/
balances
/
history
List balance history
curl --request GET \
--url https://api.paperdrill.dev/v1/balances/history \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.paperdrill.dev/v1/balances/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.paperdrill.dev/v1/balances/history"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"entries": [
{
"id": "<string>",
"asset": "<string>",
"available": "125.50",
"locked": "125.50",
"total": "125.50",
"deltaAvailable": "+3.40",
"deltaLocked": "+3.40",
"deltaTotal": "+3.40",
"reason": "initialized",
"occurredAt": "2023-11-07T05:31:56Z",
"referenceId": "<string>",
"symbol": "<string>"
}
],
"pagination": {
"page": 123,
"limit": 123,
"total": 123,
"totalPages": 123,
"hasNextPage": true,
"hasPreviousPage": true
},
"assets": [
{
"asset": "<string>",
"available": "125.50",
"locked": "125.50",
"total": "125.50",
"netChange": "+3.40",
"entryCount": 123,
"lastChangedAt": "2023-11-07T05:31:56Z"
}
],
"filtered": {
"entryCount": 123,
"netChange": "+3.40"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"details": [
{
"field": "qty",
"message": "invalid decimal format"
}
]
},
"requestId": "f4c0baf4-b8d2-4c9a-a17b-c8656c4a7b0e"
}