pub struct KellyRigorousStrategy {
pub params: KellyRigorousParameters,
pub bid_spread_table: Arc<LookupTable>,
pub ask_spread_table: Arc<LookupTable>,
/* private fields */
}Expand description
Kelly-optimal market-making strategy driven by the rigorous log-utility HJB.
Rigor: Rigorous. Uses the true log-utility HJB solution, not a CARA approximation. On every tick:
- Computes tau = t_horizon - elapsed and x = cash / mid.
- Interpolates 3D spread tables at (q, x, tau).
- Places bid/ask orders at mid +/- interpolated spread.
§Table format
Both tables must be 3-dimensional with axes [q, x, tau]:
- axis 0: inventory (-Q..Q)
- axis 1: wealth ratio x = X/S
- axis 2: time remaining tau (0..T)
Fields§
§params: KellyRigorousParameters§bid_spread_table: Arc<LookupTable>§ask_spread_table: Arc<LookupTable>Implementations§
Source§impl KellyRigorousStrategy
impl KellyRigorousStrategy
pub fn new( params: KellyRigorousParameters, bid_spread_table: Arc<LookupTable>, ask_spread_table: Arc<LookupTable>, ) -> Self
Trait Implementations§
Source§impl Clone for KellyRigorousStrategy
impl Clone for KellyRigorousStrategy
Source§fn clone(&self) -> KellyRigorousStrategy
fn clone(&self) -> KellyRigorousStrategy
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 Strategy for KellyRigorousStrategy
impl Strategy for KellyRigorousStrategy
Source§fn on_tick(&mut self, obs: &Observation, requests: &mut Vec<OrderRequest>)
fn on_tick(&mut self, obs: &Observation, requests: &mut Vec<OrderRequest>)
Called each tick with the agent’s filtered observation.
Appends order requests (New, Cancel, CancelAll) to the provided buffer.
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Downcast helper — returns
self as &mut dyn Any.Auto Trait Implementations§
impl Freeze for KellyRigorousStrategy
impl RefUnwindSafe for KellyRigorousStrategy
impl Send for KellyRigorousStrategy
impl Sync for KellyRigorousStrategy
impl Unpin for KellyRigorousStrategy
impl UnsafeUnpin for KellyRigorousStrategy
impl UnwindSafe for KellyRigorousStrategy
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more