API

Get available assets

get

Returns list of all available assets

Responses
200

OK

application/json
get
GET /api/assets HTTP/1.1
Host: api.ifalabs.com
Accept: */*
200

OK

[
  {
    "asset": "text",
    "asset_id": "text"
  }
]

Get issuance details

get

Returns details of a specific issuance

Path parameters
idstringRequired

Issuance ID

Responses
200

OK

application/json
get
GET /api/issuances/{id} HTTP/1.1
Host: api.ifalabs.com
Accept: */*
200

OK

{
  "created_at": "text",
  "issuance_id": "text",
  "issuance_state": 0,
  "issuer_address": "text",
  "metadata": null,
  "price": {
    "assetID": "text",
    "connected_price_ids": [
      "text"
    ],
    "expo": 1,
    "id": "text",
    "is_aggr": true,
    "price_changes": [
      {
        "change": 1,
        "change_pct": 1,
        "from_price": 1,
        "from_time": "text",
        "period": "text",
        "to_price": 1,
        "to_time": "text"
      }
    ],
    "req_hash": "text",
    "req_url": "text",
    "source": "text",
    "timestamp": "text",
    "value": 1
  },
  "price_asset_id": "text",
  "price_source": "text",
  "price_timestamp": "text",
  "price_value": 1,
  "round_id": 1,
  "updated_at": "text"
}

Get last price for an asset

get

Returns the last known price for a specific asset or all assets

Query parameters
assetstringOptional

Asset ID to get price for

changesstringOptional

Comma-separated list of price change periods (e.g. '7d,3d,24h'). Default is '7d'

Responses
200

OK

application/json
get
GET /api/prices/last HTTP/1.1
Host: api.ifalabs.com
Accept: */*
200

OK

{
  "ANY_ADDITIONAL_PROPERTY": {
    "assetID": "text",
    "connected_price_ids": [
      "text"
    ],
    "expo": 1,
    "id": "text",
    "is_aggr": true,
    "price_changes": [
      {
        "change": 1,
        "change_pct": 1,
        "from_price": 1,
        "from_time": "text",
        "period": "text",
        "to_price": 1,
        "to_time": "text"
      }
    ],
    "req_hash": "text",
    "req_url": "text",
    "source": "text",
    "timestamp": "text",
    "value": 1
  }
}

Model Stream price updates

get

Server-Sent Events stream of price updates, have a retry mechanism in place for break

Responses
200

SSE stream

text/event-stream
Responsestring
get
GET /api/prices/stream HTTP/1.1
Host: api.ifalabs.com
Accept: */*
200

SSE stream

text

Get price audit

get

Returns audit information for a specific price

Path parameters
idstringRequired

Price ID

Responses
200

OK

application/json
get
GET /api/prices/{id}/audit HTTP/1.1
Host: api.ifalabs.com
Accept: */*
200

OK

{
  "aggregated_price": {
    "assetID": "text",
    "connected_price_ids": [
      "text"
    ],
    "expo": 1,
    "id": "text",
    "is_aggr": true,
    "price_changes": [
      {
        "change": 1,
        "change_pct": 1,
        "from_price": 1,
        "from_time": "text",
        "period": "text",
        "to_price": 1,
        "to_time": "text"
      }
    ],
    "req_hash": "text",
    "req_url": "text",
    "source": "text",
    "timestamp": "text",
    "value": 1
  },
  "asset_id": "text",
  "created_at": "text",
  "price_id": "text",
  "raw_prices": [
    {
      "asset": "text",
      "expo": 1,
      "id": "text",
      "internal_asset_identity": "text",
      "req_url": "text",
      "source": "text",
      "timestamp": "text",
      "value": 1
    }
  ],
  "updated_at": "text"
}

Last updated