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: Side

The order’s side (Bid or Ask)

limit_price: u64

The order’s limit price (as a FP32)

max_base_qty: u64

The max quantity of base token to match and post

max_quote_qty: u64

The max quantity of quote token to match and post

order_type: OrderType

The order type (supported types include Limit, FOK, IOC and PostOnly)

self_trade_behavior: SelfTradeBehavior

Configures what happens when this order is at least partially matched against an order belonging to the same user account

match_limit: u64

The 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.

Trait Implementations

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more

Deserialize this instance from a slice of bytes.

Serialize this instance into a vector of bytes.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.