Reverse engineered prompt

GitHub

Build me a Go SDK for Meteora DLMM on Solana that feels complete and easy to use.

I want two main pieces. First, a client for Meteora’s analytics API so someone can fetch pools, protocol overview stats, historical data, volume and fees, active or closed portfolios, PnL, and limit order related data. Second, an on chain client that can read live pool state, bin arrays, and positions from Solana, derive the right addresses, calculate swap quotes and price conversions with good precision, and build swap instructions someone could include in a transaction.

Please make the public API clean with sensible defaults, context support, and examples that show common flows like listing top pools, reading a pool price, simulating a swap, and creating a swap instruction. Add tests for the important logic and any live integration coverage that makes sense. Good README docs matter here, with copy paste examples that actually work. If anything is unclear, look up the current Meteora and Solana docs online.

Have a live product UI? Try website reverse