pub struct PricingEngine { /* private fields */ }Expand description
Pricing engine that generates risk-adjusted prices
Implementations§
Source§impl PricingEngine
impl PricingEngine
pub fn new() -> Self
pub fn with_risk_engine(self, risk_engine: Arc<RiskEngine>) -> Self
pub fn with_ai_client(self, ai_client: Arc<AiClient>) -> Self
pub async fn calculate_prices( &self, base_quote: &Quote, ) -> Result<(Price, Price)>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PricingEngine
impl !UnwindSafe for PricingEngine
impl Freeze for PricingEngine
impl Send for PricingEngine
impl Sync for PricingEngine
impl Unpin for PricingEngine
impl UnsafeUnpin for PricingEngine
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