---
title: "Remove the liquidity operation"
method: POST
path: "/v1/brc20-swap/remove_liq"
tags: ["BRC20-Swap"]
---

# Remove the liquidity operation

`POST /v1/brc20-swap/remove_liq`

## Request

- Base URL: `https://open-api.unisat.io`
- URL: `https://open-api.unisat.io/v1/brc20-swap/remove_liq`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/unisat/apis/unisat-wallet-openapi/docs/v1/brc20-swap/remove_liq/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `address` string, required
  - `tick0` string, required
  - `tick1` string, required
  - `lp` string, required
  - `amount0` string, required: Input amount of tick0
  - `amount1` string, required: Input amount of tick1
  - `slippage` string, required
  - `ts` number, required: Timestamp (seconds)
  - `sig` string, required: User signature

## Response `200`

Default Response

- object
  - `code` number, required
  - `msg` string, required
  - `data` object, required
    - `id` string: Function id
    - `rollupInscriptionId` string: The rollup inscription id where the function is located
    - `address` string
    - `type` string
    - `tick0` string
    - `tick1` string
    - `amount0` string, required: Input amount of tick0
    - `amount1` string, required: Input amount of tick1
    - `lp` string
    - `ts` number

---

[API](https://skmtc.dev/unisat/apis/unisat-wallet-openapi.md) - [All operations](https://skmtc.dev/unisat/apis/unisat-wallet-openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/unisat/apis/unisat-wallet-openapi/revisions/68de350419c7?raw)
