Broker API HubMenu

je-suis-tm/quant-trading

Line chart titled Pair Trading. NVDA and AMD share prices through 2014 on two scales, with green upward triangles marked LONG and red downward triangles marked SHORT along both lines.
A chart from the pair trading example: two share prices on one plot, with markers where the script opens long and short positions. Image from the repository's README. Copyright the je-suis-tm/quant-trading authors. Licence: Apache-2.0. Source file on GitHub, copied and resized. How images are chosen.

In its own words: Python quantitative trading strategies including VIX Calculator, Pattern Recognition, Commodity Trading Advisor, Monte Carlo, Options Straddle, Shooting Star, London Breakout, Heikin-Ashi, Pair Trading, RSI, Bollinger Bands, Parabolic SAR, Dual Thrust, Awesome, MACD

Independent and unofficialRead from GitHub

Open je-suis-tm/quant-trading on GitHub

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

The facts

Stars
10,926
Forks
1,923
Language
Python
Licence
Apache-2.0
Created
Last push
Kind
Learning material
Read from GitHub
github.com/je-suis-tm/quant-tradingchecked

Stars measure attention, not quality or safety. Nothing here reviews the code or its author. Read the licence, the open issues and the code itself before you run anything against an account. Star velocity: unmeasurable, because this site holds one reading for this repository.

Get started in a couple of minutes

You need Python and Git installed. Then, in a terminal:

git clone https://github.com/je-suis-tm/quant-trading.git
cd quant-trading
  1. python -m venv .venv
  2. Activate it: .venv\Scripts\activate on Windows, source .venv/bin/activate on macOS or Linux
  3. Install what the project needs. Most Python projects use: pip install -r requirements.txt or pip install -e .

These are the usual steps for a project in this language, not instructions taken from this repository. Its README has the exact commands, and it wins wherever the two differ.

Before you connect anything to a broker: read what the code does, use a demo account, and keep keys in environment variables, never in the code. New to GitHub? Start with the basics.

Others of the same kind