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
addressstringRequired

Wallet address

Example: 0x199...
Query parameters
networkstring Β· enumRequired

Supported blockchain networks

Example: ethPossible values:
from_timeinteger | number Β· min: 1Optional

Timestamp in seconds. Minimum time for the deal's first trade. Deals started before this time will be excluded from result and calculations.

Example: 1609459200
to_timeinteger | number Β· min: 1Optional

Timestamp in seconds. Maximum time for deal trades. Trades executed after this time will be excluded from result and calculations.

Example: 1893456000
Responses
200
Successful response
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