Skip to content

A industrial high-performance High Frequency Trading System by C++11, support CTP, Femas and so on. 基于C++11开发的量化交易平台,可实现CTP、飞马等平台的高频交易策略。

Notifications You must be signed in to change notification settings

fengglfengdi/thunder-trader

 
 

Repository files navigation

Thunder Trader

Documentation Status Documentation Status License

Features


Based on C++ 11, this project implements a quantitative trading system supporting high-frequency transactions. The system supports the following characteristics:

  • Flexibility

    • Using plug-ins to support different quotations and trading interfaces, such as CTP, Femas, Dfitc and TWS in China.
    • Support multiple accounts and multiple strategies. Each strategy can use multiple quotes, and can place orders for multiple accounts.
  • Easy to use

    • Support both linux and windows
    • C/S architecture
    • Client with graphical interface
    • The real-time tracing of the variables in the policy can be realized by "probe" and the display mode of the data can be customized.
    • Supporting the "intervention" of the strategy, by predefining some intervention actions, to achieve a fixed operation in the transaction process.
  • Efficiency

    • C++ implementation
    • Asynchronous event driven

User's guide

Welcome to my personal blog. There are User's guide.

Documentation

Welcome to my personal blog. There are detailed introductory manuals.

Quit start

This preject is tested in following environment:

  • gcc 7.2 or 4.8.4
  • boost 1.58.0
  • centos7

Usage:

>cmake .
>make
>make install
>export LD_LIBRARY_PATH=/path/to/gcc/lib/:/path/to/boost/lib:$LD_LIBRARY_PATH ; /path/to/thunder-trader /path/to/thunder-trader.conf 1

Then will see output like: 
Run.SystemNumber=1 [20181021T062516.546639]

If you use a customed gcc path, you should specify the /path/to/gcc/lib/, such as /opt/gcc7/lib64.

As the same, if you use a customed boost path, you should specify the /path/to/boost/lib, such as /opt/boost/lib.

The usage of thunder-trader is ./thunder-trader config_file.conf system_number, .e.g. ./thunder-trader thunder-trader.conf 1, the system_number is a customed int that indicate the process by onlyself. You should make sure that different thunder-trader process has different system_number.

The reason of use a system_number will be illustrated in the document.

Then you can use the Monitor to connect the thunder-trader.

Update log

  • 2018.11.20 : Support gcc 4.8.4
  • 2018.12.04 : Update arbitrage_strategy & simple_strategy

Screenshots

Software running screenshots:
The Monitor(Coming soon):








The strategy research platform(Coming soon):


Ask Questions

You are welcome to submit questions and bug reports as Github Issues. or mail to solopointer@qq.com

Particular attention: If you encounter an

^C*** Error in `./thunder-trader': double free or corruption (!prev): 0x0000000001e32bb0 ***

like error when run thunder-trader, don't worry. This is a bug in CTPLibrary that usually appears when the process exit, but does not affect the normal operation of the program.Turn off the ctp option, or tell me how to avoid this error if you knows please.

If you like this project, give me a star ^_^

Copyright and License

Thunder-trader is provided under the Apache-2.0 license.

About

A industrial high-performance High Frequency Trading System by C++11, support CTP, Femas and so on. 基于C++11开发的量化交易平台,可实现CTP、飞马等平台的高频交易策略。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 55.0%
  • C 44.6%
  • CMake 0.4%