Skip to main content
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.

Key Features

  • Market creation
  • Limit order placement
  • Batch order execution
  • Pattern-based order generation
  • Order cancellation
  • Fund withdrawal
  • LangChain tool integration

Basic Usage

Creating a New Market

Placing a Limit Order

Placing Batch Orders

Cancelling All Orders

Withdrawing Funds

Batch Order Patterns

The integration supports generating orders using patterns:

Pattern Examples

  1. Percentage-based Spacing:
  1. Fixed-price Spacing:

LangChain Integration

Solana Agent Kit provides several LangChain tools for Manifest trading:

Create Market Tool

Limit Order Tool

Batch Order Tool

Example Prompts

For LangChain AI tools, here are example prompts:

Market Creation

Order Placement

Market Management

Important Notes

  1. Order Validation
    • Sell orders must be priced above buy orders
    • All orders must include quantity, side, and price
    • Batch orders are validated before execution
  2. Pattern Generation
    • Supports both fixed and percentage-based spacing
    • Can specify total or individual quantities
    • Random order count if not specified (max 8)
  3. Transaction Handling
    • Each order operation returns a transaction signature
    • Uses versioned transactions for compatibility
    • Includes automatic error handling

Best Practices

  1. Market Creation
  2. Batch Orders
  3. Order Management

Error Handling

Technical Details

Constants

Order Types

Transaction Configuration