Our API is defined using the OpenAPI 3.0 specification. You can easily explore and test the endpoints using tools like Swagger UI, or Postman. For convenience, you can interact with our API on our hosted SwaggerUI page:
You can also quickly send sample API requests using the below. If you'd prefer to use a tool like Postman, download our OpenAPI spec available at:
This endpoint is used to list known runes.
Filter by rune name as %NAME%. "SUPER" will match "MYSUPERRUNE", for example.
SUPER
Specify true for pairs with liquidity, false for pairs without, or omit for all pairs.
Will return only featured runes.
Number of runes to return.
50
Page number for pagination.
Order of the results.
ASC
Available options:
This endpoint is used to list UTXOs by asset and address.\
Number of runes to return.
50
Filter by rune name as %NAME%. "SUPER" will match "MYSUPERRUNE", for example.
SUPER
Order of the results.
ASC
Available options: Page number for pagination.
This endpoint is used to get a list of trading pairs.\
Number of runes to return.
50
Filter by rune name as %NAME%. "SUPER" will match "MYSUPERRUNE", for example.
SUPER
Order of the results.
ASC
Available options: Page number for pagination.
This endpoint is used to get the position of an address in a trading pair.\
BTC
MYLOVELYRUNE
tb1ps07g3t8hctex0ula3jaxxa85dqw28ewl0krmnt8mlpxukmzp9zeqmzjfdw
This endpoint is used to calculate the base and quote amounts.\
BTC
MYLOVELYRUNE
BTC
MYLOVELYRUNE
This endpoint is used to get the price history of a trading pair.\
BTC
MYLOVELYRUNE
Serialized as an array of fields (9 elements).
Fields: [start_time, trading_pair_id, open, close, high, low, base_volume, quote_volume, count]
All points are gapfilled - meaning that even if database contains 0 trades in range [start_time
...end_time
], but there were trades before start_time, then returned array will contain (end_time
- start_time
) points (with interval
between them).
["2023-07-09T07:46:40",0,"100","101","102","103","1000","102000",5]
This endpoint is used to get the swap history of a trading pair.\
BTC
MYLOVELYRUNE
Order of the results.
ASC
Available options: Number of runes to return.
50
Page number for pagination.
This endpoint is used to get a user from the database.\
tb1ps07g3t8hctex0ula3jaxxa85dqw28ewl0krmnt8mlpxukmzp9zeqmzjfdw
bc1p0x6psjqeawtw8zvekup2gcg8uuwejhgjfad3sp9xklmpeaq80m4qd0ly9f
This endpoint is used to create a new trading pair.
Idempotent. If pair exists, returns existing pool address.
BTC
MYLOVELYRUNE
BTC
MYLOVELYRUNE
This endpoint is used to add liquidity to a trading pair.\
BTC
MYLOVELYRUNE
bc1pkr9xwf5n6ugue9ra4p3quy940gl3qaaju57pvvhy5xh8xehmzh3syzdqs3
8f0f508a694fe6991fd6fd8be19bfec9dad34afbc5e16c2c6af1b57ee4a75f28
41533
37LHryP6Pj6Z98bQZj76YBcQ1JNKZsSXoC
02c64921f5c9b2c209ada61c78719eec30bebcdfc1d63ee051a68aa241ffb3190a
10000
This endpoint is used to swap assets in a trading pair.\
BTC
MYLOVELYRUNE
This endpoint is used to remove liquidity from a trading pair.\
BTC
MYLOVELYRUNE