GET /testnet/tokens/{md5}/ohlc
GET

/v1/testnet/tokens/{md5}/ohlc

5-minute candles of a Testnet token

AuthNone — works without a key

Request

GEThttps://api.xrpl.to/v1/testnet/tokens/12989284778980e987410b6e10cf7f9c/ohlc
Path parameterValueDescription
md5The token's md5 (md5 of issuer_currency)
Query parameterValueDescription
fromunix ms (default 7 days ago)
tounix ms (default now)
limit1-5000
curl 'https://api.xrpl.to/v1/testnet/tokens/12989284778980e987410b6e10cf7f9c/ohlc'

Response

200Example response3 ms · just now · 1.4 KB · 61 lines
https://api.xrpl.to/v1/testnet/tokens/12989284778980e987410b6e10cf7f9c/ohlc
{
  "success": true,
  "took": 1,
  "interval": "5m",
  "from": 1789371160177,
  "to": 1789975960177,
  "limit": 2016,
  "count": 96,
  "candles": [
    {
      "time": 1789944300000,
      "open": 0.7085196631060763,
      "high": 0.7125975177529559,
      "low": 0.7085196631060763,
      "close": 0.7108741527575719,
      "xrp_volume": 1894.6321050000001,
      "trades": 26,
      "vwap": 0.7109180999901185
    },
    {
      "time": 1789944600000,
      "open": 0.7100108550873993,
      "high": 0.7113662494100725,
      "low": 0.7080845859999998,
      "close": 0.7113662494100725,
      "xrp_volume": 522.900816,
      "trades": 8,
      "vwap": 0.7100536861712934
    },
    {
      "time": 1789944900000,
      "open": 0.7102201470794525,
      "high": 0.7113662625194618,
      "low": 0.7077078069999997,
      "close": 0.7077078069999997,
      "xrp_volume": 1509.532607,
      "trades": 26,
      "vwap": 0.7095110721278487
    },
    {
      "time": 1789945200000,
      "open": 0.7077078070000005,
      "high": 0.7109929158273545,
      "low": 0.7077078070000005,
      "close": 0.7096723030351559,
      "xrp_volume": 334.100135,
      "trades": 11,
      "vwap": 0.7096175814060842
    },
    {
      "time": 1789945500000,
      "open": 0.7115736506107301,
      "high": 0.7139992880786032,
      "low": 0.7082002120000039,
      "close": 0.7139992880786032,
      "xrp_volume": 1839.182729,
      "trades": 27,
      "vwap": 0.71148129824647
    }
  ]
}

Long arrays and strings are shortened in the example; Send request for the full answer.

Shapeas documented
{
  interval: "5m",
  candles: [
    {
      time,
      open,
      high,
      low,
      close,
      xrp_volume,
      trades,
      vwap
    }
  ]
}

What it does

5-minute candles of a Testnet token

Start at GET /v1/testnet/fixtures: it names live accounts, a busy token, an NFT with offers and one of every ledger object that xrpl.to keeps alive on Testnet, plus a real transaction of every type. Testnet resets without warning; the data is rebuilt from the chain within minutes, and only objects touched since count. Open the Testnet sandbox →
OpenAPI