Wallet investment amount chart

Request cost: 1 credits

get

Returns wallet investment amount 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
addressstringRequired

Wallet address

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

Supported blockchain networks

Example: ethPossible values:
periodstring Β· enumOptional

Time period

Example: 24hPossible 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}/charts/investment_amount HTTP/1.1
Host: definest.ai
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "result": {
    "chart": {
      "timestamps": [
        1738303428
      ],
      "values": [
        100
      ],
      "period": {
        "start": 1738303428,
        "end": 1748303428
      }
    }
  },
  "credits": {
    "spent": 1,
    "remaining": 1000
  }
}

Last updated