pub struct MarginLoanRecord { /* private fields */ }
Expand description
GET /sapi/v1/margin/loan
txId
orstartTime
must be sent.txId
takes precedence.- Response in descending order
- If
isolatedSymbol
is not sent, crossed margin data will be returned - Set
archived
totrue
to query data from 6 months ago
Weight(IP): 10
Example
use binance_spot_connector_rust::margin;
let request = margin::margin_loan_record("BTC").tx_id(123456789).current(1).size(100);
Implementations§
source§impl MarginLoanRecord
impl MarginLoanRecord
pub fn new(asset: &str) -> Self
pub fn isolated_symbol(self, isolated_symbol: &str) -> Self
pub fn tx_id(self, tx_id: u64) -> Self
pub fn start_time(self, start_time: u64) -> Self
pub fn end_time(self, end_time: u64) -> Self
pub fn current(self, current: u64) -> Self
pub fn size(self, size: u64) -> Self
pub fn archived(self, archived: bool) -> Self
pub fn recv_window(self, recv_window: u64) -> Self
pub fn credentials(self, credentials: &Credentials) -> Self
Trait Implementations§
source§impl From<MarginLoanRecord> for Request
impl From<MarginLoanRecord> for Request
source§fn from(request: MarginLoanRecord) -> Request
fn from(request: MarginLoanRecord) -> Request
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MarginLoanRecord
impl Send for MarginLoanRecord
impl Sync for MarginLoanRecord
impl Unpin for MarginLoanRecord
impl UnwindSafe for MarginLoanRecord
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