Skip to content

Vious/Naive_Trader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Naive_Trader

This a C++ based naive trading tools. Currently only support CTP APIs, and will keep updating to support other trading platforms.

ToDo list

  • 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

Folder Structure

Naive_trader
├── api/
├── docs/
└── src
    ├── apiadapter/
        └── market/
        └── src/
├── config/
├── example/
├── include/
├── loger/
├── utils/

Some notes

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.

Acknowledgements

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.

About

A C++ based naive trading platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published