Broker API HubMenu

PacktPublishing/Python-for-Finance-Cookbook-2E

In its own words: The repository of "Python for Finance Cookbook" 2nd edition

Independent and unofficialRead from GitHub

Open PacktPublishing/Python-for-Finance-Cookbook-2E 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
157
Forks
108
Language
Jupyter Notebook
Licence
MIT
Created
Last push
Kind
Learning material

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, Git and Jupyter installed. Then, in a terminal:

git clone https://github.com/PacktPublishing/Python-for-Finance-Cookbook-2E.git
cd Python-for-Finance-Cookbook-2E
  1. python -m venv .venv, then activate it
  2. pip install notebook, plus anything the README lists
  3. jupyter notebook, then open a notebook from the list

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