bybit/models/options_instrument.rs
1use crate::prelude::*;
2
3/// Represents an options instrument.
4///
5/// Contains details about an options contract. Not relevant for perpetual futures but included for completeness.
6#[derive(Serialize, Deserialize, Clone, Debug)]
7#[serde(rename_all = "camelCase")]
8pub struct OptionsInstrument {
9 /// The trading pair symbol (e.g., "BTC-30DEC22-50000-C").
10 ///
11 /// Identifies the options contract. Not relevant for perpetuals.
12 pub symbol: String,
13
14 /// The trading status (e.g., "Trading").
15 ///
16 /// Indicates if the options contract is tradable. Not relevant for perpetuals.
17 pub status: String,
18
19 /// The base coin (e.g., "BTC").
20 ///
21 /// The underlying asset of the options contract. Not relevant for perpetuals.
22 pub base_coin: String,
23
24 /// The quote coin (e.g., "USDT").
25 ///
26 /// The currency used to quote the options contract. Not relevant for perpetuals.
27 pub quote_coin: String,
28
29 /// The settlement coin (e.g., "USDT").
30 ///
31 /// The currency used for settlement. Not relevant for perpetuals.
32 pub settle_coin: String,
33
34 /// The type of option (e.g., "Call", "Put").
35 ///
36 /// Specifies whether the option is a call or put. Not relevant for perpetuals.
37 pub option_type: String,
38
39 /// The launch time of the options contract (Unix timestamp in milliseconds).
40 ///
41 /// Indicates when the contract was listed. Not relevant for perpetuals.
42 #[serde(with = "string_to_u64")]
43 pub launch_time: u64,
44
45 /// The delivery time of the options contract (Unix timestamp in milliseconds).
46 ///
47 /// Indicates the expiry date of the option. Not relevant for perpetuals.
48 #[serde(with = "string_to_u64")]
49 pub delivery_time: u64,
50
51 /// The delivery fee rate for the options contract.
52 ///
53 /// Specifies the fee for settlement. Not relevant for perpetuals.
54 pub delivery_fee_rate: String,
55
56 /// The price constraints.
57 ///
58 /// Defines price constraints for options trading. Not relevant for perpetuals.
59 pub price_filter: PriceFilter,
60
61 /// The lot size constraints.
62 ///
63 /// Defines order quantity constraints for options trading. Not relevant for perpetuals.
64 pub lot_size_filter: LotSizeFilter,
65}