pub struct PayoutQuote {
pub symbol: String,
pub option_type: OptionType,
pub expiration_seconds: u64,
pub profit_percent: Option<f64>,
pub min_amount: Option<f64>,
pub max_amount: Option<f64>,
pub available: bool,
pub captured_at: i64,
}Expand description
Cotización de payout para una combinación concreta.
A diferencia de Payout, distingue “sin cotización” (available: false)
de un payout real. captured_at == 0 indica que no se capturó una
cotización del bróker.
Fields§
§symbol: String§option_type: OptionType§expiration_seconds: u64§profit_percent: Option<f64>Porcentaje de ganancia 0-100; None si no hay cotización.
min_amount: Option<f64>§max_amount: Option<f64>§available: boolfalse si el bróker no ofrece la combinación o no hay dato.
captured_at: i64Epoch segundos de la captura; 0 si no hubo captura.
Implementations§
Source§impl PayoutQuote
impl PayoutQuote
Cotización ausente: no inventa 0.0 ni un payout.
Trait Implementations§
Source§impl Clone for PayoutQuote
impl Clone for PayoutQuote
Source§impl Debug for PayoutQuote
impl Debug for PayoutQuote
Source§impl<'de> Deserialize<'de> for PayoutQuote
impl<'de> Deserialize<'de> for PayoutQuote
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 PartialEq for PayoutQuote
impl PartialEq for PayoutQuote
Source§impl Serialize for PayoutQuote
impl Serialize for PayoutQuote
impl StructuralPartialEq for PayoutQuote
Auto Trait Implementations§
impl Forget for PayoutQuote
impl Freeze for PayoutQuote
impl RefUnwindSafe for PayoutQuote
impl Send for PayoutQuote
impl Sync for PayoutQuote
impl Unpin for PayoutQuote
impl UnsafeUnpin for PayoutQuote
impl UnwindSafe for PayoutQuote
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