Get Liq History

Please note that access to this API requires the API key to have brc20-swap permissions enabled.

Gets the history of a pair addition pool.

GEThttps://open-api.unisat.io/v1/brc20-swap/liq_history
Query parameters
Response

Default Response

Body
code*number
msg*string
data*object
Request
const response = await fetch('https://open-api.unisat.io/v1/brc20-swap/liq_history?start=0&limit=0', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "code": 0,
  "msg": "text",
  "data": {
    "total": 0,
    "list": [
      {
        "type": "text",
        "tick0": "text",
        "tick1": "text",
        "amount0": "text",
        "amount1": "text",
        "lp": "text",
        "ts": 0
      }
    ]
  }
}

Last updated