pub struct Execution {
pub id: String,
pub topic: String,
pub creation_time: u64,
pub data: Vec<ExecutionData>,
}Expand description
Represents an execution event in Bybit’s perpetual futures market.
This struct is used in WebSocket streams to provide details about trade executions, such as price, quantity, and fees.
§Bybit API Reference
The Bybit API (https://bybit-exchange.github.io/docs/v5/websocket/private/execution) provides execution data via WebSocket.
§Perpetual Futures Context
Executions represent filled orders or partial fills. Bots use this data to track trade performance, calculate costs, and update position states.
Fields§
§id: StringThe unique identifier for the execution event.
Used to track specific executions. Bots can use this to correlate events with internal trade records.
topic: StringThe WebSocket topic (e.g., “execution”).
Identifies the execution data stream. Bots use this to filter relevant messages.
creation_time: u64The timestamp when the event was created (in milliseconds).
Indicates when the execution occurred. Bots use this for time-based analysis.
data: Vec<ExecutionData>The execution data for the event.
Contains details about the executed trades. Bots process this to update trade logs and positions.