Get Trade
Endpoint
Section titled “Endpoint”GET /api/dtao/trade/v1Try it
Section titled “Try it”Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
coldkey | query | string | SS58 or hex format | |
extrinsic_id | query | string | ||
from_name | query | string | ||
to_name | query | string | ||
tao_value_min | query | string | Minimum amount (inclusive) | |
tao_value_max | query | string | Maximum amount (inclusive) | |
usd_value_min | query | string | Minimum amount (inclusive) | |
usd_value_max | query | string | Maximum amount (inclusive) | |
block_number | query | integer | ||
block_start | query | integer | Start of block range (inclusive) | |
block_end | query | integer | End of block range (inclusive) | |
timestamp_start | query | integer | Start of timestamp range in Unix timestamp (seconds since 1970-01-01) (inclusive) | |
timestamp_end | query | integer | End of timestamp range in Unix timestamp (seconds since 1970-01-01) (inclusive) | |
page | query | integer | ||
limit | query | integer | ||
order | query | — |
Responses
Section titled “Responses”200 — Dtao trades retrieved successfully
Section titled “200 — Dtao trades retrieved successfully”Media: application/json
Schema
{ "type": "object", "required": [ "pagination", "data" ], "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "block_number", "timestamp", "extrinsic_id", "coldkey", "from_name", "to_name", "from_amount", "to_amount", "tao_value", "usd_value" ], "properties": { "block_number": { "type": "integer", "format": "int32" }, "coldkey": { "type": "object", "required": [ "ss58", "hex" ], "properties": { "hex": { "type": "string", "description": "The hex format of the hot key" }, "ss58": { "type": "string", "description": "The SS58 format of the hot key" } } }, "extrinsic_id": { "type": "string" }, "from_amount": { "type": "string" }, "from_name": { "type": "string" }, "tao_value": { "type": "string" }, "timestamp": { "type": "string", "format": "date-time" }, "to_amount": { "type": "string" }, "to_name": { "type": "string" }, "usd_value": { "type": "string" } } } }, "pagination": { "type": "object", "required": [ "current_page", "per_page", "total_items", "total_pages" ], "properties": { "current_page": { "type": "integer", "format": "int32" }, "next_page": { "type": "integer", "format": "int32", "nullable": true }, "per_page": { "type": "integer", "format": "int32" }, "prev_page": { "type": "integer", "format": "int32", "nullable": true }, "total_items": { "type": "integer", "format": "int32" }, "total_pages": { "type": "integer", "format": "int32" } } } }}400 — Bad request
Section titled “400 — Bad request”404 — Dtao trades not found
Section titled “404 — Dtao trades not found”500 — Internal server error
Section titled “500 — Internal server error”Authentication
Section titled “Authentication”All Taostats API requests require an Authorization header containing your API key. See Getting Started.