1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Generated automatically by schema_generator.rs - DO NOT EDIT.
// Source: ./deriv-api-docs/config/v3/ticks/receive.json
// Use direct crate names for imports within generated files
use serde::{Deserialize, Serialize};
use chrono::{DateTime, Utc};
// Import shared types from the *same* crate
// It's a struct
/// Tick by tick list of streamed data
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub struct Tick {
/// Market ask at the epoch\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub ask: Option<DateTime<Utc>>,
/// Market bid at the epoch\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub bid: Option<DateTime<Utc>>,
/// Epoch time of the tick\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub epoch: Option<i64>,
/// A per-connection unique identifier. Can be passed to the `forget` API call to unsubscribe.\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Indicates the number of decimal points that the returned amounts must be displayed with\n
// Correct serde attribute construction - Use helper
pub pip_size: String,
/// Market value at the epoch\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub quote: Option<DateTime<Utc>>,
/// Symbol\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub symbol: Option<String>,
}