List Query

Query History

You can use this endpoint to query the user's history of creating, adding, and removing liquidity from pools. The txid provided can be used to check the on-chain transaction status in the mempool.

Liquidity operation history

post
Body
pageintegerRequired
page_sizeintegerRequired
addressstringRequired
tick1stringRequired
tick2stringRequired
coin_type_1stringRequired
coin_type_2stringRequired
Responses
200

Success

application/json
post
/api/pool/liquid/history
200

Success

  1. The list returns an array txs. The txid field within this array is the transaction hash, which can be used to query the transaction status. Any status other than confirmed means the transaction is unconfirmed.

  2. When adding liquidity fails, the refundable field will be true, indicating that a refund is possible; otherwise, it will be false. {% endhint %}

Use this endpoint to query the history of swaps executed on Dotswap.

Pair swap history

post
Body
tick1stringRequired
coin_type1stringRequired
tick2stringRequired
coin_type2stringRequired
pageintegerRequired
page_sizeintegerRequired
Responses
200

Success

application/json
post
/api/pool/liquid/swap_histories
200

Success

Manage Pool

CLMM--Manage Pools

post
Body
pageintegerRequired
page_sizeintegerRequired
addressstringRequired
Responses
200Success
application/json
post
/api/pool/clmm/manage_list

Liquidity Pool List

post
Body
pageintegerRequired
page_sizeintegerRequired
tickstringRequired

search tokens

lp_reward_metricstringRequired

LP Reward Period Filter 1d,7d,30d

volume_metricstringRequired

Volume Period Filter 1d,7d,30d

apy_metricstringRequired

APY Period Filter 1d,7d,30d

sortstringRequired

tvl,volume,lp_reward

descbooleanRequired
Responses
200Success
application/json
post
/api/pool/liquid/explorer

Get Account Details - Maker

post
Body
modstringRequired

taker or maker

Responses
200Success
application/json
post
/api/simplelighting/get_sl_asset_overview
200Success

Get Account Balance Chart - Maker

post
Body
modstringRequired

taker or maker

tickstringRequired
typestring · enumRequiredPossible values:
start_timeintegerOptional
end_timeintegerOptional
Responses
200Success
application/json
post
/api/simplelighting/get_sl_asset_balance_stat
200Success

Last updated