Skip to main content
📌 Note: The GPU Index API is only available for Plus and Professional tier subscribers.

POST /api/token-price/book/latest

Get the latest token price book data as a sample data

Responses

  • 200: Successful Response

POST /api/token-price/book/preview

Get all token price book data as a dataview

Query Parameters

ParameterTypeRequiredDescriptionDefault
filterintegerNoPage number1
order_byintegerNoItems per page (max: 300)20
paginationstringNoField to sort bycreated_at

Request Example

{
  "filter": [],
  "order_by": [],
  "paginate": {
    "num_per_page": 50,
    "page_num": 1
  }
}

Responses

  • 200: Successful Response
  • 422: Validation Error
{
  "detail": [
    {
      "loc": [
        "string"
        ],
        "msg": "string",
        "type": "string"
    }
  ]
}

POST /api/token-price/pulse/latest

Get all token market pulse data as a sample data

Request Body

No request body required for this endpoint.

Responses

  • 200: Successful Response

POST /api/token-price/pulse/preview

Get the latest token market pulse data as a dataview

Request Example

{
  "filter": [],
  "order_by": [],
  "paginate": {
    "num_per_page": 50,
    "page_num": 1
  }
}

Responses

  • 200: Successful Response
  • 422: Validation Error
{
  "detail": [
    {
      "loc": [
        "string"
        ],
        "msg": "string",
        "type": "string"
    }
  ]
}

POST /api/token-price/pulse/trend

Get the latest 30 days trend data for token market pulse

Request Example

{
  "num_per_page": 50,
  "page_num": 1,
  "input_ratio": 0.5,
  "output_ratio": 0.5,
  "model_name": "string",
  "developer": "string"
}

Responses

  • 200: Successful Response
  • 422: Validation Error
{
  "detail": [
    {
      "loc": [
        "string"
        ],
        "msg": "string",
        "type": "string"
    }
  ]
}

POST /api/token-price/create

Create token_prices

Request Example

{
  "interval": "string",
  "period": "string",
  "type": "string",
  "csv_s3_path": "string"
}

Responses

  • 200: Successful Response
  • 422: Validation Error
{
  "detail": [
    {
      "loc": [
        "string"
        ],
        "msg": "string",
        "type": "string"
    }
  ]
}

POST /api/token-price/info

Get a token_prices detail information

Request Example

{
  "id": 0
}

Responses

  • 200: Successful Response
  • 422: Validation Error
{
  "detail": [
    {
      "loc": [
        "string"
        ],
        "msg": "string",
        "type": "string"
    }
  ]
}

POST /api/token-price/list

Search token_prices list by condition

Request Example

{
  "filter": [],
  "order_by": [],
  "paginate": {
    "num_per_page": 50,
    "page_num": 1
  }
}

Responses

  • 200: Successful Response
  • 422: Validation Error
{
  "detail": [
    {
      "loc": [
        "string"
        ],
        "msg": "string",
        "type": "string"
    }
  ]
}

DELETE /api/token-price/delete

Delete a token_prices record by id or name

Request Example

{
  "id": 0
}

Responses

  • 200: Successful Response
  • 422: Validation Error
{
  "detail": [
    {
      "loc": [
        "string"
        ],
        "msg": "string",
        "type": "string"
    }
  ]
}

POST /api/token-price/download

Get a token_prices csv data download url

Request Example

{
  "id": 0
}

Responses

  • 200: Successful Response
  • 422: Validation Error
{
  "detail": [
    {
      "loc": [
        "string"
        ],
        "msg": "string",
        "type": "string"
    }
  ]
}