Skip to content

Get Slippage

GET /api/dtao/slippage/v1
NameInTypeRequiredDescription
netuidqueryintegerSubnet Id
input_tokensquerystringas Rao or nanoAlpha (billionths of tao/alpha)
directionquerystringtao to alpha or alpha to tao

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"
}
}
}
}
}
}

Media: application/json

{
"type": "object",
"properties": {}
}

All Taostats API requests require an Authorization header containing your API key. See Getting Started.