pub struct DaemonClient { /* private fields */ }๐Deprecated:
Use hyper_agent_client::HyperAgentClient instead
Implementationsยง
Sourceยงimpl DaemonClient
impl DaemonClient
pub fn new(base_url: &str, token: &str) -> Self
pub fn from_port_file() -> Result<Self, ClientError>
pub async fn health(&self) -> Result<(), ClientError>
pub async fn status(&self) -> Result<Value, ClientError>
pub async fn shutdown(&self) -> Result<(), ClientError>
pub async fn run_strategy( &self, params: &RunStrategyParams, ) -> Result<Value, ClientError>
pub async fn stop_strategy(&self, id: &str) -> Result<Value, ClientError>
pub async fn list_strategies(&self) -> Result<Vec<Value>, ClientError>
pub async fn strategy_health(&self, id: &str) -> Result<Value, ClientError>
pub async fn place_order( &self, params: &PlaceOrderParams, ) -> Result<Value, ClientError>
pub async fn cancel_order(&self, id: &str) -> Result<(), ClientError>
pub async fn get_positions(&self) -> Result<Vec<Value>, ClientError>
pub async fn close_all_positions( &self, live: bool, ) -> Result<Value, ClientError>
pub async fn get_position_history(&self) -> Result<Vec<Value>, ClientError>
pub async fn get_pnl(&self) -> Result<Value, ClientError>
pub async fn dashboard_stats(&self) -> Result<Value, ClientError>
pub async fn get_equity(&self, days: u32) -> Result<Value, ClientError>
pub async fn get_risk_exposure(&self) -> Result<Value, ClientError>
pub async fn get_execution_quality(&self) -> Result<Value, ClientError>
pub async fn get_circuit_breaker(&self) -> Result<Value, ClientError>
Auto Trait Implementationsยง
impl Freeze for DaemonClient
impl !RefUnwindSafe for DaemonClient
impl Send for DaemonClient
impl Sync for DaemonClient
impl Unpin for DaemonClient
impl UnsafeUnpin for DaemonClient
impl !UnwindSafe for DaemonClient
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