deriv_api_schema/
history.rs

1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/ticks_history/receive.json
4
5// Use direct crate names for imports within generated files
6use serde::{Deserialize, Serialize}; 
7
8
9
10
11// Import shared types from the *same* crate
12
13// It's a struct
14/// Historic tick data for a given symbol. Note: this will always return the latest possible set of ticks with accordance to the parameters specified.
15#[derive(Debug, Clone, Serialize, Deserialize)]
16#[serde(rename_all = "snake_case")]
17pub struct History {
18    /// An array containing list of tick values for the corresponding epoch values in `times` array.\n
19    // Correct serde attribute construction - Use helper
20    #[serde(skip_serializing_if = "Option::is_none")] 
21    pub prices: Option<String>,
22    /// An array containing list of epoch values for the corresponding tick values in `prices` array.\n
23    // Correct serde attribute construction - Use helper
24    #[serde(skip_serializing_if = "Option::is_none")] 
25    pub times: Option<String>,
26}
27