pub struct KlinesParams {
pub symbol: String,
pub interval: KlinesIntervalEnum,
pub limit: Option<i64>,
pub start_time: Option<i64>,
pub end_time: Option<i64>,
}Expand description
Request parameters for the [klines] operation.
This struct holds all of the inputs you can pass when calling
klines.
Fields§
§symbol: StringTrading pair symbol, e.g. ALPHA_175USDT (use token ID from Token List).
This field is **required.
interval: KlinesIntervalEnumKline interval.
This field is **required.
limit: Option<i64>Number of klines to return.
This field is **optional.
start_time: Option<i64>Start timestamp in milliseconds.
This field is **optional.
end_time: Option<i64>End timestamp in milliseconds.
This field is **optional.
Implementations§
Source§impl KlinesParams
impl KlinesParams
Sourcepub fn builder(
symbol: String,
interval: KlinesIntervalEnum,
) -> KlinesParamsBuilder
pub fn builder( symbol: String, interval: KlinesIntervalEnum, ) -> KlinesParamsBuilder
Create a builder for [klines].
Required parameters:
symbol— Trading pair symbol, e.g.ALPHA_175USDT(use token ID from Token List).interval— Kline interval.
Trait Implementations§
Source§impl Clone for KlinesParams
impl Clone for KlinesParams
Source§fn clone(&self) -> KlinesParams
fn clone(&self) -> KlinesParams
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 moreSource§impl Debug for KlinesParams
impl Debug for KlinesParams
Source§impl<'de> Deserialize<'de> for KlinesParams
impl<'de> Deserialize<'de> for KlinesParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KlinesParams
impl RefUnwindSafe for KlinesParams
impl Send for KlinesParams
impl Sync for KlinesParams
impl Unpin for KlinesParams
impl UnsafeUnpin for KlinesParams
impl UnwindSafe for KlinesParams
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