pub struct Mexc {
pub api_key: Option<String>,
pub api_secret: Option<String>,
pub client: Client,
}Fields§
§api_key: Option<String>§api_secret: Option<String>§client: ClientImplementations§
Source§impl Mexc
impl Mexc
pub async fn symbol_info(&self, symbol: &str) -> Result<ExchangeInfo>
pub async fn exchange_info(&self) -> Result<ExchangeInfo>
pub async fn get_spot_orderbook( &self, symbol: &str, depth: Option<u32>, ) -> Result<Orderbook>
Source§impl Mexc
impl Mexc
pub fn sign_request(&self, order_details: String) -> Result<String>
pub async fn post_signed(&self, url: &str) -> Result<Response>
pub async fn put_signed(&self, url: &str) -> Result<Response>
pub async fn delete_signed(&self, url: &str) -> Result<Response>
pub async fn submit_order( &self, symbol: &str, side: OrderSide, order_type: OrderType, price: f64, quantity: f64, recv_window: Option<u64>, ) -> Result<OrderReceipt>
pub async fn batch_orders( &self, orders: Vec<Order>, recv_window: Option<u64>, ) -> Result<Vec<OrderReceipt>>
pub async fn cancel_all_orders( &self, symbol: &str, recv_window: Option<u64>, ) -> Result<Vec<CancelledOrder>>
pub async fn cancel_order( &self, symbol: &str, order_id: &str, recv_window: Option<u64>, ) -> Result<CancelledOrder>
pub async fn get_open_orders( &self, symbol: &str, recv_window: Option<u64>, ) -> Result<Vec<OrderQuery>>
Source§impl Mexc
impl Mexc
pub async fn get_signed(&self, url: &str) -> Result<Response>
pub async fn get_account(&self) -> Result<Account>
pub async fn get_listen_key(&self) -> Result<String>
pub async fn keep_alive_listen_key(&self, listen_key: &str) -> Result<String>
pub async fn delete_listen_key(&self, listen_key: &str) -> Result<String>
Auto Trait Implementations§
impl Freeze for Mexc
impl !RefUnwindSafe for Mexc
impl Send for Mexc
impl Sync for Mexc
impl Unpin for Mexc
impl !UnwindSafe for Mexc
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