Usage
Parameters
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
baseMint | PublicKey | Yes | - | Base token mint address |
quoteMint | PublicKey | Yes | - | Quote token mint address |
lotSize | number | No | 1 | Minimum order size |
tickSize | number | No | 0.01 | Minimum price increment |
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
-
Market Configuration
- Choose appropriate lot sizes
- Set reasonable tick sizes
- Consider token decimals
- Plan for volume
-
Token Compatibility
- Verify token programs
- Check token standards
- Validate decimals
- Test with small amounts
-
Transaction Management
- Handle multiple signatures
- Monitor confirmations
- Implement retries
- Log market details
-
Integration
- Plan Raydium integration
- Consider AMM v4 usage
- Test order flow
- Monitor market health
Common Issues
-
Token Program
- Incompatible token standards
- Wrong program IDs
- Missing approvals
- Invalid mints
-
Configuration
- Invalid lot sizes
- Inappropriate tick sizes
- Decimal mismatches
- Parameter conflicts
-
Transaction
- Signature failures
- RPC timeouts
- Network congestion
- Balance issues
Common Token Addresses
- USDC:
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
- SOL:
So11111111111111111111111111111111111111112
- USDT:
Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
- RAY:
4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R
Related Functions
raydiumCreateAmmV4
: Create AMM with marketgetBalance
: Check token balancestrade
: Execute tradescreateTokenAccount
: Setup accounts
Notes for Raydium Integration
When creating markets for Raydium AMM v4:- Create OpenBook market first
- Use market ID for AMM creation
- Ensure token program compatibility
- Consider fee configurations