HOURLY, DAILY, WEEKLY or MONTHLY (30 days).{
"x-api-key": "your-key-here"
}{
"data": {
"user": {
"portfolio": {
"items": [
{
"timestamp": "2021-03-02T16:00:00.000Z",
"total": {
"value": "9131.364413355",
"timestamp": "2021-03-02T16:00:00.000Z",
"currency": "GBP"
},
"balances": {
"items": [
{
"amount": {
"currency": "ETH",
"timestamp": "2021-03-02T16:00:00.000Z",
"value": "0.519577995"
},
"asset": {
"name": "Ethereum"
}
},
{
"amount": {
"currency": "BTC",
"timestamp": "2021-03-02T16:00:00.000Z",
"value": "0.24864699"
},
"asset": {
"name": "Bitcoin"
}
},
...
]
}
}
]
}
}
}
}endDate (ISO 8601 date and time format) parameter on the portfolio query to get the portfolio balance on a specific date and time.{
"data": {
"user": {
"portfolio": {
"items": [
{
"timestamp": "2021-03-01T12:00:00.000Z",
"total": {
"value": "9131.364413355",
"timestamp": "2021-03-01T12:00:00.000Z",
"currency": "GBP"
},
"balances": {
"items": [
{
"amount": {
"currency": "ETH",
"timestamp": "2021-03-01T12:00:00.000Z",
"value": "0.519577995"
},
"asset": {
"name": "Ethereum"
}
},
{
"amount": {
"currency": "BTC",
"timestamp": "2021-03-01T12:00:00.000Z",
"value": "0.24864699"
},
"asset": {
"name": "Bitcoin"
}
},
...
]
}
}
]
}
}
}
}startDate, endDate and timePeriod. The startDate and endDate must be in ISO 8601 date and time format and the timePeriod can be either HOURLY, DAILY, WEEKLY or MONTHLY (30 days).{
"data": {
"user": {
"portfolio": {
"items": [
{
"timestamp": "2021-03-02T12:00:00.000Z",
"total": {
"value": "2284557.6364358384",
"timestamp": "2021-03-02T12:00:00.000Z",
"currency": "GBP"
},
"balances": {
"items": [
{
"amount": {
"currency": "ETH",
"timestamp": "2021-03-02T12:00:00.000Z",
"value": "0.519577995"
},
"asset": {
"name": "Ethereum"
}
},
{
"amount": {
"currency": "BTC",
"timestamp": "2021-03-02T12:00:00.000Z",
"value": "0.24864699"
},
"asset": {
"name": "Bitcoin"
}
},
...
]
}
},
{
"timestamp": "2021-02-23T12:00:00.000Z",
"total": {
"value": "2069491.9749807473",
"timestamp": "2021-02-23T12:00:00.000Z",
"currency": "GBP"
},
"balances": {
"items": [
{
"amount": {
"currency": "ETH",
"timestamp": "2021-02-23T12:00:00.000Z",
"value": "0.519577995"
},
"asset": {
"name": "Ethereum"
}
},
{
"amount": {
"currency": "BTC",
"timestamp": "2021-02-23T12:00:00.000Z",
"value": "0.19737407"
},
"asset": {
"name": "Bitcoin"
}
},
...
]
}
}
]
}
}
}
}in(currency: "<CURRENCY>") query available in the Amount type.timestamp field under the in(currency: "<CURRENCY>") query represents the timestamp of the conversion rate used.{
"data": {
"user": {
"portfolio": {
"items": [
{
"timestamp": "2021-03-02T16:00:00.000Z",
"total": {
"currency": "GBP",
"value": "9131.364413355",
"timestamp": "2021-03-02T16:00:00.000Z",
"in": {
"currency": "USD",
"value": "12692.5965345635",
"timestamp": "2021-03-02T16:12:00.000Z"
}
},
"balances": {
"items": [
{
"amount": {
"currency": "ETH",
"value": "0.519577995",
"timestamp": "2021-03-02T16:00:00.000Z",
"in": {
"currency": "USD",
"value": "926.25531981892",
"timestamp": "2021-03-02T16:12:00.000Z"
}
},
"asset": {
"name": "Ethereum"
}
},
{
"amount": {
"currency": "BTC",
"value": "0.24864699",
"timestamp": "2021-03-02T16:00:00.000Z",
"in": {
"currency": "USD",
"value": "13965.31",
"timestamp": "2021-03-02T16:12:00.000Z"
}
},
"asset": {
"name": "Bitcoin"
}
},
...
]
}
}
]
}
}
}
}