Struct dex_v3::instruction::new_order::Params [−][src]
pub struct Params {
pub side: Side,
pub limit_price: u64,
pub max_base_qty: u64,
pub max_quote_qty: u64,
pub order_type: OrderType,
pub self_trade_behavior: SelfTradeBehavior,
pub match_limit: u64,
}Expand description
The required arguments for a new_order instruction.
Fields
side: SideThe order’s side (Bid or Ask)
limit_price: u64The order’s limit price (as a FP32)
max_base_qty: u64The max quantity of base token to match and post
max_quote_qty: u64The max quantity of quote token to match and post
order_type: OrderTypeThe order type (supported types include Limit, FOK, IOC and PostOnly)
self_trade_behavior: SelfTradeBehaviorConfigures what happens when this order is at least partially matched against an order belonging to the same user account
match_limit: u64The maximum number of orders to be matched against.
Setting this number too high can sometimes lead to excessive resource consumption which can cause a failure.