pub enum PlatformOrderBatchOperation {
Place {
account_sequence: Option<String>,
client_order_id: String,
side: PlatformTradeSide,
order_type: PlatformOrderType,
limit_price_atoms: String,
size_atoms: String,
},
Cancel {
order_id: String,
},
Replace {
order_id: String,
account_sequence: Option<String>,
client_order_id: String,
side: PlatformTradeSide,
order_type: PlatformOrderType,
limit_price_atoms: String,
size_atoms: String,
},
}Expand description
One operation inside an atomic order-control batch. Owner and session identity live on the enclosing challenge so no item can widen authority.
Variants§
Place
Fields
§
account_sequence: Option<String>Vault market account sequence for this order. Omit it and Strata resolves the next sequence from the Vault’s confirmed market account when the challenge is issued (consecutive places in one batch receive consecutive sequences); supply it to pin a sequence tracked locally. A batch must either supply every sequence or none.
§
side: PlatformTradeSide§
order_type: PlatformOrderTypeCancel
Replace
Trait Implementations§
Source§impl Clone for PlatformOrderBatchOperation
impl Clone for PlatformOrderBatchOperation
Source§fn clone(&self) -> PlatformOrderBatchOperation
fn clone(&self) -> PlatformOrderBatchOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlatformOrderBatchOperation
impl Debug for PlatformOrderBatchOperation
Source§impl<'de> Deserialize<'de> for PlatformOrderBatchOperation
impl<'de> Deserialize<'de> for PlatformOrderBatchOperation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformOrderBatchOperation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformOrderBatchOperation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PlatformOrderBatchOperation
Source§impl Serialize for PlatformOrderBatchOperation
impl Serialize for PlatformOrderBatchOperation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PlatformOrderBatchOperation
Auto Trait Implementations§
impl Freeze for PlatformOrderBatchOperation
impl RefUnwindSafe for PlatformOrderBatchOperation
impl Send for PlatformOrderBatchOperation
impl Sync for PlatformOrderBatchOperation
impl Unpin for PlatformOrderBatchOperation
impl UnsafeUnpin for PlatformOrderBatchOperation
impl UnwindSafe for PlatformOrderBatchOperation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more