Skip to main content

Liquidity Pool Withdraw Object

Withdraws asset reserves from a liquidity pool by redeeming pool shares.

See the Liquidity Pool Withdraw operation for parameters, errors, etc.

  • ATTRIBUTEDATA TYPE

    DESCRIPTION

  • liquidity_pool_idstring

    The liquidity pool associated with this withdrawal

  • reserves_minarray

    An array of objects corresponding to the minimum amount of each reserve that should've been withdrawn

    Show child attributes
  • assetstring

    The asset in canonical (Code:Issuer) form

  • amountstring

    A floating point value encoded as a string

  • sharesstring

    The number of shares that were redeemed for this withdrawal operation

  • reserves_receivedarray

    An array of objects representing how much of each reserve ended up actually withdrawn from the pool

    Show child attributes
  • assetstring

    The asset in canonical (Code:Issuer) form

  • amountstring

    A floating point value encoded as a string

  • Example
    {
    "id": "3697472920621057",
    "paging_token": "3697472920621057",
    "transaction_successful": true,
    "source_account": "GBB4JST32UWKOLGYYSCEYBHBCOFL2TGBHDVOMZP462ET4ZRD4ULA7S2L",
    "type": "liquidity_pool_deposit",
    "type_i": 22,
    "created_at": "2021-11-18T03:47:47Z",
    "transaction_hash": "43ed5ce19190822ec080b67c3ccbab36a56bc34102b1a21d3ee690ed3bc23378",
    "liquidity_pool_id": "abcdef",
    "reserves_max": [
    {
    "asset": "JPY:GBVAOIACNSB7OVUXJYC5UE2D4YK2F7A24T7EE5YOMN4CE6GCHUTOUQXM",
    "amount": "1000.0000005"
    },
    {
    "asset": "EURT:GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S",
    "amount": "3000.0000005"
    }
    ],
    "min_price": "0.2680000",
    "min_price_r": {
    "n": 67,
    "d": 250
    },
    "max_price": "0.3680000",
    "max_price_r": {
    "n": 73,
    "d": 250
    },
    "reserves_deposited": [
    {
    "asset": "JPY:GBVAOIACNSB7OVUXJYC5UE2D4YK2F7A24T7EE5YOMN4CE6GCHUTOUQXM",
    "amount": "983.0000005"
    },
    {
    "asset": "EURT:GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S",
    "amount": "2378.0000005"
    }
    ],
    "shares_received": "1000"
    }