ds: add order definition
This commit is contained in:
parent
477eba8342
commit
ed1770803f
11
src/libtrader/ds/account/order.rs
Normal file
11
src/libtrader/ds/account/order.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
use crate::ds::account::position::PositionType;
|
||||
|
||||
#[derive(PartialEq, Debug)]
|
||||
pub struct Order {
|
||||
pub action_type: PositionType,
|
||||
pub stock_symbol: String,
|
||||
pub stock_price: i64,
|
||||
pub stock_amount: i64,
|
||||
pub stock_filled: i64,
|
||||
pub is_filled: bool,
|
||||
}
|
Loading…
Reference in New Issue
Block a user