pub struct PositionConfig {
pub buy_amount_lp: u64,
pub jito_tip_buy_lp: u64,
pub hold_time_ms: u32,
pub jito_tip_sell_lp: u64,
pub use_stop_loss: bool,
pub trailing_stop_loss: bool,
pub stop_loss_threshold_lp: u64,
pub wallet_copying: Pubkey,
pub slippage_lps: u64,
}Expand description
Configuration for copy trading a specific wallet, defining position sizing and risk management. Each tracked wallet has its own configuration specifying buy amounts, hold times, stop-loss thresholds, and slippage tolerances.
Fields§
§buy_amount_lp: u64§jito_tip_buy_lp: u64§hold_time_ms: u32§jito_tip_sell_lp: u64§use_stop_loss: bool§trailing_stop_loss: bool§stop_loss_threshold_lp: u64§wallet_copying: Pubkey§slippage_lps: u64Trait Implementations§
Source§impl Clone for PositionConfig
impl Clone for PositionConfig
Source§fn clone(&self) -> PositionConfig
fn clone(&self) -> PositionConfig
Returns a copy of the value. Read more
1.0.0 · 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 PositionConfig
impl Debug for PositionConfig
impl Copy for PositionConfig
Auto Trait Implementations§
impl Freeze for PositionConfig
impl RefUnwindSafe for PositionConfig
impl Send for PositionConfig
impl Sync for PositionConfig
impl Unpin for PositionConfig
impl UnwindSafe for PositionConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request