deriv_api_schema/ticks_batch_request.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/ticks_batch/send.json
4
5// Use direct crate names for imports
6use serde::{Deserialize, Serialize};
7use serde_json::Value;
8
9
10
11// Import required types from the *same* crate
12use crate::market::Market;
13
14/// Initiate a continuous stream of spot price updates for a group symbols.
15#[derive(Debug, Clone, Serialize, Deserialize)]
16#[serde(rename_all = "snake_case")]
17pub struct TicksBatchRequest {
18 /// The short market name.\n
19 // Correct serde attribute construction - Use helper
20
21 pub market: Market,
22 /// [Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field.\n
23 // Correct serde attribute construction - Use helper
24 #[serde(skip_serializing_if = "Option::is_none")]
25 pub passthrough: Option<Value>,
26 /// [Optional] Used to map request to response.\n
27 // Correct serde attribute construction - Use helper
28 #[serde(skip_serializing_if = "Option::is_none")]
29 pub req_id: Option<i64>,
30 /// [Optional] If set to 1, will send updates in batches by market.\n
31 // Correct serde attribute construction - Use helper
32 #[serde(skip_serializing_if = "Option::is_none")]
33 pub subscribe: Option<i64>,
34 /// Must be `1`\n
35 // Correct serde attribute construction - Use helper
36
37 pub ticks_batch: i64,
38}
39