pub struct ProbabilityPriceFeeModel;Expand description
Fee model for probability-priced outcome shares.
Applies qty * fee_rate * p * (1 - p) using the instrument’s maker or
taker fee rate. This matches venues that represent outcome shares as
InstrumentAny::BinaryOption instruments quoted on a [0, 1]
probability scale.
This model covers quote-currency match-time exchange fees only. Venue-specific rebate programs or non-quote fee assets remain outside the core execution layer.
Trait Implementations§
Source§impl Clone for ProbabilityPriceFeeModel
impl Clone for ProbabilityPriceFeeModel
Source§fn clone(&self) -> ProbabilityPriceFeeModel
fn clone(&self) -> ProbabilityPriceFeeModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProbabilityPriceFeeModel
impl Debug for ProbabilityPriceFeeModel
Source§impl FeeModel for ProbabilityPriceFeeModel
impl FeeModel for ProbabilityPriceFeeModel
Source§fn get_commission(
&self,
order: &OrderAny,
fill_quantity: Quantity,
fill_px: Price,
instrument: &InstrumentAny,
) -> Result<Money>
fn get_commission( &self, order: &OrderAny, fill_quantity: Quantity, fill_px: Price, instrument: &InstrumentAny, ) -> Result<Money>
Calculates commission for a fill. Read more
Auto Trait Implementations§
impl Freeze for ProbabilityPriceFeeModel
impl RefUnwindSafe for ProbabilityPriceFeeModel
impl Send for ProbabilityPriceFeeModel
impl Sync for ProbabilityPriceFeeModel
impl Unpin for ProbabilityPriceFeeModel
impl UnsafeUnpin for ProbabilityPriceFeeModel
impl UnwindSafe for ProbabilityPriceFeeModel
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