GET
/
dexs
/
ohlc
/
{dex}
/
{symbol}
Rune OHLC data
curl --request GET \
  --url https://xbt-mainnet.gomaestro-api.org/v0/markets/dexs/ohlc/{dex}/{symbol} \
  --header 'api-key: <api-key>'
{
  "data": [
    {
      "bucket": "2024-03-25T14:00:00Z",
      "close": 19.75,
      "high": 20,
      "low": 19.25,
      "open": 19.5,
      "symbol": "BTC-840000:28",
      "volume": 3780
    }
  ]
}

Authorizations

api-key
string
header
required

Project API Key

Path Parameters

dex
string
default:magiceden
required

Name of the DEX

symbol
string
default:BTC-840000:28
required

Symbol of the Rune asset trading pair (BTC-Rune ID)

Query Parameters

mempool
enum<string>
default:excluded

Mempool mode

Available options:
included,
excluded,
only
resolution
enum<string>
default:1h
required

Time resolution (1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w, 1M)

Available options:
1m,
5m,
15m,
30m,
1h,
4h,
1d,
1w,
1M
from
string
default:1735689600

Start timestamp in Unix

to
string
default:1742428800

End timestamp in Unix

limit
integer
default:5000

Limit number of Runes returned (min: 1, max: 50000)

Required range: 1 <= x <= 50000
sort
enum<string>
default:desc

Sort by descending (desc) or ascending (asc)

Available options:
asc,
desc
carry
boolean
default:false

Fill candles with no trades with synthetic data (OHLC filled with previous closing price, volume=0)

Response

200
application/json

OK

The response is of type object.