Skip to content

Commit e107d0d

Browse files
authored
VER: Release 0.13.0
2 parents e62d02e + b9d827a commit e107d0d

File tree

14 files changed

+198
-131
lines changed

14 files changed

+198
-131
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Changelog
22

3+
## 0.13.0 - 2023-09-21
4+
### Enhancements
5+
- Added `pretty_px` option for `BatchSubmitJob`, which formats prices to the correct
6+
scale using the fixed-precision scalar 1e-9 (available for CSV and JSON text
7+
encodings)
8+
- Added `pretty_ts` option for `BatchSubmitJob`, which formats timestamps as ISO 8601
9+
strings (available for CSV and JSON text encodings)
10+
- Added `map_symbols` option to `BatchSubmitJob`, which appends appends the raw symbol
11+
to every record (available for CSV and JSON text encodings) reducing the need to look
12+
at the `symbology.json` file
13+
- Added `split_symbols` option for `BatchSubmitJob`, which will split files by raw symbol
14+
- Added `encoding` option to `BatchSubmitJob` to allow requesting non-DBN encoded
15+
data through the client
16+
- Added `map_symbols`, `pretty_px`, and `pretty_ts` to `BatchJob` response
17+
- Added `ARCX.PILLAR.ARCX` publisher
18+
- Added `ClosePrice` and `NetChange` `StatType`s used in the `OPRA.PILLAR` dataset
19+
20+
### Breaking changes
21+
- Remove `default_value` parameter from `Historical::SymbologyResolve`
22+
23+
## 0.12.1 - 2023-08-25
24+
### Bug fixes
25+
- Fixed typo in `BATY.PITCH.BATY` publisher
26+
327
## 0.12.0 - 2023-08-24
428

529
##### Enhancements

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.14)
44
# Project details
55
#
66

7-
project("databento" VERSION 0.12.0 LANGUAGES CXX)
7+
project("databento" VERSION 0.13.0 LANGUAGES CXX)
88
string(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UPPERCASE)
99

1010
#

include/databento/batch.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ struct BatchJob {
2727
std::uint64_t limit;
2828
Encoding encoding;
2929
Compression compression;
30+
bool pretty_px;
31+
bool pretty_ts;
32+
bool map_symbols;
3033
SplitDuration split_duration;
3134
std::uint64_t split_size;
3235
bool split_symbols;

include/databento/enums.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ enum StatType : std::uint16_t {
233233
// The volume-weighted average price (VWAP) for a fixing period. `price` will
234234
// be set.
235235
FixingPrice = 10,
236+
// The last trade price during a trading session. `price` will be set.
237+
ClosePrice = 11,
238+
// The change in price from the close price of the previous trading session to
239+
// the most recent trading session. `price` will be set.
240+
NetChange = 12,
236241
};
237242
} // namespace stat_type
238243
using stat_type::StatType;

include/databento/historical.hpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,19 @@ class Historical {
4949
const std::vector<std::string>& symbols,
5050
Schema schema,
5151
const DateTimeRange<UnixNanos>& datetime_range,
52-
Compression compression, SplitDuration split_duration,
52+
Encoding encoding, Compression compression,
53+
bool pretty_px, bool pretty_ts, bool map_symbols,
54+
bool split_symbols, SplitDuration split_duration,
5355
std::uint64_t split_size, Packaging packaging,
5456
Delivery delivery, SType stype_in, SType stype_out,
5557
std::uint64_t limit);
5658
BatchJob BatchSubmitJob(const std::string& dataset,
5759
const std::vector<std::string>& symbols,
5860
Schema schema,
5961
const DateTimeRange<std::string>& datetime_range,
60-
Compression compression, SplitDuration split_duration,
62+
Encoding encoding, Compression compression,
63+
bool pretty_px, bool pretty_ts, bool map_symbols,
64+
bool split_symbols, SplitDuration split_duration,
6165
std::uint64_t split_size, Packaging packaging,
6266
Delivery delivery, SType stype_in, SType stype_out,
6367
std::uint64_t limit);
@@ -153,11 +157,6 @@ class Historical {
153157
const std::vector<std::string>& symbols,
154158
SType stype_in, SType stype_out,
155159
const DateRange& date_range);
156-
SymbologyResolution SymbologyResolve(const std::string& dataset,
157-
const std::vector<std::string>& symbols,
158-
SType stype_in, SType stype_out,
159-
const DateRange& date_range,
160-
const std::string& default_value);
161160

