Struct datamaxi::models::CandleOptions
source · pub struct CandleOptions {
pub market: Option<String>,
pub interval: Option<String>,
pub page: Option<i32>,
pub limit: Option<i32>,
pub from: Option<String>,
pub to: Option<String>,
pub sort: Option<String>,
}
Expand description
Optional parameters for a candle request.
Fields§
§market: Option<String>
The market type (e.g., spot, futures).
interval: Option<String>
The interval for the candle data (e.g., 1m, 1h, 1d).
page: Option<i32>
The page number for the candle data.
limit: Option<i32>
The maximum number of items per page in the response.
from: Option<String>
The starting date & time for the candle data.
to: Option<String>
The ending date & time for the candle data.
sort: Option<String>
The sorting order for the candle data (e.g., “asc” or “desc”).
Implementations§
source§impl CandleOptions
impl CandleOptions
Provides a builder pattern for setting optional parameters for a candle request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CandleOptions
impl RefUnwindSafe for CandleOptions
impl Send for CandleOptions
impl Sync for CandleOptions
impl Unpin for CandleOptions
impl UnwindSafe for CandleOptions
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