post https://rest-api.hellomoon.io/v0/defi/liquidity-pools/balances
Current balance of Liquidity Pools
Examples
List all liquidity pools by Token A
const axios = require("axios");
const url = "https://rest-api.hellomoon.io/v0/defi/liquidity-pools/balances";
async function getLiquidityPools() {
const { data } = await axios.post(
url,
{
"mintTokenA": "DUSTawucrTsGU8hcqRdHDCbuYhCPADMLM2VcCb8VnFnQ"
},
{
headers: {
Accept: "application/json",
"Content-Type": "application/json",
Authorization: "Bearer <your_token>",
},
}
);
console.log(data);
}
List all liquidity pools by token pair
const axios = require("axios");
const url = "https://rest-api.hellomoon.io/v0/defi/liquidity-pools/balances";
async function getLiquidityPoolsByPair() {
const { data } = await axios.post(
url,
{
"poolName": "USDC - wSOL"
},
{
headers: {
Accept: "application/json",
"Content-Type": "application/json",
Authorization: "Bearer <your_token>",
},
}
);
console.log(data);
}