Retrieve a Liquidity Pool
GET/liquidity_pools/:liquidity_pool_id
The single liquidity pool endpoint provides information on a liquidity pool.
Request
Path Parameters
liquidity_pool_id anyrequired
A unique identifier for this liquidity pool.
Responses
- 200
Success
- application/json
- Schema
- Example (from schema)
- RetrieveALiquidityPool
Schema
_links
object
self
object
required
href linkrequired
templated boolean
transactions
object
required
href linkrequired
templated boolean
operations
object
required
href linkrequired
templated boolean
id id (string)required
paging_token paging_token (string)required
fee_bp uint32required
type stringrequired
total_trustlines stringrequired
total_shares stringrequired
reserves
object
required
asset string
amount string
last_modified_ledger stringrequired
last_modified_time stringrequired
{
"_links": {
"self": {
"href": "string",
"templated": true
},
"transactions": {
"href": "string",
"templated": true
},
"operations": {
"href": "string",
"templated": true
}
},
"id": "string",
"paging_token": "string",
"fee_bp": 0,
"type": "string",
"total_trustlines": "string",
"total_shares": "string",
"reserves": {
"asset": "string",
"amount": "string"
},
"last_modified_ledger": "string",
"last_modified_time": "string"
}
{
"_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"
}
]
}
Loading...