Struct phoenix_sdk_core::packet_decoder::PostOnlyPacket
source · pub struct PostOnlyPacket {
pub side: Side,
pub price_in_ticks: u64,
pub num_base_lots: u64,
pub client_order_id: u128,
pub reject_post_only: bool,
pub use_only_deposited_funds: bool,
pub last_valid_slot: Option<u64>,
pub last_valid_unix_timestamp_in_seconds: Option<u64>,
}
Fields§
§side: Side
§price_in_ticks: u64
The price of the order, in ticks
num_base_lots: u64
Number of base lots to place on the book
client_order_id: u128
Client order id used to identify the order in the response to the client
reject_post_only: bool
Flag for whether or not to reject the order if it would immediately match or amend it to the best non-crossing price Default value is true
use_only_deposited_funds: bool
Flag for whether or not the order should only use funds that are already in the account Using only deposited funds will allow the trader to pass in less accounts per instruction and save transaction space as well as compute. This is only for traders who have a seat
last_valid_slot: Option<u64>
If this is set, the order will be invalid after the specified slot
last_valid_unix_timestamp_in_seconds: Option<u64>
If this is set, the order will be invalid after the specified unix timestamp