Wallet indicators
Request cost: 1 credits
get
Returns wallet indicators data. When the from_time
or to_time
fields are specified, data will be recalculated for the given time range and results will be returned without period-based grouping.
Authorizations
Path parameters
addressstringRequiredExample:
Wallet address
0x199...
Query parameters
networkstring Β· enumRequiredExample:
Supported blockchain networks
eth
Possible values: from_timeinteger | number Β· min: 1OptionalExample:
Timestamp in seconds. Minimum time for the deal's first trade. Deals started before this time will be excluded from result and calculations.
1609459200
to_timeinteger | number Β· min: 1OptionalExample:
Timestamp in seconds. Maximum time for deal trades. Trades executed after this time will be excluded from result and calculations.
1893456000
Responses
200
Successful response
application/json
400
Request fail
application/json
401
API Key invalid or missing
403
API access forbidden
application/json
get
GET /api/analytics/v1/wallets/{address}/indicators HTTP/1.1
Host: definest.ai
X-API-Key: YOUR_API_KEY
Accept: */*
{
"result": {
"indicators": {
"pnl_realized": {
"12h": {
"initial": 100,
"following": 99
}
},
"pnl_unrealized": {
"1y": {
"initial": 1000,
"following": null
}
}
}
},
"credits": {
"spent": 1,
"remaining": 1000
}
}
Last updated