pub struct BybitHttp { /* private fields */ }Implementations§
Source§impl BybitHttp
impl BybitHttp
pub async fn get_wallet_balance(&self) -> BybitResult<GetWalletBalanceResponse>
pub async fn get_account_info(&self) -> BybitResult<BybitAccountInfo>
Source§impl BybitHttp
impl BybitHttp
pub async fn get_server_time(&self) -> BybitResult<ServerTimeResponse>
pub async fn get_instruments_info( &self, category: String, ) -> BybitResult<InstrumentsInfoResponse>
pub async fn get_orderbook( &self, category: String, symbol: String, limit: i32, ) -> BybitResult<OrderbookResponse>
pub async fn get_tickers(&self) -> BybitResult<GetTickersResponse>
Source§impl BybitHttp
impl BybitHttp
pub async fn get_positions(&self) -> BybitResult<GetPositionResponse>
Source§impl BybitHttp
impl BybitHttp
pub async fn get_open_order( &self, symbol: &String, cloid: Option<String>, ) -> BybitResult<GetOrderResponse>
pub async fn place_order( &self, _cloid: &String, symbol: &String, side: &String, price: &String, qty: &String, ) -> BybitResult<OrderResponse>
pub async fn cancel_order( &self, symbol: &String, cloid: &String, ) -> BybitResult<OrderResponse>
pub async fn cancel_all_orders( &self, symbol: &String, ) -> BybitResult<CancelAllOrdersResponse>
pub async fn amend_order( &self, symbol: &String, cloid: &String, price: &String, ) -> BybitResult<OrderResponse>
Auto Trait Implementations§
impl Freeze for BybitHttp
impl !RefUnwindSafe for BybitHttp
impl Send for BybitHttp
impl Sync for BybitHttp
impl Unpin for BybitHttp
impl !UnwindSafe for BybitHttp
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