pub struct DeribitFixClient { /* private fields */ }Expand description
Main Deribit FIX client
Implementations§
Source§impl DeribitFixClient
impl DeribitFixClient
Sourcepub async fn disconnect(&mut self) -> Result<()>
pub async fn disconnect(&mut self) -> Result<()>
Disconnect from the server
Sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
Check if the client is connected
Sourcepub async fn send_order(&self, order: NewOrderRequest) -> Result<String>
pub async fn send_order(&self, order: NewOrderRequest) -> Result<String>
Send a new order
Sourcepub async fn cancel_order(&self, order_id: String) -> Result<()>
pub async fn cancel_order(&self, order_id: String) -> Result<()>
Cancel an order
Sourcepub async fn subscribe_market_data(&self, symbol: String) -> Result<()>
pub async fn subscribe_market_data(&self, symbol: String) -> Result<()>
Subscribe to market data
Sourcepub async fn get_positions(&self) -> Result<Vec<Position>>
pub async fn get_positions(&self) -> Result<Vec<Position>>
Get account positions
Auto Trait Implementations§
impl Freeze for DeribitFixClient
impl !RefUnwindSafe for DeribitFixClient
impl Send for DeribitFixClient
impl Sync for DeribitFixClient
impl Unpin for DeribitFixClient
impl !UnwindSafe for DeribitFixClient
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