Skip to content

Commit b71fee0

Browse files
authored
Release 1.155.0
See release notes.
2 parents ff0244a + e1ac261 commit b71fee0

File tree

10 files changed

+351
-81
lines changed

10 files changed

+351
-81
lines changed

.docker/nautilus_trader.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ENV PYTHONUNBUFFERED=1 \
44
PIP_NO_CACHE_DIR=off \
55
PIP_DISABLE_PIP_VERSION_CHECK=on \
66
PIP_DEFAULT_TIMEOUT=100 \
7-
POETRY_VERSION=1.1.13 \
7+
POETRY_VERSION=1.2.0 \
88
POETRY_HOME="/opt/poetry" \
99
POETRY_VIRTUALENVS_CREATE=false \
1010
POETRY_NO_INTERACTION=1 \
@@ -34,7 +34,7 @@ RUN (cd nautilus_core && cargo build --release)
3434

3535
COPY nautilus_trader ./nautilus_trader
3636
COPY README.md ./
37-
RUN poetry install --no-dev
37+
RUN poetry install --only=main
3838
RUN poetry build -f wheel
3939
RUN python -m pip install ./dist/*whl --force
4040
RUN find /usr/local/lib/python3.10/site-packages -name "*.pyc" -exec rm -f {} \;

RELEASES.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# NautilusTrader 1.155.0 Beta
2+
3+
Released on September 15th 2022 (UTC).
4+
5+
This is an early release to address some parsing bugs in the FTX adapter.
6+
7+
### Breaking Changes
8+
None
9+
10+
### Enhancements
11+
None
12+
13+
### Fixes
14+
- Fixed parsing bug for FTX futures
15+
- Fixed parsing bug for FTX `Bar`
16+
17+
---
18+
119
# NautilusTrader 1.154.0 Beta
220

321
Released on September 14th 2022 (UTC).

build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def _build_extensions() -> List[Extension]:
118118

119119
extra_compile_args = []
120120
if BUILD_MODE == "release" and platform.system() != "Windows":
121-
extra_compile_args.append("-O3")
121+
extra_compile_args.append("-O2") # Temporary to tweak total build size
122122
extra_compile_args.append("-pipe")
123123

124124
extra_link_args = RUST_LIBS

docs/conf.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
version = "latest"
2626
release = "version"
2727

28-
2928
# -- General configuration ---------------------------------------------------
3029
extensions = [
3130
"myst_parser",
@@ -43,12 +42,10 @@
4342
templates_path = ["_templates"]
4443
html_js_files = ["script.js"]
4544

46-
4745
comments_config = {"hypothesis": False, "utterances": False}
4846
exclude_patterns = ["**.ipynb_checkpoints", ".DS_Store", "Thumbs.db", "_build"]
4947
source_suffix = [".rst", ".md"]
5048

51-
5249
# -- Options for HTML output -------------------------------------------------
5350
html_theme = "sphinx_material"
5451
html_logo = "_images/nt-white.png"
@@ -115,13 +112,12 @@
115112
"version_dropdown": True,
116113
"version_json": "_static/version.json",
117114
"version_info": {
118-
"1.154.0 (develop)": "https://docs.nautilustrader.io",
119-
"1.153.0 (latest)": "https://docs.nautilustrader.io/latest",
115+
"1.155.0 (develop)": "https://docs.nautilustrader.io",
116+
"1.154.0 (latest)": "https://docs.nautilustrader.io/latest",
120117
},
121118
"table_classes": ["plain"],
122119
}
123120

124-
125121
myst_enable_extensions = [
126122
"colon_fence",
127123
"dollarmath",

nautilus_core/Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nautilus_trader/adapters/ftx/parsing/common.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,13 @@ def parse_instrument(
251251
info=data,
252252
)
253253
else:
254-
expiry_str = data["name"].rsplit("-", maxsplit=1)[1]
255-
expiry_date = datetime.datetime.strptime(
256-
f"{expiry_str}{datetime.date.today().year}", "%m%d%Y"
257-
).date()
254+
try:
255+
expiry_str = data["name"].rsplit("-", maxsplit=1)[1]
256+
expiry_date = datetime.datetime.strptime(
257+
f"{expiry_str}{datetime.date.today().year}", "%m%d%Y"
258+
).date()
259+
except Exception:
260+
raise ValueError(f"Unable to parse expiry for Future: {data['name']}")
258261
return CryptoFuture(
259262
instrument_id=instrument_id,
260263
native_symbol=native_symbol,

nautilus_trader/adapters/ftx/parsing/http.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def parse_bars_http(
135135
low=Price(row["low"], instrument.price_precision),
136136
close=Price(row["close"], instrument.price_precision),
137137
volume=Quantity(row["volume"], instrument.size_precision),
138-
check=True,
139138
ts_event=ts_event,
140139
ts_init=max(ts_init, ts_event),
141140
)

0 commit comments

Comments
 (0)