pub struct BybitClient {
pub base_url: String,
/* private fields */
}Fields§
§base_url: StringImplementations§
Source§impl BybitClient
impl BybitClient
Source§impl BybitClient
impl BybitClient
pub async fn get_wallet_balance( &self, account_type: Option<&str>, ) -> Result<WalletBalance>
pub async fn get_position( &self, category: &str, symbol: Option<&str>, ) -> Result<PositionList>
pub async fn set_leverage( &self, category: &str, symbol: &str, buy_leverage: &str, sell_leverage: &str, ) -> Result<Value>
pub async fn get_execution_list( &self, category: &str, symbol: Option<&str>, ) -> Result<Value>
pub async fn get_closed_pnl( &self, category: &str, symbol: Option<&str>, ) -> Result<Value>
Source§impl BybitClient
impl BybitClient
pub async fn get_server_time(&self) -> Result<ServerTime>
pub async fn get_kline( &self, category: &str, symbol: &str, interval: &str, start: Option<i64>, end: Option<i64>, ) -> Result<Value>
pub async fn get_tickers(&self, category: &str) -> Result<TickerList>
pub async fn get_orderbook( &self, category: &str, symbol: &str, limit: u32, ) -> Result<OrderBook>
pub async fn get_instruments(&self, category: &str) -> Result<InstrumentList>
Source§impl BybitClient
impl BybitClient
pub async fn create_order( &self, request: &CreateOrderRequest, ) -> Result<CreateOrderResponse>
pub async fn cancel_order( &self, category: &str, order_id: &str, symbol: &str, ) -> Result<Value>
pub async fn cancel_all_orders( &self, category: &str, symbol: &str, ) -> Result<Value>
pub async fn get_order( &self, category: &str, order_id: &str, ) -> Result<OrderList>
pub async fn get_open_orders(&self, category: &str) -> Result<OrderList>
Trait Implementations§
Source§impl Clone for BybitClient
impl Clone for BybitClient
Source§fn clone(&self) -> BybitClient
fn clone(&self) -> BybitClient
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for BybitClient
impl !RefUnwindSafe for BybitClient
impl Send for BybitClient
impl Sync for BybitClient
impl Unpin for BybitClient
impl !UnwindSafe for BybitClient
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