Wallet PNL chart
Request cost: 1 credits
get
Returns wallet PNL chart data. Require period or custom time to be set. To set custom time interval use from_time
and to_time
params.
Authorizations
Path parameters
addressstringRequiredExample:
Wallet address
0x199...
Query parameters
networkstring Β· enumRequiredExample:
Supported blockchain networks
eth
Possible values: typestring Β· enumOptionalDefault:
PNL type. Only realized
is available
realized
Example: realized
Possible values: periodstring Β· enumOptionalExample:
Time period
24h
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}/charts/pnl HTTP/1.1
Host: definest.ai
X-API-Key: YOUR_API_KEY
Accept: */*
{
"result": {
"chart": {
"timestamps": [
1738303428
],
"initial_values": [
100
],
"following_values": [
100
],
"period": {
"start": 1738303428,
"end": 1748303428
}
}
},
"credits": {
"spent": 1,
"remaining": 1000
}
}
Last updated