pub struct BrokerClient { /* private fields */ }Implementations§
Source§impl BrokerClient
impl BrokerClient
pub fn new(client: RestClient) -> Self
Sourcepub async fn get_account_info(&self) -> Result<ServerResponse<Value>>
pub async fn get_account_info(&self) -> Result<ServerResponse<Value>>
Get broker account info https://bybit-exchange.github.io/docs/v5/broker/account-info
Sourcepub async fn get_sub_member_deposit_record(
&self,
sub_member_id: Option<&str>,
coin: Option<&str>,
start_time: Option<i64>,
end_time: Option<i64>,
limit: Option<i32>,
cursor: Option<&str>,
) -> Result<ServerResponse<Value>>
pub async fn get_sub_member_deposit_record( &self, sub_member_id: Option<&str>, coin: Option<&str>, start_time: Option<i64>, end_time: Option<i64>, limit: Option<i32>, cursor: Option<&str>, ) -> Result<ServerResponse<Value>>
Get sub account deposit records https://bybit-exchange.github.io/docs/v5/broker/sub-deposit-record
Sourcepub async fn get_earning_record(
&self,
biz_type: Option<&str>,
begin: Option<&str>,
end: Option<&str>,
uid: Option<&str>,
limit: Option<i32>,
cursor: Option<&str>,
) -> Result<ServerResponse<Value>>
pub async fn get_earning_record( &self, biz_type: Option<&str>, begin: Option<&str>, end: Option<&str>, uid: Option<&str>, limit: Option<i32>, cursor: Option<&str>, ) -> Result<ServerResponse<Value>>
Get broker earning https://bybit-exchange.github.io/docs/v5/broker/earning
Sourcepub async fn get_award_info(
&self,
coin: Option<&str>,
record_type: Option<&str>,
page: Option<i32>,
limit: Option<i32>,
start_date: Option<&str>,
end_date: Option<&str>,
) -> Result<ServerResponse<Value>>
pub async fn get_award_info( &self, coin: Option<&str>, record_type: Option<&str>, page: Option<i32>, limit: Option<i32>, start_date: Option<&str>, end_date: Option<&str>, ) -> Result<ServerResponse<Value>>
Get award info https://bybit-exchange.github.io/docs/v5/broker/award-info
Trait Implementations§
Source§impl Clone for BrokerClient
impl Clone for BrokerClient
Source§fn clone(&self) -> BrokerClient
fn clone(&self) -> BrokerClient
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 BrokerClient
impl !RefUnwindSafe for BrokerClient
impl Send for BrokerClient
impl Sync for BrokerClient
impl Unpin for BrokerClient
impl !UnwindSafe for BrokerClient
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