@@ -107,6 +107,10 @@ The package is tested against Python 3.7 - 3.9 on both Linux and MacOS.
107
107
We recommend users setup a virtual environment to isolate the dependencies, and run the platform
108
108
with the latest stable version of Python.
109
109
110
+ ` pyenv ` is the recommended tool for handling Python installations and virtual environments.
111
+
112
+ > https://github.com/pyenv/pyenv
113
+
110
114
Installation for Unix-like systems can be achieved through _ one_ of the following options;
111
115
112
116
#### From PyPI
@@ -143,9 +147,17 @@ Installation from source requires Cython to compile the Python C extensions.
143
147
cd nautilus_trader
144
148
pip install .
145
149
150
+ ## Examples
151
+
152
+ Examples of both backtest and live trading launch scripts are available in the ` examples ` directory.
153
+ These can run through PyCharm, or by running:
154
+
155
+ python <name_of_script>.py
156
+
146
157
## Data Types
147
158
148
- The following data types can be requested, and also subscribed to as streams.
159
+ The following market data types can be requested historically, and also subscribed to as live streams
160
+ when available from an exchange/broker, and implemented in an integrations adapter.
149
161
150
162
- ` Instrument `
151
163
- ` OrderBook ` (L1, L2 and L3 if available. Streaming or interval snapshots)
@@ -229,6 +241,11 @@ exchanges.
229
241
For development we recommend using the PyCharm _ Professional_ edition IDE, as it interprets Cython
230
242
syntax. Alternatively, you could use Visual Studio Code with a Cython extension.
231
243
244
+ ` pyenv ` is the recommended tool for handling Python installations and virtual environments.
245
+
246
+ > https://github.com/pyenv/pyenv
247
+
248
+
232
249
` poetry ` is the preferred tool for handling all Python package and dev dependencies.
233
250
234
251
> https://python-poetry.org/
@@ -242,22 +259,22 @@ at commit.
242
259
243
260
The following steps are for Unix-like systems, and only need to be completed once.
244
261
245
- 1 . Install the ` pre-commit ` package by running:
246
-
247
- pip install pre-commit
248
-
249
- 2 . Install the Cython package by running:
262
+ 1 . Install the Cython package by running:
250
263
251
264
pip install -U Cython==3.0a6
252
265
253
- 3 . Install ` poetry ` by running:
266
+ 2 . Install ` poetry ` by running:
254
267
255
268
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
256
269
257
- 4 . Then install all Python package dependencies, and compile the C extensions by running:
270
+ 3 . Then install all Python package dependencies, and compile the C extensions by running:
258
271
259
272
poetry install
260
273
274
+ 4 . Install the ` pre-commit ` package by running:
275
+
276
+ pip install pre-commit
277
+
261
278
5 . Setup the ` pre-commit ` hook which will then run automatically at commit by running:
262
279
263
280
pre-commit run --all-files
0 commit comments