This a C++ based naive trading tools. Currently only support CTP APIs, and will keep updating to support other trading platforms.
- Improve the current code repo (On going, there will always be bugs that I haven't noticed.)
- Finish Logging logics into trade and market apis (On going...)
- Implement simulator and runtime engine
- Learn and implement a statistical arbitrage strategy
Naive_trader
├── api/
├── docs/
└── src
├── apiadapter/
└── market/
└── src/
├── config/
├── example/
├── include/
├── loger/
├── utils/
Currently, this repo only supports CTP APIs (will include other platform in the future). The code are developed with vscode remote, some of the configurations are not provided here.
Here are some hints that might be useful for coding and debuging c++ projects with vscode. When you need to add external .so share libs, modify task.json, add path to "args"
"args": [
// ....
"-L/path_to_your_lib",
"-lyour_lib_name",
],
Note that after "-l", "lib" should not appear.
I learned and benefited a lot from Zou's share of the ligntening trading tools, and learned lock/wait free synchronization algorithms and data structures from 1024cores. The use of ringbuffer are from Jan-ringbuffer, and log packages are from Karthik-NanoLog. Thanks to their efforts and contributions.