pub struct KlinesParams {
pub symbol: String,
pub interval: String,
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: Stringe.g., “ALPHA_175USDT” – use token ID from Token List
This field is **required.
interval: Stringe.g., “1h” – supported intervals: 1s, 15s, 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M
This field is **required.
limit: Option<i64>number of results to return (default 500, max 1000)
This field is **optional.
start_time: Option<i64>start timestamp (milliseconds)
This field is **optional.
end_time: Option<i64>end timestamp (milliseconds)
This field is **optional.
Implementations§
Source§impl KlinesParams
impl KlinesParams
Sourcepub fn builder(symbol: String, interval: String) -> KlinesParamsBuilder
pub fn builder(symbol: String, interval: String) -> KlinesParamsBuilder
Create a builder for [klines].
Required parameters:
symbol— e.g., "ALPHA_175USDT" – use token ID from Token Listinterval— e.g., "1h" – supported intervals: 1s, 15s, 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M
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 moreAuto 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