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 | — | ✅ | tao to alpha or alpha to tao |
Responses
Section titled “Responses”200 — Dtao slippage retrieved successfully
Section titled “200 — Dtao slippage retrieved successfully”Media: application/json
Schema
{ "type": "object", "required": [ "pagination", "data" ], "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "netuid", "block_number", "timestamp", "alpha_price", "output_tokens", "expected_output_tokens", "diff", "slippage" ], "properties": { "alpha_price": { "type": "string" }, "block_number": { "type": "integer", "format": "int32" }, "diff": { "type": "string" }, "expected_output_tokens": { "type": "string" }, "netuid": { "type": "integer", "format": "int32" }, "output_tokens": { "type": "string" }, "slippage": { "type": "string" }, "timestamp": { "type": "string", "format": "date-time" } } } }, "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" } } } }}Examples
{ "Result": { "value": "{\n \"pagination\": {\n \"current_page\": 1,\n \"per_page\": 1,\n \"total_items\": 1,\n \"total_pages\": 1,\n \"next_page\": null,\n \"prev_page\": null\n },\n \"data\": [\n {\n \"netuid\": 19,\n \"block_number\": 5012782,\n \"timestamp\": \"2025-02-26T17:50:00Z\",\n \"alpha_price\": \"0.0512855519\",\n \"output_tokens\": \"19492475077\",\n \"expected_output_tokens\": \"19498668995\",\n \"diff\": \"6193918\",\n \"slippage\": \"0.0317658298\"\n }\n ]\n}" }}400 — Bad request
Section titled “400 — Bad request”404 — Dtao slippage not found
Section titled “404 — Dtao slippage not found”500 — Internal server error
Section titled “500 — Internal server error”Try it
Section titled “Try it”Interactive request console coming soon. In the meantime you can use the OpenAPI spec with any client (Insomnia, Bruno, Scalar, curl).
Authentication
Section titled “Authentication”All Taostats API requests require an Authorization header containing your API key. See Getting Started.