@openmarket/market-data-proto 12.67.0 → 12.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,253 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Timestamp } from "./timestamp/timestamp_pb.js";
3
+ import type { AssetClass, OptionDteBucket, OptionPrintAggScope } from "./enums_pb.js";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file option_print_aggregation.proto.
7
+ */
8
+ export declare const file_option_print_aggregation: GenFile;
9
+ /**
10
+ * OPTION_PRINT totals over one bucket, for one contract or for one flow
11
+ * scope across contracts. The 1m bucket is folded from the prints; coarser
12
+ * buckets are folded from the 1m bucket, so every total is a sum that
13
+ * coarser buckets add up, and a VWAP is a ratio of two of them. Field names
14
+ * are the contract's column names.
15
+ *
16
+ * scope says which rows a point totals:
17
+ * - CONTRACT (unset): one contract. The series is the contract's, as on
18
+ * OPTION_PRINT: exchange OPRA, category OPTION, the compact OSI symbol,
19
+ * the underlying as coin and the option type.
20
+ * - COIN: one underlying's prints (the series' coin), per option type,
21
+ * dte_bucket and moneyness.
22
+ * - MARKET: every underlying's prints, per option type, dte_bucket,
23
+ * moneyness and issue_type.
24
+ * - VENUE: one venue's prints, per option type and issue_type.
25
+ * - SPOT_PROFILE: one underlying's prints per day, per option type and
26
+ * spot_bin.
27
+ * A scope row carries its option type in the series, as a contract row
28
+ * does, and only the dimensions its scope names. Side is never a
29
+ * dimension: every row splits its totals by side in the *_ask, *_bid,
30
+ * *_mid and *_none columns. strike, expiry_ms, sum_px_size, last_price,
31
+ * iv_last and underlying_last describe one contract and are left zero or
32
+ * unset on scope rows. The values each flow scope carries are listed on
33
+ * OptionPrintAggScope.
34
+ *
35
+ * A sum over no print is unset rather than zero: vol_bid is unset when no
36
+ * print of the bucket traded at the bid. The model sums (share and dollar
37
+ * delta, vega, sum_spot_size) cover only the priced prints, which n_priced
38
+ * counts.
39
+ *
40
+ * @generated from message OptionPrintAggregation
41
+ */
42
+ export type OptionPrintAggregation = Message<"OptionPrintAggregation"> & {
43
+ /**
44
+ * @generated from field: double strike = 1;
45
+ */
46
+ strike: number;
47
+ /**
48
+ * The contract's last trading instant, in milliseconds since the Unix
49
+ * epoch.
50
+ *
51
+ * @generated from field: int64 expiry_ms = 2;
52
+ */
53
+ expiryMs: bigint;
54
+ /**
55
+ * Contracts by OptionPrint.side.
56
+ *
57
+ * @generated from field: optional double vol_ask = 3;
58
+ */
59
+ volAsk?: number;
60
+ /**
61
+ * @generated from field: optional double vol_bid = 4;
62
+ */
63
+ volBid?: number;
64
+ /**
65
+ * @generated from field: optional double vol_mid = 5;
66
+ */
67
+ volMid?: number;
68
+ /**
69
+ * @generated from field: optional double vol_none = 6;
70
+ */
71
+ volNone?: number;
72
+ /**
73
+ * Contracts that traded above the ask and below the bid
74
+ * (OptionPrint.outside_quote +1 and -1).
75
+ *
76
+ * @generated from field: optional double vol_above_ask = 7;
77
+ */
78
+ volAboveAsk?: number;
79
+ /**
80
+ * @generated from field: optional double vol_below_bid = 8;
81
+ */
82
+ volBelowBid?: number;
83
+ /**
84
+ * OptionPrint.premium_usd by side and outside the quote.
85
+ *
86
+ * @generated from field: optional double prem_ask = 9;
87
+ */
88
+ premAsk?: number;
89
+ /**
90
+ * @generated from field: optional double prem_bid = 10;
91
+ */
92
+ premBid?: number;
93
+ /**
94
+ * @generated from field: optional double prem_mid = 11;
95
+ */
96
+ premMid?: number;
97
+ /**
98
+ * @generated from field: optional double prem_none = 12;
99
+ */
100
+ premNone?: number;
101
+ /**
102
+ * @generated from field: optional double prem_above_ask = 13;
103
+ */
104
+ premAboveAsk?: number;
105
+ /**
106
+ * @generated from field: optional double prem_below_bid = 14;
107
+ */
108
+ premBelowBid?: number;
109
+ /**
110
+ * Prints in the bucket.
111
+ *
112
+ * @generated from field: int64 prints = 15;
113
+ */
114
+ prints: bigint;
115
+ /**
116
+ * sum(price * size) and sum(size): sum_px_size / sum_size is the bucket's
117
+ * VWAP, per share.
118
+ *
119
+ * @generated from field: double sum_px_size = 16;
120
+ */
121
+ sumPxSize: number;
122
+ /**
123
+ * @generated from field: double sum_size = 17;
124
+ */
125
+ sumSize: number;
126
+ /**
127
+ * sum(size * delta * multiplier) over each side's priced prints: the delta
128
+ * traded, in shares of the underlying.
129
+ *
130
+ * @generated from field: optional double share_delta_ask = 18;
131
+ */
132
+ shareDeltaAsk?: number;
133
+ /**
134
+ * @generated from field: optional double share_delta_bid = 19;
135
+ */
136
+ shareDeltaBid?: number;
137
+ /**
138
+ * @generated from field: optional double share_delta_mid = 20;
139
+ */
140
+ shareDeltaMid?: number;
141
+ /**
142
+ * @generated from field: optional double share_delta_none = 21;
143
+ */
144
+ shareDeltaNone?: number;
145
+ /**
146
+ * sum(size * delta * multiplier * underlying_price): the delta traded, in
147
+ * USD.
148
+ *
149
+ * @generated from field: optional double dollar_delta_ask = 22;
150
+ */
151
+ dollarDeltaAsk?: number;
152
+ /**
153
+ * @generated from field: optional double dollar_delta_bid = 23;
154
+ */
155
+ dollarDeltaBid?: number;
156
+ /**
157
+ * sum(size * vega * multiplier).
158
+ *
159
+ * @generated from field: optional double vega_ask = 24;
160
+ */
161
+ vegaAsk?: number;
162
+ /**
163
+ * @generated from field: optional double vega_bid = 25;
164
+ */
165
+ vegaBid?: number;
166
+ /**
167
+ * Priced prints (OptionPrint.priced): the coverage of every model sum.
168
+ *
169
+ * @generated from field: int64 n_priced = 26;
170
+ */
171
+ nPriced: bigint;
172
+ /**
173
+ * sum(underlying_price * size) over the priced prints, and the contracts
174
+ * of those prints: sum_spot_size / size_priced is the underlying's price
175
+ * weighted by the bucket's priced volume.
176
+ *
177
+ * @generated from field: optional double sum_spot_size = 27;
178
+ */
179
+ sumSpotSize?: number;
180
+ /**
181
+ * @generated from field: optional double size_priced = 28;
182
+ */
183
+ sizePriced?: number;
184
+ /**
185
+ * The last iv and underlying_price among the bucket's prints that had
186
+ * them, and the last print's price.
187
+ *
188
+ * @generated from field: optional double iv_last = 29;
189
+ */
190
+ ivLast?: number;
191
+ /**
192
+ * @generated from field: optional double underlying_last = 30;
193
+ */
194
+ underlyingLast?: number;
195
+ /**
196
+ * @generated from field: double last_price = 31;
197
+ */
198
+ lastPrice: number;
199
+ /**
200
+ * Start of the bucket.
201
+ *
202
+ * @generated from field: Timestamp timestamp = 32;
203
+ */
204
+ timestamp?: Timestamp;
205
+ /**
206
+ * The rows this point totals; unset is CONTRACT.
207
+ *
208
+ * @generated from field: optional OptionPrintAggScope scope = 33;
209
+ */
210
+ scope?: OptionPrintAggScope;
211
+ /**
212
+ * The dimensions of the flow scopes, set when the point's scope groups by
213
+ * them: days to expiry at the print (OptionPrint.dte_days) in buckets,
214
+ * OptionPrint.moneyness, OptionPrint.issue_type, OptionPrint.venue (the
215
+ * Databento publisher id of the venue that printed) and OptionPrint.spot_bin.
216
+ *
217
+ * @generated from field: optional OptionDteBucket dte_bucket = 34;
218
+ */
219
+ dteBucket?: OptionDteBucket;
220
+ /**
221
+ * @generated from field: optional int32 moneyness = 35;
222
+ */
223
+ moneyness?: number;
224
+ /**
225
+ * @generated from field: optional AssetClass issue_type = 36;
226
+ */
227
+ issueType?: AssetClass;
228
+ /**
229
+ * @generated from field: optional int32 venue = 37;
230
+ */
231
+ venue?: number;
232
+ /**
233
+ * @generated from field: optional double spot_bin = 38;
234
+ */
235
+ spotBin?: number;
236
+ /**
237
+ * OptionPrint.premium_capped_usd at the ask and at the bid, so a net
238
+ * premium can be taken without one print dominating it.
239
+ *
240
+ * @generated from field: optional double prem_capped_ask = 39;
241
+ */
242
+ premCappedAsk?: number;
243
+ /**
244
+ * @generated from field: optional double prem_capped_bid = 40;
245
+ */
246
+ premCappedBid?: number;
247
+ };
248
+ /**
249
+ * Describes the message OptionPrintAggregation.
250
+ * Use `create(OptionPrintAggregationSchema)` to create a new message.
251
+ */
252
+ export declare const OptionPrintAggregationSchema: GenMessage<OptionPrintAggregation>;
253
+ //# sourceMappingURL=option_print_aggregation_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"option_print_aggregation_pb.d.ts","sourceRoot":"","sources":["../src/gen/option_print_aggregation_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEtF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAE,OACooE,CAAC;AAEjrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,CAAC,GAAG;IACvE;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IA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EjB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,UAAU,CAAC,sBAAsB,CAC7B,CAAC"}
@@ -0,0 +1,15 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=.js"
2
+ // @generated from file option_print_aggregation.proto (syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_timestamp_timestamp } from "./timestamp/timestamp_pb.js";
6
+ import { file_enums } from "./enums_pb.js";
7
+ /**
8
+ * Describes the file option_print_aggregation.proto.
9
+ */
10
+ export const file_option_print_aggregation = /*@__PURE__*/ fileDesc("Ch5vcHRpb25fcHJpbnRfYWdncmVnYXRpb24ucHJvdG8ipAwKFk9wdGlvblByaW50QWdncmVnYXRpb24SDgoGc3RyaWtlGAEgASgBEhEKCWV4cGlyeV9tcxgCIAEoAxIUCgd2b2xfYXNrGAMgASgBSACIAQESFAoHdm9sX2JpZBgEIAEoAUgBiAEBEhQKB3ZvbF9taWQYBSABKAFIAogBARIVCgh2b2xfbm9uZRgGIAEoAUgDiAEBEhoKDXZvbF9hYm92ZV9hc2sYByABKAFIBIgBARIaCg12b2xfYmVsb3dfYmlkGAggASgBSAWIAQESFQoIcHJlbV9hc2sYCSABKAFIBogBARIVCghwcmVtX2JpZBgKIAEoAUgHiAEBEhUKCHByZW1fbWlkGAsgASgBSAiIAQESFgoJcHJlbV9ub25lGAwgASgBSAmIAQESGwoOcHJlbV9hYm92ZV9hc2sYDSABKAFICogBARIbCg5wcmVtX2JlbG93X2JpZBgOIAEoAUgLiAEBEg4KBnByaW50cxgPIAEoAxITCgtzdW1fcHhfc2l6ZRgQIAEoARIQCghzdW1fc2l6ZRgRIAEoARIcCg9zaGFyZV9kZWx0YV9hc2sYEiABKAFIDIgB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FyZV9kZWx0YV9hc2tCEgoQX3NoYXJlX2RlbHRhX2JpZEISChBfc2hhcmVfZGVsdGFfbWlkQhMKEV9zaGFyZV9kZWx0YV9ub25lQhMKEV9kb2xsYXJfZGVsdGFfYXNrQhMKEV9kb2xsYXJfZGVsdGFfYmlkQgsKCV92ZWdhX2Fza0ILCglfdmVnYV9iaWRCEAoOX3N1bV9zcG90X3NpemVCDgoMX3NpemVfcHJpY2VkQgoKCF9pdl9sYXN0QhIKEF91bmRlcmx5aW5nX2xhc3RCCAoGX3Njb3BlQg0KC19kdGVfYnVja2V0QgwKCl9tb25leW5lc3NCDQoLX2lzc3VlX3R5cGVCCAoGX3ZlbnVlQgsKCV9zcG90X2JpbkISChBfcHJlbV9jYXBwZWRfYXNrQhIKEF9wcmVtX2NhcHBlZF9iaWRCCloIdHlwZXMvcGJiBnByb3RvMw", [file_timestamp_timestamp, file_enums]);
11
+ /**
12
+ * Describes the message OptionPrintAggregation.
13
+ * Use `create(OptionPrintAggregationSchema)` to create a new message.
14
+ */
15
+ export const OptionPrintAggregationSchema = /*@__PURE__*/ messageDesc(file_option_print_aggregation, 0);
@@ -0,0 +1,235 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Timestamp } from "./timestamp/timestamp_pb.js";
3
+ import type { AssetClass, OptionPrintSide } from "./enums_pb.js";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file option_print.proto.
7
+ */
8
+ export declare const file_option_print: GenFile;
9
+ /**
10
+ * One OPRA print: the trade of a tcbbo record with the national best bid and
11
+ * offer in force just before it, emitted by streamd beside the TRADE row of
12
+ * the same record. Field names are the contract's column names.
13
+ *
14
+ * The series is the contract: exchange OPRA, category OPTION, the compact
15
+ * OSI symbol, the underlying as coin and the option type (CALL or PUT).
16
+ *
17
+ * Two ingest replicas emit every print. The fields from id to record_flags
18
+ * depend only on the record and the contract's listing, so both replicas
19
+ * emit them identically. The fields from priced down depend on each
20
+ * replica's own pricing state (the underlying's last trade, the
21
+ * chain-implied forward), so the two copies can differ there; a value a
22
+ * replica could not compute is unset, never NaN. The deduplicator keeps the
23
+ * first copy of an id, so a stored print carries one replica's model values.
24
+ *
25
+ * @generated from message OptionPrint
26
+ */
27
+ export type OptionPrint = Message<"OptionPrint"> & {
28
+ /**
29
+ * The print's identity:
30
+ * "<publisher>-<ts_event ns>-<symbol>-<price>-<size>-<k>", with price in
31
+ * DBN fixed point (1e-9 USD), size in contracts and k the number of
32
+ * earlier prints with the same publisher, ts_event, symbol, price and size
33
+ * the producer saw. Two prints differ in id unless they are identical
34
+ * fills at one nanosecond, which k numbers. Known limit: k restarts with
35
+ * the producer's session, and tcbbo does not replay on a reconnect, so a
36
+ * replica that starts or reconnects inside a group of identical fills can
37
+ * number them from 0 again, as TRADE ids can.
38
+ *
39
+ * @generated from field: string id = 1;
40
+ */
41
+ id: string;
42
+ /**
43
+ * Premium per share, in USD.
44
+ *
45
+ * @generated from field: double price = 2;
46
+ */
47
+ price: number;
48
+ /**
49
+ * Contracts.
50
+ *
51
+ * @generated from field: double size = 3;
52
+ */
53
+ size: number;
54
+ /**
55
+ * Shares one contract delivers, from the contract's listing (100 for a
56
+ * standard root).
57
+ *
58
+ * @generated from field: double multiplier = 4;
59
+ */
60
+ multiplier: number;
61
+ /**
62
+ * price * size * multiplier: the dollars that changed hands.
63
+ *
64
+ * @generated from field: double premium_usd = 5;
65
+ */
66
+ premiumUsd: number;
67
+ /**
68
+ * premium_usd capped at 2,000,000, so one print cannot dominate a sum.
69
+ *
70
+ * @generated from field: double premium_capped_usd = 6;
71
+ */
72
+ premiumCappedUsd: number;
73
+ /**
74
+ * @generated from field: double strike = 7;
75
+ */
76
+ strike: number;
77
+ /**
78
+ * The contract's last trading instant (16:00 New York, 09:30 for an
79
+ * AM-settled root), in milliseconds since the Unix epoch.
80
+ *
81
+ * @generated from field: int64 expiry_ms = 8;
82
+ */
83
+ expiryMs: bigint;
84
+ /**
85
+ * The expiry's New York date minus the print's New York date: 0 on
86
+ * expiration day.
87
+ *
88
+ * @generated from field: int32 dte_days = 9;
89
+ */
90
+ dteDays: number;
91
+ /**
92
+ * The national best bid and offer per share before the print. Unset when
93
+ * that side of the book was empty.
94
+ *
95
+ * @generated from field: optional double nbbo_bid = 10;
96
+ */
97
+ nbboBid?: number;
98
+ /**
99
+ * @generated from field: optional double nbbo_ask = 11;
100
+ */
101
+ nbboAsk?: number;
102
+ /**
103
+ * Contracts at the best bid and offer; zero when the side was empty.
104
+ *
105
+ * @generated from field: double nbbo_bid_size = 12;
106
+ */
107
+ nbboBidSize: number;
108
+ /**
109
+ * @generated from field: double nbbo_ask_size = 13;
110
+ */
111
+ nbboAskSize: number;
112
+ /**
113
+ * Databento publisher id of the venue that printed.
114
+ *
115
+ * @generated from field: int32 venue = 14;
116
+ */
117
+ venue: number;
118
+ /**
119
+ * Databento publisher ids of the venues setting the best bid and offer;
120
+ * zero when the side was empty.
121
+ *
122
+ * @generated from field: int32 bid_venue = 15;
123
+ */
124
+ bidVenue: number;
125
+ /**
126
+ * @generated from field: int32 ask_venue = 16;
127
+ */
128
+ askVenue: number;
129
+ /**
130
+ * Where price sits against the midpoint of nbbo_bid and nbbo_ask.
131
+ *
132
+ * @generated from field: OptionPrintSide side = 17;
133
+ */
134
+ side: OptionPrintSide;
135
+ /**
136
+ * +1 when price is above nbbo_ask, -1 below nbbo_bid, 0 between them.
137
+ * Unset when side is NONE: the quote had nothing to compare with.
138
+ *
139
+ * @generated from field: optional int32 outside_quote = 18;
140
+ */
141
+ outsideQuote?: number;
142
+ /**
143
+ * The Databento record flags byte.
144
+ *
145
+ * @generated from field: int32 record_flags = 19;
146
+ */
147
+ recordFlags: number;
148
+ /**
149
+ * Whether the replica priced the contract at this print, that is emitted
150
+ * the OPTION_SUMMARY row of the same record. When false, every model
151
+ * value below is unset.
152
+ *
153
+ * @generated from field: bool priced = 20;
154
+ */
155
+ priced: boolean;
156
+ /**
157
+ * Whether delta, gamma and vega are set, apart from iv: deep in the money
158
+ * the quote sits at intrinsic, no volatility reaches it and iv is unset,
159
+ * while the intrinsic greeks (delta 1 or -1, gamma and vega 0) are set.
160
+ *
161
+ * @generated from field: bool greeks_present = 21;
162
+ */
163
+ greeksPresent: boolean;
164
+ /**
165
+ * Implied volatility at the quote midpoint (the trade price when a side
166
+ * is empty), in percent: OPTION_SUMMARY's mark_iv.
167
+ *
168
+ * @generated from field: optional double iv = 22;
169
+ */
170
+ iv?: number;
171
+ /**
172
+ * Per share of the underlying, from the same pricing as OPTION_SUMMARY:
173
+ * Black-Scholes on a stock's last trade, Black-76 on an index root's
174
+ * forward.
175
+ *
176
+ * @generated from field: optional double delta = 23;
177
+ */
178
+ delta?: number;
179
+ /**
180
+ * @generated from field: optional double gamma = 24;
181
+ */
182
+ gamma?: number;
183
+ /**
184
+ * @generated from field: optional double vega = 25;
185
+ */
186
+ vega?: number;
187
+ /**
188
+ * The price the contract was priced on: the stock's last trade, or for an
189
+ * index root the forward its expiry's chain implies (then
190
+ * underlying_is_forward is true).
191
+ *
192
+ * @generated from field: optional double underlying_price = 26;
193
+ */
194
+ underlyingPrice?: number;
195
+ /**
196
+ * @generated from field: optional bool underlying_is_forward = 27;
197
+ */
198
+ underlyingIsForward?: boolean;
199
+ /**
200
+ * +1 out of the money, -1 in the money, against underlying_price. A strike
201
+ * within 0.5% of underlying_price counts as out of the money.
202
+ *
203
+ * @generated from field: optional int32 moneyness = 28;
204
+ */
205
+ moneyness?: number;
206
+ /**
207
+ * The underlying's asset class: STOCK, ETF or INDEX. Unset until
208
+ * reference data names it; INDEX for the roots priced on a chain-implied
209
+ * forward.
210
+ *
211
+ * @generated from field: optional AssetClass issue_type = 29;
212
+ */
213
+ issueType?: AssetClass;
214
+ /**
215
+ * underlying_price rounded down to three significant figures:
216
+ * floor(underlying_price / step) * step with
217
+ * step = 10^(floor(log10(underlying_price)) - 2). Unset when
218
+ * underlying_price is unset or a forward: it bins cash spot only.
219
+ *
220
+ * @generated from field: optional double spot_bin = 30;
221
+ */
222
+ spotBin?: number;
223
+ /**
224
+ * ts_event of the print.
225
+ *
226
+ * @generated from field: Timestamp timestamp = 31;
227
+ */
228
+ timestamp?: Timestamp;
229
+ };
230
+ /**
231
+ * Describes the message OptionPrint.
232
+ * Use `create(OptionPrintSchema)` to create a new message.
233
+ */
234
+ export declare const OptionPrintSchema: GenMessage<OptionPrint>;
235
+ //# sourceMappingURL=option_print_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"option_print_pb.d.ts","sourceRoot":"","sources":["../src/gen/option_print_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,OACytC,CAAC;AAE1vC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,GAAG;IACjD;;;;;;;;;;;;OAYG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,OAAO,CA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file option_print.proto (syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_timestamp_timestamp } from "./timestamp/timestamp_pb.js";
6
+ import { file_enums } from "./enums_pb.js";
7
+ /**
8
+ * Describes the file option_print.proto.
9
+ */
10
+ export const file_option_print = /*@__PURE__*/ fileDesc("ChJvcHRpb25fcHJpbnQucHJvdG8i5wYKC09wdGlvblByaW50EgoKAmlkGAEgASgJEg0KBXByaWNlGAIgASgBEgwKBHNpemUYAyABKAESEgoKbXVsdGlwbGllchgEIAEoARITCgtwcmVtaXVtX3VzZBgFIAEoARIaChJwcmVtaXVtX2NhcHBlZF91c2QYBiABKAESDgoGc3RyaWtlGAcgASgBEhEKCWV4cGlyeV9tcxgIIAEoAxIQCghkdGVfZGF5cxgJIAEoBRIVCghuYmJvX2JpZBgKIAEoAUgAiAEBEhUKCG5iYm9fYXNrGAsgASgBSAGIAQESFQoNbmJib19iaWRfc2l6ZRgMIAEoARIVCg1uYmJvX2Fza19zaXplGA0gASgBEg0KBXZlbnVlGA4gASgFEhEKCWJpZF92ZW51ZRgPIAEoBRIRCglhc2tfdmVudWUYECABKAUSHgoEc2lkZRgRIAEoDjIQLk9wdGlvblByaW50U2lkZRIaCg1vdXRzaWRlX3F1b3RlGBIgASgFSAKIAQESFAoMcmVjb3JkX2ZsYWdzGBMgASgFEg4KBnByaWNlZBgUIAEoCBIWCg5ncmVla3NfcHJlc2VudBgVIAEoCBIPCgJpdhgWIAEoAUgDiAEBEhIKBWRlbHRhGBcgASgBSASIAQESEgoFZ2FtbWEYGCABKAFIBYgBARIRCgR2ZWdhGBkgASgBSAaIAQESHQoQdW5kZXJseWluZ19wcmljZRgaIAEoAUgHiAEBEiIKFXVuZGVybHlpbmdfaXNfZm9yd2FyZBgbIAEoCEgIiAEBEhYKCW1vbmV5bmVzcxgcIAEoBUgJiAEBEiQKCmlzc3VlX3R5cGUYHSABKA4yCy5Bc3NldENsYXNzSAqIAQESFQoIc3BvdF9iaW4YHiABKAFIC4gBARIdCgl0aW1lc3RhbXAYHyABKAsyCi5UaW1lc3RhbXBCCwoJX25iYm9fYmlkQgsKCV9uYmJvX2Fza0IQCg5fb3V0c2lkZV9xdW90ZUIFCgNfaXZCCAoGX2RlbHRhQggKBl9nYW1tYUIHCgVfdmVnYUITChFfdW5kZXJseWluZ19wcmljZUIYChZfdW5kZXJseWluZ19pc19mb3J3YXJkQgwKCl9tb25leW5lc3NCDQoLX2lzc3VlX3R5cGVCCwoJX3Nwb3RfYmluQgpaCHR5cGVzL3BiYgZwcm90bzM", [file_timestamp_timestamp, file_enums]);
11
+ /**
12
+ * Describes the message OptionPrint.
13
+ * Use `create(OptionPrintSchema)` to create a new message.
14
+ */
15
+ export const OptionPrintSchema = /*@__PURE__*/ messageDesc(file_option_print, 0);
@@ -0,0 +1,91 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Timestamp } from "./timestamp/timestamp_pb.js";
3
+ import type { Exchange, OptionForwardSource } from "./enums_pb.js";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file option_surface.proto.
7
+ */
8
+ export declare const file_option_surface: GenFile;
9
+ /**
10
+ * One underlying's implied volatility at one expiry, sampled every five
11
+ * minutes on its option venue (OPRA first, then the crypto option venues).
12
+ * Field names are the contract's column names and the tags follow its
13
+ * order; every value is optional. Volatilities are in percent. Later fields
14
+ * are only ever added.
15
+ *
16
+ * @generated from message OptionSurface
17
+ */
18
+ export type OptionSurface = Message<"OptionSurface"> & {
19
+ /**
20
+ * @generated from field: optional Exchange exchange = 1;
21
+ */
22
+ exchange?: Exchange;
23
+ /**
24
+ * @generated from field: optional string coin = 2;
25
+ */
26
+ coin?: string;
27
+ /**
28
+ * The expiry's last trading instant, in milliseconds since the Unix epoch.
29
+ *
30
+ * @generated from field: optional int64 expiry_ms = 3;
31
+ */
32
+ expiryMs?: bigint;
33
+ /**
34
+ * The sample's time: the start of its five-minute bucket.
35
+ *
36
+ * @generated from field: Timestamp time = 4;
37
+ */
38
+ time?: Timestamp;
39
+ /**
40
+ * Calendar days from time to the expiry instant, fractional.
41
+ *
42
+ * @generated from field: optional double dte_days = 5;
43
+ */
44
+ dteDays?: number;
45
+ /**
46
+ * The expiry's forward, and where it came from.
47
+ *
48
+ * @generated from field: optional double forward = 6;
49
+ */
50
+ forward?: number;
51
+ /**
52
+ * @generated from field: optional OptionForwardSource forward_source = 7;
53
+ */
54
+ forwardSource?: OptionForwardSource;
55
+ /**
56
+ * Mean of the at-the-money call and put implied volatility.
57
+ *
58
+ * @generated from field: optional double atm_iv = 8;
59
+ */
60
+ atmIv?: number;
61
+ /**
62
+ * Implied volatility at 25 and 10 delta, of the puts and of the calls.
63
+ *
64
+ * @generated from field: optional double iv_put_25d = 9;
65
+ */
66
+ ivPut25d?: number;
67
+ /**
68
+ * @generated from field: optional double iv_call_25d = 10;
69
+ */
70
+ ivCall25d?: number;
71
+ /**
72
+ * @generated from field: optional double iv_put_10d = 11;
73
+ */
74
+ ivPut10d?: number;
75
+ /**
76
+ * @generated from field: optional double iv_call_10d = 12;
77
+ */
78
+ ivCall10d?: number;
79
+ /**
80
+ * Quotes the sample was fitted on.
81
+ *
82
+ * @generated from field: optional int64 n_quotes = 13;
83
+ */
84
+ nQuotes?: bigint;
85
+ };
86
+ /**
87
+ * Describes the message OptionSurface.
88
+ * Use `create(OptionSurfaceSchema)` to create a new message.
89
+ */
90
+ export declare const OptionSurfaceSchema: GenMessage<OptionSurface>;
91
+ //# sourceMappingURL=option_surface_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"option_surface_pb.d.ts","sourceRoot":"","sources":["../src/gen/option_surface_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAE7D,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,OAC8wB,CAAC;AAEjzB;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,GAAG;IACrD;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;IAEpC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,aAAa,CACrB,CAAC"}
@@ -0,0 +1,15 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=.js"
2
+ // @generated from file option_surface.proto (syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_timestamp_timestamp } from "./timestamp/timestamp_pb.js";
6
+ import { file_enums } from "./enums_pb.js";
7
+ /**
8
+ * Describes the file option_surface.proto.
9
+ */
10
+ export const file_option_surface = /*@__PURE__*/ fileDesc("ChRvcHRpb25fc3VyZmFjZS5wcm90byKOBAoNT3B0aW9uU3VyZmFjZRIgCghleGNoYW5nZRgBIAEoDjIJLkV4Y2hhbmdlSACIAQESEQoEY29pbhgCIAEoCUgBiAEBEhYKCWV4cGlyeV9tcxgDIAEoA0gCiAEBEhgKBHRpbWUYBCABKAsyCi5UaW1lc3RhbXASFQoIZHRlX2RheXMYBSABKAFIA4gBARIUCgdmb3J3YXJkGAYgASgBSASIAQESMQoOZm9yd2FyZF9zb3VyY2UYByABKA4yFC5PcHRpb25Gb3J3YXJkU291cmNlSAWIAQESEwoGYXRtX2l2GAggASgBSAaIAQESFwoKaXZfcHV0XzI1ZBgJIAEoAUgHiAEBEhgKC2l2X2NhbGxfMjVkGAogASgBSAiIAQESFwoKaXZfcHV0XzEwZBgLIAEoAUgJiAEBEhgKC2l2X2NhbGxfMTBkGAwgASgBSAqIAQESFQoIbl9xdW90ZXMYDSABKANIC4gBAUILCglfZXhjaGFuZ2VCBwoFX2NvaW5CDAoKX2V4cGlyeV9tc0ILCglfZHRlX2RheXNCCgoIX2ZvcndhcmRCEQoPX2ZvcndhcmRfc291cmNlQgkKB19hdG1faXZCDQoLX2l2X3B1dF8yNWRCDgoMX2l2X2NhbGxfMjVkQg0KC19pdl9wdXRfMTBkQg4KDF9pdl9jYWxsXzEwZEILCglfbl9xdW90ZXNCCloIdHlwZXMvcGJiBnByb3RvMw", [file_timestamp_timestamp, file_enums]);
11
+ /**
12
+ * Describes the message OptionSurface.
13
+ * Use `create(OptionSurfaceSchema)` to create a new message.
14
+ */
15
+ export const OptionSurfaceSchema = /*@__PURE__*/ messageDesc(file_option_surface, 0);