Skip to main content
Create new trading markets on OpenBook DEX with customizable parameters for lot size and tick size. Supports integration with Raydium AMM v4.

Usage

Parameters

Example Prompts

Natural Language Prompts

LangChain Tool Prompts

Example Implementation

Market Configuration

Lot Size

  • Determines minimum order size
  • Must be positive number
  • Affects order book granularity
  • Consider token decimals

Tick Size

  • Sets price increment
  • Must be positive number
  • Affects price precision
  • Balance precision vs liquidity

Implementation Details

  • Uses Raydium SDK for market creation
  • Supports standard SPL tokens
  • Sequential transaction execution
  • Multiple signature requirements

Error Handling

Best Practices

  1. Market Configuration
    • Choose appropriate lot sizes
    • Set reasonable tick sizes
    • Consider token decimals
    • Plan for volume
  2. Token Compatibility
    • Verify token programs
    • Check token standards
    • Validate decimals
    • Test with small amounts
  3. Transaction Management
    • Handle multiple signatures
    • Monitor confirmations
    • Implement retries
    • Log market details
  4. Integration
    • Plan Raydium integration
    • Consider AMM v4 usage
    • Test order flow
    • Monitor market health

Common Issues

  1. Token Program
    • Incompatible token standards
    • Wrong program IDs
    • Missing approvals
    • Invalid mints
  2. Configuration
    • Invalid lot sizes
    • Inappropriate tick sizes
    • Decimal mismatches
    • Parameter conflicts
  3. Transaction
    • Signature failures
    • RPC timeouts
    • Network congestion
    • Balance issues

Common Token Addresses

  • USDC: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
  • SOL: So11111111111111111111111111111111111111112
  • USDT: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
  • RAY: 4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R
  • raydiumCreateAmmV4: Create AMM with market
  • getBalance: Check token balances
  • trade: Execute trades
  • createTokenAccount: Setup accounts

Notes for Raydium Integration

When creating markets for Raydium AMM v4:
  1. Create OpenBook market first
  2. Use market ID for AMM creation
  3. Ensure token program compatibility
  4. Consider fee configurations