pub struct TradeData {Show 23 fields
pub message_type: Option<String>,
pub order_status: Option<String>,
pub execution_type: Option<String>,
pub order_quantity: Option<Decimal>,
pub executed_quantity: Option<Decimal>,
pub last_quantity: Option<Decimal>,
pub remained_quantity: Option<Decimal>,
pub ticker: Option<String>,
pub class_code: Option<String>,
pub side: Option<String>,
pub order_type: Option<String>,
pub average_price: Option<Decimal>,
pub order_id: Option<String>,
pub execution_id: Option<String>,
pub price: Option<Decimal>,
pub currency: Option<String>,
pub client_code: Option<String>,
pub transaction_time: Option<String>,
pub order_number: Option<String>,
pub accrued_coupon: Option<Decimal>,
pub execution_value: Option<Decimal>,
pub commission: Option<Decimal>,
pub security_exchange: Option<String>,
}Expand description
The nested report of an older trade record shape. See TradeRecord.
It has the fields of an order report. Prefer the flat fields of TradeRecord.
Fields§
§message_type: Option<String>Type of the message, as text.
order_status: Option<String>State of the order, a digit as text.
execution_type: Option<String>Type of the report, a digit as text.
order_quantity: Option<Decimal>Quantity of the order, in pieces.
executed_quantity: Option<Decimal>Executed quantity, in pieces.
last_quantity: Option<Decimal>Quantity of the latest fill, in pieces.
remained_quantity: Option<Decimal>Remaining quantity, in pieces.
ticker: Option<String>Ticker.
class_code: Option<String>Class code (board).
side: Option<String>1 buy, 2 sell.
order_type: Option<String>Type of the order, a digit as text.
average_price: Option<Decimal>Average execution price.
order_id: Option<String>Id of the order at the exchange.
execution_id: Option<String>Id of the trade.
price: Option<Decimal>Price.
currency: Option<String>Currency.
client_code: Option<String>Client code.
transaction_time: Option<String>Time of the transaction, kept as text.
order_number: Option<String>Order number.
accrued_coupon: Option<Decimal>Accrued coupon income.
execution_value: Option<Decimal>Volume of the trade.
commission: Option<Decimal>Commission.
security_exchange: Option<String>Exchange id.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TradeData
impl<'de> Deserialize<'de> for TradeData
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
Auto Trait Implementations§
impl Freeze for TradeData
impl RefUnwindSafe for TradeData
impl Send for TradeData
impl Sync for TradeData
impl Unpin for TradeData
impl UnsafeUnpin for TradeData
impl UnwindSafe for TradeData
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