pub struct Position {
pub market_id: MarketId,
pub quantity: Option<Decimal>,
pub average_price: Option<Decimal>,
pub trade_time: Option<DateTime<Utc>>,
pub trade_date: Option<NaiveDate>,
pub dir: Dir,
pub break_even_price: Option<Decimal>,
pub liquidation_price: Option<Decimal>,
}Fields§
§market_id: MarketId§quantity: Option<Decimal>§average_price: Option<Decimal>Average price used to open position
trade_time: Option<DateTime<Utc>>§trade_date: Option<NaiveDate>The trade date according to the exchange settlement calendar.
dir: Dir§break_even_price: Option<Decimal>§liquidation_price: Option<Decimal>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Position
impl<'de> Deserialize<'de> for Position
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 JsonSchema for Position
impl JsonSchema for Position
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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