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: https://app.runesdex.com/v1/swagger
You can also quickly send sample API requests using the API Explorer below. If you'd prefer to use a tool like Postman, download our OpenAPI spec available at: https://app.runesdex.com/v1/swagger/swagger.yaml
This endpoint is used to list known runes.
/v1/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.
Page number for pagination.
Order of the results.
ASC
ASC
, DESC
This endpoint is used to list UTXOs by asset and address.\
/v1/utxo/{asset}//{address}
Number of runes to return.
Filter by rune name as %NAME%. "SUPER" will match "MYSUPERRUNE", for example.
SUPER
Order of the results.
ASC
ASC
, DESC
Page number for pagination.
This endpoint is used to get a list of trading pairs.\
/v1/pairs
Number of runes to return.
Filter by rune name as %NAME%. "SUPER" will match "MYSUPERRUNE", for example.
SUPER
Order of the results.
ASC
ASC
, DESC
Page number for pagination.
This endpoint is used to create a new trading pair.
Idempotent. If pair exists, returns existing pool address.
/v1/pairs/create
BTC
MYLOVELYRUNE
BTC
MYLOVELYRUNE
This endpoint is used to get the position of an address in a trading pair.\
/v1/pairs/{base}-{quote}/address-position/{address}
BTC
MYLOVELYRUNE
tb1ps07g3t8hctex0ula3jaxxa85dqw28ewl0krmnt8mlpxukmzp9zeqmzjfdw
This endpoint is used to add liquidity to a trading pair.\
/v1/pairs/{base}-{quote}/add-liquidity
BTC
MYLOVELYRUNE
bc1pkr9xwf5n6ugue9ra4p3quy940gl3qaaju57pvvhy5xh8xehmzh3syzdqs3
8f0f508a694fe6991fd6fd8be19bfec9dad34afbc5e16c2c6af1b57ee4a75f28
41533
37LHryP6Pj6Z98bQZj76YBcQ1JNKZsSXoC
02c64921f5c9b2c209ada61c78719eec30bebcdfc1d63ee051a68aa241ffb3190a
10000
This endpoint is used to calculate the base and quote amounts.\
/v1/pairs/{base}-{quote}/calculate
BTC
MYLOVELYRUNE
BTC
MYLOVELYRUNE
This endpoint is used to swap assets in a trading pair.\
/v1/pairs/{base}-{quote}/swap
BTC
MYLOVELYRUNE
This endpoint is used to remove liquidity from a trading pair.\
/v1/pairs/{base}-{quote}/remove-liquidity
BTC
MYLOVELYRUNE
This endpoint is used to get the price history of a trading pair.\
/v1/pairs/{base}-{quote}/price-history
BTC
MYLOVELYRUNE
This endpoint is used to get the swap history of a trading pair.\
/v1/pairs/{base}-{quote}/swap-history
BTC
MYLOVELYRUNE
Order of the results.
ASC
ASC
, DESC
Number of runes to return.
Page number for pagination.