Skip to content

Latest commit

 

History

History
executable file
·
537 lines (313 loc) · 22.9 KB

README_ENG.md

File metadata and controls

executable file
·
537 lines (313 loc) · 22.9 KB

QUANTAXIS Quantifying Financial Strategy Framework

Click here to download QUANTAXIS2019 Introductory pdf [quantaxis 2019] (http://whl.yutiansut.com/QUANTAXIS%202019.pdf)


Quantitative Financial FrameWork

Local one-stop solution from data crawling - cleaning storage - analysis backtesting - visualization - trading complex

logo

pypidownloads pypidownloads Backers on Open Collective ![Sponsors on Open Collective](https://opencollective.com/QUANTAXIS/sponsors /badge.svg)

Github workers GitHub stars GitHub forks

[Click on Star and Watch in the top right corner to track project progress! Click on Fork to create your own QUANTAXIS!]

Congratulations to QUANTAXIS for inclusion [GITEE Most Valuable Open Source Project GVP] (https://gitee.com/gvp)

gvp

main_1 presentbyyutiansut

version build [! [Codefresh build status] (https://g.codefresh.io/api/badges/pipeline/quantaxis/QUANTAXIS%2FQUANTAXIS%2FQUANTAXIS?branch=master&key=eyJhbGciOiJIUzI1NiJ9.NWEzMGMwNzE4NTk5YzAwMDAxNWEzOGQ3.INF0oVNGLK79Ql3f10Vs9_CJfwsfq1FYjCbbOKJzBe8&type=cf-1)] (https: //g.codefresh.io/pipelines/QUANTAXIS/builds?repoOwner=QUANTAXIS&repoName=QUANTAXIS&serviceName=QUANTAXIS%2FQUANTAXIS&filter=trigger:buildBuild;branch:master;pipeline:5c3ade3fc67fe4e3328c9da1QUANTAXIS) BCH compliance [Codacy Badge](https://www.codacy.com/app/yutiansut/QUANTAXIS?utm_source=github.com&utm_medium=referral&utm_content =yutiansut/QUANTAXIS&utm_campaign=badger) StackShare QAS python Npm author license [FOSSA Status](https://app.fossa.io/projects /git%2Bgithub.com%2FQUANTAXIS%2FQUANTAXIS?ref=badge_shield) [Waffle.io - Issues in progress](http://waffle.io/yutiansut/ QUANTAXIS) Reviewed by Hound [](http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email =VSwgITw0OyYgIRUjPCV7JCR7Njo4)

Contributors

This project exists thanks to all the people who contribute. [Contribute]. < /a>

Welcome to group discussion: 563280067 [group link] (https://jq.qq.com/?_wv=1027&k=4CEKGzn)

QUANTAXIS Development Group: 773602202 (If you want to contribute code, please add this group. Remark your GITHUB ID)

Welcome to the public number: ![Public Number] (http://picx.gulizhu.com/qrcode_for_gh_bbb47e0550f7_258%20%281%29.jpg)

Many questions can be found in [GITHUB ISSUE] (https://github.com/QUANTAXIS/QUANTAXIS/issues), you can make a new issue

QUANTAXIS Quantitative Financial Strategy Framework is a quantitative analysis solution for small and medium-sized strategy teams. We can quickly implement a scene-oriented customized solution through highly decoupled modularization and standardized protocols. QUANTAXIS is a progressive open Framework, you can introduce your own data, analysis plan, visualization process, etc. according to your own needs, or you can quickly realize collaboration within multi-person LAN/WAN through RESTful interface.

===================================================

Related items:

Technology stack: python/nodejs/vue/mongodb/rabbitmq/c++

Core tool chain (production environment in use)

has been open source

Data Storage / Data Analysis / Backtest

WEB related, http/websocket/open data interface

distributed correlation, asynchronous execution of tasks, cross-process distributed message subscription distribution

Interface related: Trading Account / Futures Interface Packaging / Trader Instance

Quotes related: The main implementation of the situation / simulation based on the OU process

Not open source

Real-time trading solutions / Unattended / Status reporting / Real-time account evaluation / Multi-account / Strategy account split / Event flow risk control / PB system / CEP engine / Multi-system terminal

tick back test

jupyterhub customization (multiplayer editing)

docker cluster

Toolchain provided by the community

qaresolution

===================================================

  • [QUANTAXIS Quantitative Financial Strategy Framework] (#quantaxis-Quantitative Financial Strategy Framework)     - [0. One-click deployment environment] (#0-QASERVICE)     - [1. Function] (#1-function)         - [1.1 Quotes Service] (#11-Quote Service)             - [1.1.1 stock / futures / options / US stocks / foreign exchange / macro history / real-time market (daily / minute line / tick / real-time five files) service] (#111 - stock futures options US stocks foreign exchange macro historical real-time market Daily line minute line tick real-time five-speed service)             - [1.1.2 Finance / Fundamentals / Macro Data] (#112 - Financial Fundamental Macro Data)             - [1.1.3 Custom Data Source Data] (#113-Custom Data Source Data)         - [1.2 Data Operation and Maintenance Service] (#12-Data Operation and Maintenance Service)         - [1.3 Analysis Service] (#13-Analysis Service)             - [1.3.1 Data structure specifically adapted for A-share stock data] (#131-Data structure specially adapted for a-share stock data)             - [1.3.2 Carefully calculate the index class for the A-share indicator] (#132 - Carefully calculate the adapted indicator class for the a-share indicator)         - [1.4 Scalable Event Driven Framework] (#14-Extensible Event Driven Framework)         - [1.5 Back Test Service] (#15- Back Test Service)             - [1.5.1 stock/day t0/ daily/minute line level backtest] (#151-day day t0-day line minute line backtest)         - [1.6 real set] (#16-solid)             - [1.6.1 Stock / firm easy QAShiPaneBroker] (#161 - stock - real easy - qashipanebroker)             - [1.6.2 Stock/TTS QATTSBroker] (#162-stock-tts----qattsbroker)             - [1.6.3 Futures/Open-trade-gateway QAOTGBROKER] (#163-Future--qaotgbroker)             - [1.6.4 Futures/Sea Breeze AT QA_ATBroker] (#164-Futures--Sea Breeze at-Package-qaatbroker)             - [1.6.5 Futures/VNPY QAVNPYBroker] (#165-Futures-vnpy-qavnpybroker)         - [1.7 Website HTTP Service] (#17-Website http Service)             - [1.7.1 Website background standardized interface] (#171-Website background standardized interface)     - [2. Documentation] (#2-documentation)     - [3. Installation and Deployment] (#3-Installation and Deployment)         - [3.0 Installation Instructions] (#30-Installation Instructions)         - [3.1 Little white style] (#31-小白式上手)         - [3.2 Deployment Installation] (#32-Deployable Installation)         - [3.3 Local Code Development Installation] (#33--Local Code - Developmental Installation)         - [3.4 Code Submission Installation] (#34- Code Submission Installation)     - [4. Update] (#4-Update)     - 5. Docker     - [6. Instructions for use] (#6-Instructions for use)     - [7. Jupyter example] (#7-jupyter example)     - [8. Development Plan] (#8-Development Plan)     - [9. Frequently Asked Questions FAQ] (#9-Frequently Asked Questions faq)     - [10. Project Donation] (#10-Project Donation)     - [11. Backtesting Webkit Plugin Overview] (#11- Backtest webkit plugin overview)     - [12. QUANTAXIS Standardization Agreement and Future Agreement] (#12-quantaxis-Standardization Agreement and Future Agreement)     - [13. Recommended computer configuration] (#13- recommended for computer configuration)     - [14. Video Recording] (#14-recording)     - License

0. QASERVICE

Docker one-click deployment (no need for any environment! It is best to take a new machine directly)

Installing docker

Ubuntu one-click script

Wget https://raw.githubusercontent.com/QUANTAXIS/QUANTAXIS/master/config/install_docker.sh
Sudo bash install_docker.sh

Win/mac installation

Very simple Go to the docker website to download docker_desktop for win/mac

The file is large, I also shared it in the group file.

Or you can use a domestic mirror station

Ps: quantaxis strongly recommends not using the system below win10... (well ignore me)

Using QA_SERVICE

First use

Wget https://raw.githubusercontent.com/QUANTAXIS/QUANTAXIS/master/docker/qaservice_docker.sh
Sudo bash qaservice_docker.sh

Subsequent use

Docker-compose up -d

port:

  • 27017 mongodb
  • 8888 jupyter
  • 8010 quantaxis_webserver
  • 81 quantaxis_community Community Edition interface
  • 61208 System Monitoring
  • 15672 qa-eventmq

Then you can start your quantification year!

1. Function

======

Has been achieved:

1.1 Quotes Service

1.1.1 Stocks/Futures/Options/US Stocks/Forex/Macro History/Real Quotes (Day/Minute/tick/Real-Time Five) Service

See [QUANTAXIS Data Acquisition Guide] (Documents/DataFetch.md)

1.1.2 Finance / Fundamentals / Macro Data

See [QUANTAXIS Financial Indicators] (Documents/financial_means.md)

1.1.3 Custom data source data

See [QUANTAXIS WEB Crawler] (Documents/crawler.md)

1.2 Data Operation and Maintenance Service

One-click update See [WINDOWS Automatic Data Update] (config/windows_autojob_updatedata.md)

1.3 Analysis Services

1.3.1 Data structure specially adapted for A-share stock data

See [QUANTAXIS Data Structure] (Documents/DataStruct.md)

See [QUANTAXIS Quotes Research] (Documents/analysis.md)

1.3.2 Carefully calculate the index class for the A-share index

See [QUANTAXIS indicator system] (Documents/indicators.md)

1.4 Scalable Event Driven Framework

See [QUANTAXIS Event Framework] (Documents/about_event.md)

1.5 Backtesting service

1.5.1 Stock/day t0/ daily/minute line level backtest

See [Account Structure of QUANTAXIS] (Documents/account.md)

See [QUANTAXIS Account Risk Analysis Plugin Guide] (Documents/risk.md)

See [Description of QUTAXIS Backtest Entrustment Transaction Settlement] (Documents/orderanddeal.md)

See [QUANTAXIS Backtest Analysis] (Documents/backtestanalysis.md)

See [Common Strategy Organizing] (Documents/strategy.md)

See [Simplified Strategy Backtesting Detailed Explanation] (Documents/QUANTAXIS Backtesting Analysis Whole Process Explain.md)

See [Details of Accounts for T0 Transactions] (Documents/TEST_ORDER_BACKTEST_T0.md)

1.6 Real disk

1.6.1 (Stock) 实易易 QAShipaneBroker (recommended)

Simplified plug-in See [Easy] (http://www.iguuu.com/e?x=18839)

Easy installation and installation Note See [Installation Note] (shipane_install_memo.md)

1.6.2 (Stock) TTS QATTSBroker

See [QATTSBroker] for details (QUANTAXIX/QAMARKET/QATTSBroker.py)

1.6.3 (Futures) QAOtgBroker

CTP websocket transaction : simnow demo: ws://www.yutiansut.com:7988

Regarding websocket transactions (there may be some uncertain bugs and therefore not open for the time being):

Currently open source See [QAOTGBROKER] (https://github.com/yutiansut/QAOTGBROKER)

1.6.4 (Futures) QATRADER (recommended)

CTP's websocket package includes full account/HTTP control, etc.

Currently open source See [QATRADER] (https://github.com/yutiansut/QATRADER)

1.6.5 (Futures) Sea Breeze AT Package QAAtBroker

CTP's Sea Breeze Broker Magic Package: QA_AtBroker

1.6.6 (Futures) VNPY QAVNPYBroker

Currently VNPY 2.0 is born, compatible with py3.6/3.7 will be docked

1.7 Website HTTP Service (currently independent of QUANTAXIS_WEBSERVICE)

1.7.1 Website background standardized interface

See [QUANTAXIS WEB API Description] (Documents/backendapi.md)

  • [QUANTAXIS 2018 Development Plan Sheet] (job_list.md)

2. Documentation

For documentation see: book

Download the documentation manual (live update)

PDF | MOBI | EPUB

3. Installation and deployment

Quantaxis 1.4.4 added the cython compilation acceleration process, if you need cython's classmates to use:

Python setup_cython.py build_ext --inplace

Continue with pip install -e .

Things to watch out for: The above are optional. Not mandatory!!


Cython speed up:

1.4.3 Account.receive_simpledeal (including accepting orders/updating accounts) for a single 1.88 microseconds
1.4.4 Account.receive_simpledeal is a single 570 nanoseconds

3.0 Installation Instructions

See [Installation Instructions] (Documents/install.md)

3.1 Little white style

See [Little White Startup Tutorial WIN] (Documents/install_for_new_to_coding.md)

3.2 Deployment Installation

Pip install quantaxis -U

3.3 Local Code Developmental Installation

Local installation

Git clone https://github.com/quantaxis/quantaxis --depth 1

Cd quantaxis

Pip install -e .

3.4 Code Submission Installation

Code Submission Installation Code submission see [Code Submission] (https://github.com/QUANTAXIS/QUANTAXIS/blob/master/Documents/about_pr.md)

  • fork QUANTAXIS to your github account
Git clone https://github.com/your account name/quantaxis

4. Update

See [Update Notes] (Documents/update.md)

5. Docker

See Docker

6. Instructions for use

See

7. Jupyter example

See [Jupyter example] (jupyterexample)

8. Development plan

See [Development Plan] (job_list.md)

9. Frequently Asked Questions FAQ

See FAQ

10. Project donation

Writing code is not easy... ask the author to have a cup of coffee?

(PS: Please bring your name/nickname when you pay. It will maintain a sponsor list~)

[donation list] (CONTRIBUTING.md)

11. QUANTAXIS Desktop Products (Full Platform WIN/MAC/LINUX)

See [QUANTAXIS/QADESKTOP] (https://github.com/quantaxis/qadesktop)

Simulate real disk multi-account management

Customized version LAB

12. QUANTAXIS Standardization Agreement and Future Agreement

QUANTAXIS-Stardand-Protocol version number 0.0.8

See QUANATXISProtocol for details.

13. Computer configuration recommendation

Recommended configuration: 6+ generation CPU+ 16/32GB DDR3/DDR4 memory + 256GB or more SSD hard disk

Minimum configuration: Support for X64-bit CPU

Because local data needs to be stored more than 2GB when storing local data, and 32-bit MONGODB supports only about 2GB of data storage, at least one X64-bit CPU is required.

If the SSD resources are sufficient, try to store the data in the SSD and increase the speed of the wiretiger

If it is Alibaba Cloud/Tencent Cloud server, please select 64-bit operating system at the beginning.

14. Recording

Video Recording (2019-03-23)

QUANTAXIS 2019 supports multi-market, scenario-oriented solutions [watching and recording in 哔哩哔哩] (https://www.bilibili.com/video/av47284727/)

===================================================

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

License

[FOSSA Status](https://app.fossa.io/projects /git%2Bgithub.com%2FQUANTAXIS%2FQUANTAXIS?ref=badge_large) Join the chat at https://gitter.im/QUANTAXIS_tauruswang/Lobby