Retrieve a Liquidity Pool

The single liquidity pool endpoint provides information on a liquidity pool.

This method will use 20 Compute Units.


Reference: Here

Retrieve a Liquidity Pool

get

The single liquidity pool endpoint provides information on a liquidity pool.

Path parameters
liquidity_pool_idanyRequired

A unique identifier for this liquidity pool.

Responses
200
Success
application/json
get
GET /v1/<YOUR_API_KEY_HERE>/liquidity_pools/{liquidity_pool_id} HTTP/1.1
Host: mainnet.stellar.validationcloud.io
Accept: */*
200

Success

{
  "_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
    }
  },
  "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"
    }
  ]
}

Last updated

Was this helpful?