pub struct QuoteOneSideParams {
pub symbol: String,
pub marketdata_venue: MarketdataVenue,
pub execution_venue: ExecutionVenue,
pub account: Option<AccountIdOrName>,
pub dir: Dir,
pub quantity: Decimal,
pub limit_price: Decimal,
pub max_ticks_outside: Option<Decimal>,
pub improve_or_join: ImproveOrJoin,
pub quantity_filled: Decimal,
}Expand description
Parameters for the QuoteOneSide algorithm
Fields§
§symbol: String§marketdata_venue: MarketdataVenue§execution_venue: ExecutionVenue§account: Option<AccountIdOrName>§dir: Dir§quantity: Decimal§limit_price: Decimalthe most aggressive price the algo will quote at
max_ticks_outside: Option<Decimal>Maximum number of ticks less aggressive than the BBO to quote
None: No constraint on distance from BBO - will quote at any valid price up to the limit priceSome(n): Will only quote if within n ticks of the best same-side price (BBO) Orders beyond this distance are cancelled as they’re unlikely to fill- Example: With
Some(5)for a buy order, if best bid is 100, will only quote between 95-100
improve_or_join: ImproveOrJoinWhether to improve the market or join at the current best price
quantity_filled: DecimalInsert as 0, used for tracking fill quantity when modifying quote
Trait Implementations§
Source§impl Clone for QuoteOneSideParams
impl Clone for QuoteOneSideParams
Source§fn clone(&self) -> QuoteOneSideParams
fn clone(&self) -> QuoteOneSideParams
Returns a duplicate of the value. Read more
1.0.0 · 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 QuoteOneSideParams
impl Debug for QuoteOneSideParams
Source§impl<'de> Deserialize<'de> for QuoteOneSideParams
impl<'de> Deserialize<'de> for QuoteOneSideParams
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 DisplaySymbols for QuoteOneSideParams
impl DisplaySymbols for QuoteOneSideParams
Source§impl JsonSchema for QuoteOneSideParams
impl JsonSchema for QuoteOneSideParams
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &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 moreSource§impl Serialize for QuoteOneSideParams
impl Serialize for QuoteOneSideParams
Auto Trait Implementations§
impl Freeze for QuoteOneSideParams
impl RefUnwindSafe for QuoteOneSideParams
impl Send for QuoteOneSideParams
impl Sync for QuoteOneSideParams
impl Unpin for QuoteOneSideParams
impl UnwindSafe for QuoteOneSideParams
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