Inference

get

Get price inference for a specific asset and timeframe

Authorizations
Query parameters
assetstring · enumRequired
  • The asset to get inference for (ETH or BTC)
Possible values:
timeframestring · enumRequired
  • The timeframe for the inference (5m or 8h)
Possible values:
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
  }
}