Get pools info
Read Aquarius pool data with the official SDK — pools for a pair, reserves, share balances, and an account's positions. No signer required.
Pools for a pair
from aquarius import AquariusClient, Asset, XLM
AQUA = Asset.classic("AQUA", "GBNZILSTVQZ4R7IKQDGHYGY2QXL5QOFJYQMXPKWRRM5PAV7Y4M67AQUA")
aqua = AquariusClient(network="mainnet") # reads need no signer
for pool in aqua.pools_for_pair(XLM, AQUA):
print(pool.type, pool.fee_bps, pool.address, pool.token_labels)import { AquariusClient, Asset, XLM } from "@aquariusdefi/sdk";
const AQUA = Asset.classic("AQUA", "GBNZILSTVQZ4R7IKQDGHYGY2QXL5QOFJYQMXPKWRRM5PAV7Y4M67AQUA");
const aqua = new AquariusClient({ network: "mainnet" }); // reads need no signer
for (const pool of await aqua.pools.forPair(XLM, AQUA)) {
console.log(pool.type, pool.feeBps, pool.address, pool.tokenLabels);
}Attribute
Meaning
Reserves and share totals
Positions
The REST alternative
Last updated