pub struct SpotLeverageTokenClient { /* private fields */ }Implementations§
Source§impl SpotLeverageTokenClient
impl SpotLeverageTokenClient
pub fn new(client: RestClient) -> Self
Sourcepub async fn get_leverage_token_info(
&self,
lt_coin: Option<&str>,
) -> Result<ServerResponse<Value>>
pub async fn get_leverage_token_info( &self, lt_coin: Option<&str>, ) -> Result<ServerResponse<Value>>
Get leverage token info https://bybit-exchange.github.io/docs/v5/lt/leverage-token-info
Sourcepub async fn get_leverage_token_reference(
&self,
lt_coin: &str,
) -> Result<ServerResponse<Value>>
pub async fn get_leverage_token_reference( &self, lt_coin: &str, ) -> Result<ServerResponse<Value>>
Get leverage token market https://bybit-exchange.github.io/docs/v5/lt/leverage-token-reference
Sourcepub async fn purchase(
&self,
lt_coin: &str,
lt_amount: &str,
serial_no: Option<&str>,
) -> Result<ServerResponse<Value>>
pub async fn purchase( &self, lt_coin: &str, lt_amount: &str, serial_no: Option<&str>, ) -> Result<ServerResponse<Value>>
Purchase leverage token https://bybit-exchange.github.io/docs/v5/lt/purchase
Sourcepub async fn redeem(
&self,
lt_coin: &str,
lt_amount: &str,
serial_no: Option<&str>,
) -> Result<ServerResponse<Value>>
pub async fn redeem( &self, lt_coin: &str, lt_amount: &str, serial_no: Option<&str>, ) -> Result<ServerResponse<Value>>
Redeem leverage token https://bybit-exchange.github.io/docs/v5/lt/redeem
Sourcepub async fn get_order_record(
&self,
lt_coin: Option<&str>,
order_id: Option<&str>,
start_time: Option<i64>,
end_time: Option<i64>,
limit: Option<i32>,
lt_order_type: Option<i32>,
serial_no: Option<&str>,
) -> Result<ServerResponse<Value>>
pub async fn get_order_record( &self, lt_coin: Option<&str>, order_id: Option<&str>, start_time: Option<i64>, end_time: Option<i64>, limit: Option<i32>, lt_order_type: Option<i32>, serial_no: Option<&str>, ) -> Result<ServerResponse<Value>>
Get purchase/redemption records https://bybit-exchange.github.io/docs/v5/lt/order-record
Auto Trait Implementations§
impl Freeze for SpotLeverageTokenClient
impl !RefUnwindSafe for SpotLeverageTokenClient
impl Send for SpotLeverageTokenClient
impl Sync for SpotLeverageTokenClient
impl Unpin for SpotLeverageTokenClient
impl !UnwindSafe for SpotLeverageTokenClient
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