Learn how to use Manifest protocol for market making and trading
Solana Agent Kit provides comprehensive integration with Manifest protocol for creating markets, placing orders, and managing trades. The integration supports various order types, batch orders, and market management functions.
import { PublicKey } from "@solana/web3.js";const [signature, marketId] = await agent.manifestCreateMarket( new PublicKey("So11111111111111111111111111111111111111112"), // SOL new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v") // USDC);
"Place a limit buy order for 1.5 SOL at $25.5""Create 5 buy orders totaling 100 tokens, 1% apart below $1""Place sell orders of 10 tokens each between $50-$55"