162161
/*
163162
* Timeseries API

include/databento/publishers.hpp

Lines changed: 88 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -7,127 +7,127 @@
77
namespace databento {
88
// A trading execution venue.
99
enum class Venue : std::uint16_t {
10-
// CME GLOBEX
10+
// CME Globex
1111
Glbx = 1,
12-
// NASDAQ
12+
// Nasdaq - All Markets
1313
Xnas = 2,
14-
// NASDAQ OMX BX
14+
// Nasdaq OMX BX
1515
Xbos = 3,
16-
// NASDAQ OMX PSX
16+
// Nasdaq OMX PSX
1717
Xpsx = 4,
18-
// CBOE BZX U.S. EQUITIES EXCHANGE
18+
// Cboe BZX U.S. Equities Exchange
1919
Bats = 5,
20-
// CBOE BYX U.S. EQUITIES EXCHANGE
20+
// Cboe BYX U.S. Equities Exchange
2121
Baty = 6,
22-
// CBOE EDGA U.S. EQUITIES EXCHANGE
22+
// Cboe EDGA U.S. Equities Exchange
2323
Edga = 7,
24-
// CBOE EDGX U.S. EQUITIES EXCHANGE
24+
// Cboe EDGX U.S. Equities Exchange
2525
Edgx = 8,
26-
// New York Stock Exchange
26+
// New York Stock Exchange, Inc.
2727
Xnys = 9,
28-
// NYSE NATIONAL, INC.
28+
// NYSE National, Inc.
2929
Xcis = 10,
30-
// NYSE AMERICAN
30+
// NYSE MKT LLC
3131
Xase = 11,
32-
// NYSE ARCA
32+
// NYSE Arca
3333
Arcx = 12,
34-
// NYSE CHICAGO, INC.
34+
// NYSE Chicago, Inc.
3535
Xchi = 13,
36-
// INVESTORS EXCHANGE
36+
// Investors Exchange
3737
Iexg = 14,
38-
// FINRA/NASDAQ TRF CARTERET
38+
// FINRA/Nasdaq TRF Carteret
3939
Finn = 15,
40-
// FINRA/NASDAQ TRF CHICAGO
40+
// FINRA/Nasdaq TRF Chicago
4141
Finc = 16,
4242
// FINRA/NYSE TRF
4343
Finy = 17,
44-
// MEMX LLC EQUITIES
44+
// MEMX LLC Equities
4545
Memx = 18,
46-
// MIAX PEARL EQUITIES
46+
// MIAX Pearl Equities
4747
Eprl = 19,
48-
// NYSE AMERICAN OPTIONS
48+
// NYSE American Options
4949
Amxo = 20,
50-
// BOX OPTIONS EXCHANGE
50+
// BOX Options Exchange
5151
Xbox = 21,
52-
// CBOE OPTIONS EXCHANGE
52+
// Cboe Options Exchange
5353
Xcbo = 22,
54-
// MIAX EMERALD
54+
// MIAX Emerald
5555
Emld = 23,
5656
// Cboe EDGX Options Exchange
5757
Edgo = 24,
58-
// NASDAQ GEMX
58+
// ISE Gemini Exchange
5959
Gmni = 25,
60-
// NASDAQ ISE
60+
// International Securities Exchange, LLC
6161
Xisx = 26,
62-
// NASDAQ MRX
62+
// ISE Mercury, LLC
6363
Mcry = 27,
64-
// MIAX INTERNATIONAL SECURITIES
64+
// Miami International Securities Exchange
6565
Xmio = 28,
66-
// NYSE ARCA OPTIONS
66+
// NYSE Arca Options
6767
Arco = 29,
68-
// OPRA
68+
// Options Price Reporting Authority
6969
Opra = 30,
70-
// MIAX PEARL
70+
// MIAX Pearl
7171
Mprl = 31,
72-
// NASDAQ OPTIONS MARKET
72+
// Nasdaq Options Market
7373
Xndq = 32,
74-
// NASDAQ BX OPTIONS
74+
// Nasdaq OMX BX Options
7575
Xbxo = 33,
76-
// CBOE C2 OPTIONS EXCHANGE
76+
// Cboe C2 Options Exchange
7777
C2Ox = 34,
78-
// NASDAQ PHLX
78+
// Nasdaq OMX PHLX
7979
Xphl = 35,
80-
// CBOE BZX Options Exchange
80+
// Cboe BZX Options Exchange
8181
Bato = 36,
82-
// MEMX Options Exchange
82+
// MEMX LLC Options
8383
Mxop = 37,
8484
};
8585

8686
// A source of data.
8787
enum class Dataset : std::uint16_t {
8888
// CME MDP 3.0 Market Data
8989
GlbxMdp3 = 1,
90-
// Nasdaq XNAS TotalView-ITCH
90+
// Nasdaq TotalView-ITCH
9191
XnasItch = 2,
92-
// Nasdaq XBOS TotalView-ITCH
92+
// Nasdaq BX TotalView-ITCH
9393
XbosItch = 3,
94-
// Nasdaq XPSX TotalView-ITCH
94+
// Nasdaq PSX TotalView-ITCH
9595
XpsxItch = 4,
96-
// CBOE BZX
96+
// Cboe BZX Depth Pitch
9797
BatsPitch = 5,
98-
// CBOE BYX
98+
// Cboe BYX Depth Pitch
9999
BatyPitch = 6,
100-
// CBOE EDGA
100+
// Cboe EDGA Depth Pitch
101101
EdgaPitch = 7,
102-
// CBOE EDGX
102+
// Cboe EDGX Depth Pitch
103103
EdgxPitch = 8,
104-
// NYSE
104+
// NYSE Integrated
105105
XnysPillar = 9,
106-
// NYSE National
106+
// NYSE National Integrated
107107
XcisPillar = 10,
108-
// NYSE American
108+
// NYSE American Integrated
109109
XasePillar = 11,
110-
// NYSE Chicago
110+
// NYSE Chicago Integrated
111111
XchiPillar = 12,
112112
// NYSE National BBO
113113
XcisBbo = 13,
114-
// NYSE National TRADES
114+
// NYSE National Trades
115115
XcisTrades = 14,
116116
// MEMX Memoir Depth
117117
MemxMemoir = 15,
118118
// MIAX Pearl Depth
119119
EprlDom = 16,
120-
// Finra/Nasdaq TRF
120+
// FINRA/Nasdaq TRF
121121
FinnNls = 17,
122-
// Finra/NYSE TRF
122+
// FINRA/NYSE TRF
123123
FinyTrades = 18,
124-
// OPRA Binary Recipient
124+
// OPRA Binary
125125
OpraPillar = 19,
126126
// Databento Equities Basic
127127
DbeqBasic = 20,
128-
// NYSE Arca
128+
// NYSE Arca Integrated
129129
ArcxPillar = 21,
130-
// Investors Exchange TOPS
130+
// IEX TOPS
131131
IexgTops = 22,
132132
};
133133

@@ -137,25 +137,25 @@ enum class Publisher : std::uint16_t {
137137
GlbxMdp3Glbx = 1,
138138
// Nasdaq TotalView ITCH
139139
XnasItchXnas = 2,
140-
// Nasdaq XBOS TotalView ITCH
140+
// Nasdaq BX TotalView ITCH
141141
XbosItchXbos = 3,
142-
// Nasdaq XPSX TotalView ITCH
142+
// Nasdaq PSX TotalView ITCH
143143
XpsxItchXpsx = 4,
144-
// CBOE BZX
144+
// Cboe BZX Depth Pitch
145145
BatsPitchBats = 5,
146-
// CBOE BYX
147-
BatyPitchBats = 6,
148-
// CBOE EDGA
146+
// Cboe BYX Depth Pitch
147+
BatyPitchBaty = 6,
148+
// Cboe EDGA Depth Pitch
149149
EdgaPitchEdga = 7,
150-
// CBOE EDGX
150+
// Cboe EDGX Depth Pitch
151151
EdgxPitchEdgx = 8,
152-
// NYSE
152+
// NYSE Integrated
153153
XnysPillarXnys = 9,
154-
// NYSE National
154+
// NYSE National Integrated
155155
XcisPillarXcis = 10,
156-
// NYSE American
156+
// NYSE American Integrated
157157
XasePillarXase = 11,
158-
// NYSE Chicago
158+
// NYSE Chicago Integrated
159159
XchiPillarXchi = 12,
160160
// NYSE National BBO
161161
XcisBboXcis = 13,
@@ -165,58 +165,60 @@ enum class Publisher : std::uint16_t {
165165
MemxMemoirMemx = 15,
166166
// MIAX Pearl Depth
167167
EprlDomEprl = 16,
168-
// FINRA/NASDAQ TRF CARTERET
168+
// FINRA/Nasdaq TRF Carteret
169169
FinnNlsFinn = 17,
170-
// FINRA/NASDAQ TRF CHICAGO
170+
// FINRA/Nasdaq TRF Chicago
171171
FinnNlsFinc = 18,
172172
// FINRA/NYSE TRF
173173
FinyTradesFiny = 19,
174-
// OPRA - NYSE AMERICAN OPTIONS
174+
// OPRA - NYSE American
175175
OpraPillarAmxo = 20,
176-
// OPRA - BOX OPTIONS EXCHANGE
176+
// OPRA - Boston Options Exchange
177177
OpraPillarXbox = 21,
178-
// OPRA - CBOE OPTIONS EXCHANGE
178+
// OPRA - Cboe Options Exchange
179179
OpraPillarXcbo = 22,
180-
// OPRA - MIAX EMERALD
180+
// OPRA - MIAX Emerald
181181
OpraPillarEmld = 23,
182182
// OPRA - Cboe EDGX Options Exchange
183183
OpraPillarEdgo = 24,
184-
// OPRA - NASDAQ GEMX
184+
// OPRA - Nasdaq GEMX
185185
OpraPillarGmni = 25,
186-
// OPRA - NASDAQ ISE
186+
// OPRA - Nasdaq ISE
187187
OpraPillarXisx = 26,
188-
// OPRA - NASDAQ MRX
188+
// OPRA - Nasdaq MRX
189189
OpraPillarMcry = 27,
190-
// OPRA - MIAX INTERNATIONAL SECURITIES
190+
// OPRA - Miami International Securities
191191
OpraPillarXmio = 28,
192-
// OPRA - NYSE ARCA OPTIONS
192+
// OPRA - NYSE Arca
193193
OpraPillarArco = 29,
194-
// OPRA - OPRA
194+
// OPRA - Options Price Reporting Authority
195195
OpraPillarOpra = 30,
196-
// OPRA - MIAX PEARL
196+
// OPRA - MIAX Pearl
197197
OpraPillarMprl = 31,
198-
// OPRA - NASDAQ OPTIONS MARKET
198+
// OPRA - Nasdaq Options Market
199199
OpraPillarXndq = 32,
200-
// OPRA - NASDAQ BX OPTIONS
200+
// OPRA - Nasdaq BX Options
201201
OpraPillarXbxo = 33,
202-
// OPRA - CBOE C2 OPTIONS EXCHANGE
202+
// OPRA - Cboe C2 Options Exchange
203203
OpraPillarC2Ox = 34,
204-
// OPRA - NASDAQ PHLX
204+
// OPRA - Nasdaq PHLX
205205
OpraPillarXphl = 35,
206-
// OPRA - CBOE BZX Options Exchange
206+
// OPRA - Cboe BZX Options
207207
OpraPillarBato = 36,
208-
// OPRA - MEMX OPTIONS EXCHANGE
208+
// OPRA - MEMX Options Exchange
209209
OpraPillarMxop = 37,
210-
// Investors Exchange TOPS
210+
// IEX TOPS
211211
IexgTopsIexg = 38,
212-
// DBEQ Basic - Nyse Chicago
212+
// DBEQ Basic - NYSE Chicago
213213
DbeqBasicXchi = 39,
214-
// DBEQ Basic - Nyse National
214+
// DBEQ Basic - NYSE National
215215
DbeqBasicXcis = 40,
216-
// DBEQ Basic - Investors Exchange
216+
// DBEQ Basic - IEX
217217
DbeqBasicIexg = 41,
218218
// DBEQ Basic - MIAX Pearl
219219
DbeqBasicEprl = 42,
220+
// NYSE Arca Integrated
221+
ArcxPillarArcx = 43,
220222
};
221223

222224
// Get a Publisher's Venue.

0 commit comments

Comments
 (0)