srcChainTokenInAmount
and dstChainTokenOutAmount
fields are set in the order input.
Quoting Strategies Overview
Market Order (Recommended)
- Default and most commonly used strategy.
- User defines the exact input amount.
- Protocol determines the best output amount.
srcChainTokenInAmount
= fixed numeric valuedstChainTokenOutAmount
= “auto”
Market Order with Full Balance Utilization
- Spends the full wallet balance.
- Useful for account abstraction, batch transfers, smart wallets.
srcChainTokenInAmount
= “max”dstChainTokenOutAmount
= “auto”
Reverse Market Order
- User specifies how much to receive.
- Protocol calculates how much must be spent.
- Ideal for payment flows or contract interactions.
srcChainTokenInAmount
= “auto”dstChainTokenOutAmount
= fixed numeric value
Limit Order (Not Recommended)
- Defines both input and output amounts.
- Treated as a limit order.
- Will only be fulfilled if a solver accepts the exact terms.
Not recommended for production — risk of non-fulfillment.
- Both values must be fixed.
Example: Order Input Structure
Choosing a Strategy
Use Case | Recommended Strategy |
---|---|
Standard transfer with known input | Market Order |
Full wallet balance transfer | Market Order with Full Balance |
Target fixed destination output | Reverse Market Order |
Exact 1-to-1 trade (limit) | Limit Order (not recommended) |