Inference
get
Get price inference for a specific asset and timeframe
Authorizations
Query parameters
assetstring · enumRequiredPossible values:
- The asset to get inference for (ETH or BTC)
timeframestring · enumRequiredPossible values:
- The timeframe for the inference (5m or 8h)
currentPricenumber · doubleRequired
- The current price of the asset
Header parameters
AuthorizationstringRequired
- The authorization token
Responses
200
A promise that resolves to an AlloraInferenceResponse object
application/json
get
GET //allora/inference HTTP/1.1
Host: beta.usemoon.ai
Authorization: text
Accept: */*
200
A promise that resolves to an AlloraInferenceResponse object
{
"success": true,
"message": "text",
"data": {
"confidenceIntervals": {
"values": [
1
],
"percentiles": [
1
]
},
"timestamp": "text",
"percentageChange": 1,
"impliedFuturePrice": 1,
"predictedLogReturn": 1,
"currentPrice": 1
}
}