pub struct PriceHistoryRequest {
pub market_id: String,
pub outcome: Option<String>,
pub token_id: Option<String>,
pub condition_id: Option<String>,
pub interval: PriceHistoryInterval,
pub start_ts: Option<i64>,
pub end_ts: Option<i64>,
}Expand description
Request for fetching price history / candlestick data.
Fields§
§market_id: String§outcome: Option<String>§token_id: Option<String>§condition_id: Option<String>Condition ID for OI enrichment (Polymarket).
interval: PriceHistoryInterval§start_ts: Option<i64>Unix seconds
end_ts: Option<i64>Unix seconds
Trait Implementations§
Source§impl Clone for PriceHistoryRequest
impl Clone for PriceHistoryRequest
Source§fn clone(&self) -> PriceHistoryRequest
fn clone(&self) -> PriceHistoryRequest
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 Debug for PriceHistoryRequest
impl Debug for PriceHistoryRequest
Source§impl<'de> Deserialize<'de> for PriceHistoryRequest
impl<'de> Deserialize<'de> for PriceHistoryRequest
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 PriceHistoryRequest
impl RefUnwindSafe for PriceHistoryRequest
impl Send for PriceHistoryRequest
impl Sync for PriceHistoryRequest
impl Unpin for PriceHistoryRequest
impl UnsafeUnpin for PriceHistoryRequest
impl UnwindSafe for PriceHistoryRequest
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