Interact with Magneta Finance programmatically. Our API allows for public data access and private account management.
Retrieve a list of all supported tokens
Get specific liquidity pool details
{
"address": "7x...",
"tokenA": "SOL",
"tokenB": "USDC",
"liquidity": "1402930.22",
"volume24h": "502930.11",
"feeApy": "12.4%"
}Execute a token swap
{
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "1000000000",
"slippage": 0.5
}