Get Slippage
Endpoint
Section titled “Endpoint”GET /api/dtao/slippage/v1Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
netuid | query | integer | ✅ | Subnet Id |
input_tokens | query | string | ✅ | as Rao or nanoAlpha (billionths of tao/alpha) |
direction | query | string | ✅ | tao to alpha or alpha to tao |
Responses
Section titled “Responses”200 — 200
Section titled “200 — 200”Media: application/json
{ "type": "object", "properties": { "pagination": { "type": "object", "properties": { "current_page": { "type": "integer", "example": 1, "default": 0 }, "per_page": { "type": "integer", "example": 1, "default": 0 }, "total_items": { "type": "integer", "example": 1, "default": 0 }, "total_pages": { "type": "integer", "example": 1, "default": 0 }, "next_page": {}, "prev_page": {} } }, "data": { "type": "array", "items": { "type": "object", "properties": { "netuid": { "type": "integer", "example": 19, "default": 0 }, "block_number": { "type": "integer", "example": 5012782, "default": 0 }, "timestamp": { "type": "string", "example": "2025-02-26T17:50:00Z" }, "alpha_price": { "type": "string", "example": "0.0512855519" }, "output_tokens": { "type": "string", "example": "19492475077" }, "expected_output_tokens": { "type": "string", "example": "19498668995" }, "diff": { "type": "string", "example": "6193918" }, "slippage": { "type": "string", "example": "0.0317658298" } } } } }}400 — 400
Section titled “400 — 400”Media: application/json
{ "type": "object", "properties": {}}Authentication
Section titled “Authentication”All Taostats API requests require an Authorization header containing your API key. See Getting Started.