balanceHistory: update docs

pull/358/head
Vladyslav Burzakovskyy 2020-01-22 12:44:03 +01:00 committed by Martin
parent 4b564510e0
commit 87065d13ef
1 changed files with 29 additions and 1 deletions

View File

@ -656,9 +656,37 @@ Query parameters:
- *to*: specifies an end date as a Unix timestamp
The optional query parameters:
- *fiatcurrency*: if specified, the response will contain fiat rate at the time of transaction.
- *fiatcurrency*: if specified, the response will contain fiat rate at the time of transaction. If not, all available currencies will be returned.
- *groupBy*: an interval in seconds, to group results by. Default is 3600 seconds.
Example response (fiatcurrency not specified):
```javascript
[
{
"time": 1578391200,
"txs": 5,
"received": "5000000",
"sent": "0",
"rates": {
"usd": 7855.9,
"eur": 6838.13,
...
}
},
{
"time": 1578488400,
"txs": 1,
"received": "0",
"sent": "5000000",
"rates": {
"usd": 8283.11,
"eur": 7464.45,
...
}
}
]
```
Example response (fiatcurrency=usd):
```javascript