pub struct FundingRate { /* private fields */ }Implementations§
Source§impl FundingRate
impl FundingRate
Sourcepub fn from_client(client: Client) -> Self
pub fn from_client(client: Client) -> Self
Wraps an already-built client (e.g. from ClientBuilder).
Sourcepub async fn exchanges(&self) -> Result<Vec<String>>
pub async fn exchanges(&self) -> Result<Vec<String>>
Get supported exchanges accepted by /api/v1/funding-rate endpoint.
Sourcepub async fn history(
&self,
exchange: impl Into<String>,
symbol: impl Into<String>,
options: FundingRateHistoryOptions,
) -> Result<FundingRateHistoryResponse>
pub async fn history( &self, exchange: impl Into<String>, symbol: impl Into<String>, options: FundingRateHistoryOptions, ) -> Result<FundingRateHistoryResponse>
Get historical funding rate data for a given exchange and symbol.
Trait Implementations§
Source§impl Clone for FundingRate
impl Clone for FundingRate
Source§fn clone(&self) -> FundingRate
fn clone(&self) -> FundingRate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FundingRate
impl !RefUnwindSafe for FundingRate
impl Send for FundingRate
impl Sync for FundingRate
impl Unpin for FundingRate
impl UnsafeUnpin for FundingRate
impl !UnwindSafe for FundingRate
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