Get several prices for a single token

Get several prices for a single token

GET https://api.redstone.finance/prices

Query Parameters

NameTypeDescription

symbol

string

Token symbol

provider

string

Only "redstone" provider is currently supported

fromTimestamp

string

Minimal timestamp in milliseconds

toTimestamp

string

Maximum timestamp in milliseconds

interval

number

Interval in milliseconds

[
  {
    "id": "aba0cf4d-cc26-446f-9096-37fedfab6854",
    "symbol": "TEST-SYMBOL",
    "provider": "I-5rWUehEv-MjdK9gFw09RxfSLQX9DIHxG614Wf8qo0",
    "value": 97.152,
    "signature": "mock+signaturQ==",
    "permawebTx": "mock-permaweb-tx",
    "version": "2",
    "source": {
      "test": 123
    },
    "timestamp": 1619370944944,
    "minutes": 16,
    "providerPublicKey": "xyz..."
  },
  {
    "id": "eed207bd-5ff5-4c30-b63b-4523d40bfa6e",
    "symbol": "TEST-SYMBOL",
    "provider": "I-5rWUehEv-MjdK9gFw09RxfSLQX9DIHxG614Wf8qo0",
    "value": 80.673,
    "signature": "mock+signaturQ==",
    "permawebTx": "mock-permaweb-tx",
    "version": "2",
    "source": {
      "test": 123
    },
    "timestamp": 1619370945945,
    "minutes": 16,
    "providerPublicKey": "xyz..."
  }
]

Examples

Get the historical prices for AR token

curl "https://api.redstone.finance/prices?symbol=AR&provider=redstone&fromTimestamp=1619546099466&toTimestamp=1619547041149&interval=1"

Last updated