Last updated 8 months ago
Was this helpful?
The single liquidity pool endpoint provides information on a liquidity pool.
This method will use 20 Compute Units.
20
/liquidity_pools/{liquidity_pool_id}
A unique identifier for this liquidity pool.
curl -L \ --url 'https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/liquidity_pools/{liquidity_pool_id}'
{ "id": "67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9", "paging_token": "113725249324879873", "fee_bp": 30, "type": "constant_product", "total_trustlines": "300", "total_shares": "5000", "reserves": [ { "amount": "1000.0000005", "asset": "EURT:GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S" }, { "amount": "2000.0000000", "asset": "PHP:GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S" } ], "_links": { "self": { "href": "https://horizon-testnet.stellar.org/liquidity_pools/67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9" }, "effects": { "href": "https://horizon-testnet.stellar.org/liquidity_pools/67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9/effects{?cursor,limit,order}", "templated": true }, "operations": { "href": "https://horizon-testnet.stellar.org/liquidity_pools/67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9/operations{?cursor,limit,order}", "templated": true }, "transactions": { "href": "https://horizon-testnet.stellar.org/liquidity_pools/67260c4c1807b262ff851b0a3fe141194936bb0215b2f77447f1df11998eabb9/transactions{?cursor,limit,order}", "templated": true } } }