pub enum TopicMessage {
Order(PrivateMsg<Vec<OrderMsg>>),
Position(PrivateMsg<Vec<PositionMsg>>),
Wallet(PrivateMsg<Vec<WalletMsg>>),
Execution(PrivateMsg<Vec<ExecutionMsg>>),
FastExecution(PrivateMsg<Vec<FastExecutionMsg>>),
Greeks(PrivateMsg<Vec<GreekMsg>>),
Dcp(PrivateMsg<DcpMsg>),
}Expand description
The derived impl only accepts the bare topic names; IncomingMessage::from_json
also accepts topics with a category suffix (e.g. order.linear). The
variant names the topic and every data item carries its category.
Variants§
Order(PrivateMsg<Vec<OrderMsg>>)
Order updates (order topic).
Position(PrivateMsg<Vec<PositionMsg>>)
Position updates (position topic).
Wallet(PrivateMsg<Vec<WalletMsg>>)
Wallet updates (wallet topic).
Execution(PrivateMsg<Vec<ExecutionMsg>>)
Executions (execution topic).
FastExecution(PrivateMsg<Vec<FastExecutionMsg>>)
Fast execution: fills arrive immediately, before settlement completes.
Greeks(PrivateMsg<Vec<GreekMsg>>)
Option greek updates.
Dcp(PrivateMsg<DcpMsg>)
Disconnection and Cancellation Protection status update.
Trait Implementations§
Source§impl Debug for TopicMessage
impl Debug for TopicMessage
Source§impl<'de> Deserialize<'de> for TopicMessage
impl<'de> Deserialize<'de> for TopicMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TopicMessage
impl PartialEq for TopicMessage
impl StructuralPartialEq for TopicMessage
Auto Trait Implementations§
impl Freeze for TopicMessage
impl RefUnwindSafe for TopicMessage
impl Send for TopicMessage
impl Sync for TopicMessage
impl Unpin for TopicMessage
impl UnsafeUnpin for TopicMessage
impl UnwindSafe for TopicMessage
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