Liquidity

Get liquidity withdrawal quote

Calculate how much of each token the user will receive when redeeming LP tokens.

get/quoteLPWithdrawal/{tokenA}/{tokenB}

Request

  • Base URL
    https://api.tradecraft.fi/v1
  • Auth
    none declared

Path parameters

tokenA'CC' | 'USDCx' | 'CBTC' | 'cETH' | 'HANDL' | 'EDELx' | 'SBC' required

The name/symbol of the first token (URL encoded).

tokenB'CC' | 'USDCx' | 'CBTC' | 'cETH' | 'HANDL' | 'EDELx' | 'SBC' required

The name/symbol of the second token (URL encoded).

Query parameters

lpTokenAmountnumber double required

The amount of LP tokens to redeem

Response

Liquidity withdrawal quote

amount_instrument_1number double required

Amount of instrument 1 to receive.

amount_instrument_2number double required

Amount of instrument 2 to receive.

Changes

No recorded changes to this operation across all 1 revision of this API.