Manifest Trading Integration
Learn how to use Manifest protocol for market making and trading
Ping 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.
Market creation
Limit order placement
Batch order execution
Pattern-based order generation
Order cancellation
Fund withdrawal
LangChain tool integration
Copy
import { PublicKey } from "@ping/web3.js";
const [signature, marketId] = await agent.methods.manifestCreateMarket(
new PublicKey("So11111111111111111111111111111111111111112"), // SOL
new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v") // USDC
);Copy
Copy
Copy
Copy
The integration supports generating orders using patterns:
Copy
Percentage-based Spacing:
Copy
Fixed-price Spacing:
Copy
Ping Agent Kit provides several LangChain tools for Manifest trading:
Copy
Copy
Copy
For LangChain AI tools, here are example prompts:
Copy
Copy
Copy
Order Validation
Sell orders must be priced above buy orders
All orders must include quantity, side, and price
Batch orders are validated before execution
Pattern Generation
Supports both fixed and percentage-based spacing
Can specify total or individual quantities
Random order count if not specified (max 8)
Transaction Handling
Each order operation returns a transaction signature
Uses versioned transactions for compatibility
Includes automatic error handling
Market Creation
Copy
Batch Orders
Copy
Order Management
Copy
Copy
Copy
Copy
Copy
Last updated