bybit/models/delivery_price.rs
1use crate::prelude::*;
2
3/// Represents a delivery price record for a futures contract.
4/// Details the settlement price and time, primarily for non-perpetual futures.
5#[derive(Serialize, Deserialize, Clone, Debug)]
6#[serde(rename_all = "camelCase")]
7pub struct DeliveryPrice {
8 /// The trading symbol (e.g., "BTCUSDT").
9 /// Specifies the market for the delivery price. Bots use this to align with trading pairs.
10 pub symbol: String,
11
12 /// The settlement price at delivery (e.g., "50000").
13 /// The price at which the contract settles. For perpetual futures, this is less relevant
14 /// but may be used for benchmarking or strategy backtesting.
15 pub delivery_price: String,
16
17 /// Timestamp of the delivery (Unix epoch in milliseconds).
18 /// Marks when the contract was settled. Bots use this for time-series analysis.
19 #[serde(with = "string_to_u64")]
20 pub delivery_time: u64,
21}