clmm-lp-domain 0.1.0

Liquidity Provider Strategy Optimizer for Solana CLMMs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::value_objects::price_range::PriceRange;
use rust_decimal::Decimal;
use serde::{Deserialize, Serialize};

/// Represents the result of an optimization.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct OptimizationResult {
    /// The recommended price range.
    pub recommended_range: PriceRange,
    /// The expected Profit and Loss.
    pub expected_pnl: Decimal,
    /// The expected fees.
    pub expected_fees: Decimal,
    /// The expected impermanent loss.
    pub expected_il: Decimal,
    /// The Sharpe ratio.
    pub sharpe_ratio: Option<Decimal>,
}