deriv_api_schema/ticks_batch_item.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/ticks_batch/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#[derive(Debug, Clone, Serialize, Deserialize)]
15#[serde(rename_all = "snake_case")]
16pub struct TicksBatchItem {
17 /// Market ask at the epoch\n
18 // Correct serde attribute construction - Use helper
19
20 pub ask: String,
21 /// Market bid at the epoch\n
22 // Correct serde attribute construction - Use helper
23
24 pub bid: String,
25 /// Daily percentage change\n
26 // Correct serde attribute construction - Use helper
27
28 pub change: String,
29 /// Epoch time of the tick\n
30 // Correct serde attribute construction - Use helper
31
32 pub epoch: i64,
33 /// Market value at the epoch\n
34 // Correct serde attribute construction - Use helper
35
36 pub quote: String,
37 /// Symbol\n
38 // Correct serde attribute construction - Use helper
39
40 pub symbol: String,
41}
42