pub struct FundingRate {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl FundingRate
impl FundingRate
Sourcepub fn exchanges(&self) -> Result<Value>
pub fn exchanges(&self) -> Result<Value>
Get supported exchanges accepted by /api/v1/funding-rate endpoint.
Sourcepub fn history(
&self,
exchange: impl Into<String>,
symbol: impl Into<String>,
options: FundingRateHistoryOptions,
) -> Result<Value>
pub fn history( &self, exchange: impl Into<String>, symbol: impl Into<String>, options: FundingRateHistoryOptions, ) -> Result<Value>
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Datamaxi for FundingRate
impl Datamaxi for FundingRate
Source§fn new(api_key: String) -> FundingRate
fn new(api_key: String) -> FundingRate
Creates a new instance of the implementing type using the provided API key.
Source§fn new_with_base_url(api_key: String, base_url: String) -> FundingRate
fn new_with_base_url(api_key: String, base_url: String) -> FundingRate
Creates a new instance of the implementing type using the provided API key and base URL.
Auto 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