Comment on page
Token Balance History
After synchronizing the wallet address, it returns the account balance values according to the given period. It also specifies the transaction analysis related to the desired period as an extra.
You can use this service to see the dollar value of the wallet and to create analysis about it. The image below is a simple example of what you can do with this service.

Balance Graph
var axios = require('axios');
axios.get('https://api.getdefy.co/v1/o/wallet/balancehistory', {
params: {
address: '0x787970ad122d5947579e613c2464d9540081b46f',
language: 'en',
period: '1w',
key: 'API_KEY',
},
})
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
address
(required): A user address (i.e.0x1a2b3x...
). If specified, the user attached to the query is ignored and the address will be used instead.key
(required): API key for requests.language
(optional): Service language. Default value isen
. Can been
ortr
.period
(optional): Data period. Default value is24h
. Can be:"24h", "1w", "1mo"
get
https://api.getdefy.co/v1/o
/wallet/balanchehistory
Request Example
Parameters
Query
key*
API Key
address*
Wallet Address
language
Can be: "en", "tr"
period
Can be: "24h", "1w", "1mo"
Responses
200: OK
400: Bad Request
Last modified 4mo ago