pub struct AssetConfig {
pub symbol: String,
pub enabled: bool,
pub max_position_size_pct: f64,
pub max_leverage: f64,
pub min_order_size: f64,
pub max_order_size: f64,
pub atr_multiplier: f64,
pub rsi_overbought: f64,
pub rsi_oversold: f64,
pub exchanges: HashMap<String, ExchangeAssetConfig>,
}Fields§
§symbol: StringFull trading symbol (e.g., “BTC/USD”)
enabled: boolWhether this asset is enabled for trading
max_position_size_pct: f64Maximum position size as percentage of account
max_leverage: f64Maximum leverage allowed
min_order_size: f64Minimum order size in base currency
max_order_size: f64Maximum order size in base currency
atr_multiplier: f64ATR multiplier for stop loss calculation
rsi_overbought: f64RSI overbought threshold
rsi_oversold: f64RSI oversold threshold
exchanges: HashMap<String, ExchangeAssetConfig>Exchange-specific configurations
Trait Implementations§
Source§impl Clone for AssetConfig
impl Clone for AssetConfig
Source§fn clone(&self) -> AssetConfig
fn clone(&self) -> AssetConfig
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 AssetConfig
impl Debug for AssetConfig
Source§impl Default for AssetConfig
impl Default for AssetConfig
Source§impl<'de> Deserialize<'de> for AssetConfigwhere
AssetConfig: Default,
impl<'de> Deserialize<'de> for AssetConfigwhere
AssetConfig: Default,
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
Auto Trait Implementations§
impl Freeze for AssetConfig
impl RefUnwindSafe for AssetConfig
impl Send for AssetConfig
impl Sync for AssetConfig
impl Unpin for AssetConfig
impl UnsafeUnpin for AssetConfig
impl UnwindSafe for AssetConfig
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