bybit/models/fast_execution.rs
1use crate::prelude::*;
2
3/// Represents a fast execution event in Bybit's perpetual futures market.
4///
5/// This struct is a lightweight version of the execution event, providing essential trade details for high-frequency updates.
6///
7/// # Bybit API Reference
8/// Part of the execution WebSocket stream (https://bybit-exchange.github.io/docs/v5/websocket/private/execution).
9///
10/// # Perpetual Futures Context
11/// Fast executions are designed for low-latency trading bots that need minimal data to process trades quickly.
12#[derive(Serialize, Deserialize, Debug, Clone)]
13#[serde(rename_all = "camelCase")]
14pub struct FastExecution {
15 /// The WebSocket topic (e.g., "execution").
16 ///
17 /// Identifies the fast execution data stream. Bots use this to filter relevant messages.
18 pub topic: String,
19
20 /// The timestamp when the event was created (in milliseconds).
21 ///
22 /// Indicates when the execution occurred. Bots use this for time-based analysis.
23 pub creation_time: u64,
24
25 /// The fast execution data for the event.
26 ///
27 /// Contains essential trade details. Bots process this for rapid trade updates.
28 pub data: Vec<FastExecData>,
29}