Comments (2)
Hi @kivo360
Thanks for the suggestion here.
I had a quick play with stubgen
, and ran this fairly vanilla command:
stubgen -p nautilus_trader
Processed 430 modules
Generated files under out/nautilus_trader/
It then resulted in this on the pre-commit:
Found 350 errors in 152 files (checked 676 source files)
So it looks promising, but appears to need some tweaking:
- We only need to generate
.pyi
files for the C extension module dynamic libs (I think?) - It should be integrated with the
build.py
build and happen automatically, like the waycbindgen
is setup with the Rust core
If the above can be done and results in no mypy errors, and working type stubs, then we'd be happy to incorporate it into the codebase - as its recognized this would be very helpful for users and contributors.
Otherwise, I have to invest my own time into other areas, as a more ultimate goal is to port to Rust with pyo3, and we already have a growing .pyi
file for that.
from nautilus_trader.
I'd say keep focusing on porting to Rust. I generated some typings as well and ran into the same issue.
I don't believe the problem can be fully solved using cython builds. I think it'll be a much better time if the code kept progressing. I'm currently trying simple strategies, exploring data management techniques (to handle more complex backtests)
If I have the bandwidth to contribute to the project in the future I will.
from nautilus_trader.
Related Issues (20)
- Addition of Sequence Number in QuoteTick HOT 2
- Polygon.io integration HOT 1
- Sandbox: Error on applying OrderFilled due to incorrect venu_order_id HOT 5
- Sandbox: fills are applied multiple times to the same limit order HOT 10
- Timer is panicking when calling `set_time_alert_ns` HOT 9
- Sandbox: fills are generated by internally aggregated bars instead of quote/ticks HOT 4
- Get radis error in trimming stream HOT 8
- Incorrect import for OrderBookImbalance example strategy HOT 1
- Low level backtest in documentation needs some adjustments so it works straight away HOT 2
- Cannot pull out account information in SANDBOX mode HOT 4
- Improve error message when no tick scheme for instrument HOT 3
- Multi-currency support for SANDBOX mode HOT 1
- Orders accepted and not filled in SANDBOX HOT 10
- Latency modeling for sandbox/real-time HOT 1
- Highlevel api tutorial document bugs HOT 1
- Invalid size precision for fill 5 when instrument size precision is 6, on 1.194.0 HOT 4
- Documentation - clang is a "From Source" installation dependency HOT 2
- Backtest in streaming mode doesn't work HOT 6
- How to handle orderbook snapshots HOT 12
- Binance missing candles HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nautilus_trader.