pub struct OrdersClient { /* private fields */ }Implementations§
Source§impl OrdersClient
impl OrdersClient
pub fn new(api_key: Option<String>, secret_key: Option<String>) -> Self
pub fn get_open_orders<S>(&self, symbol: S) -> Result<Vec<OrderInfo>>
pub fn get_order_history<S>( &self, symbol: S, side: Option<String>, order_type: String, start_time: i64, end_time: i64, ) -> Result<ResultData<Vec<OrderInfo>>>
pub fn get_open_trigger_orders<S>( &self, symbol: S, option_type: Option<String>, ) -> Result<Vec<TriggerOrderInfo>>
pub fn place_order<S>( &self, symbol: S, side: String, price: Decimal, option_type: String, size: Decimal, reduce_only: bool, ioc: bool, post_only: bool, client_id: Option<String>, reject_on_price_band: bool, ) -> Result<OrderInfo>
pub fn modify_order( &self, order_id: i64, price: Decimal, size: Decimal, client_id: Option<String>, ) -> Result<OrderInfo>
pub fn modify_order_by_client_id( &self, client_id: String, price: Decimal, size: Decimal, ) -> Result<OrderInfo>
pub fn get_order_status(&self, order_id: i64) -> Result<OrderInfo>
pub fn get_order_status_by_client_id( &self, client_id: String, ) -> Result<OrderInfo>
pub fn cancel_order(&self, order_id: i64) -> Result<bool>
pub fn cancel_order_by_client_id(&self, client_id: String) -> Result<bool>
pub fn cancel_all_orders<S>( &self, symbol: S, side: Option<String>, conditional_orders_only: bool, limit_orders_only: bool, ) -> Result<bool>
Trait Implementations§
Source§impl Clone for OrdersClient
impl Clone for OrdersClient
Source§fn clone(&self) -> OrdersClient
fn clone(&self) -> OrdersClient
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for OrdersClient
impl !UnwindSafe for OrdersClient
impl Freeze for OrdersClient
impl Send for OrdersClient
impl Sync for OrdersClient
impl Unpin for OrdersClient
impl UnsafeUnpin for OrdersClient
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