• Stars
    star
    1,662
  • Rank 28,121 (Top 0.6 %)
  • Language
    Jupyter Notebook
  • Created almost 10 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python for Finance (O'Reilly)

Python for Finance (O'Reilly)

This repository provides all Python codes and Jupyter Notebooks of the book Python for Finance -- Analyze Big Financial Data by Yves Hilpisch.

Oder the book here http://shop.oreilly.com/product/0636920032441.do or under http://www.amazon.com/Python-Finance-Analyze-Financial-Data/dp/1491945281/.

There are two code versions available: for Python 3.6 and Python 2.7 (in the legacy folder; not maintained anymore).

Python Packages

There is now a yaml file for the installation of required Python packages in the repository. This is to be used with the conda package manager (see https://conda.io/docs/user-guide/tasks/manage-environments.html). If you do not have Miniconda or Anaconda installed, we recommend to install Miniconda 3.6 first (see https://conda.io/miniconda.html).

After you have cloned the repository, do on the Linux/Mac shell:

cd py4fi
conda env create -f py4fi_conda.yml
source activate py4fi
cd jupyter36
jupyter notebook

On Windows, do:

cd py4fi
conda env create -f py4fi_conda.yml
activate py4fi
cd jupyter36
jupyter notebook

Then you can navigate to the Jupyter Notebook files and get started.

Yahoo! Finance & Google Finance Issues

Recently Yahoo! Finance stopped their original financial data API service that is used in the book in many different places (and been so by many others in the field for years) via the pandas-datareader package.

One way of fixing it in some places is to simply replace data_source='yahoo' by data_source='google' (and maybe working with an alternative symbol). However, Google Finance has also changed data availability via the their API such that this does only help partially.

Another way is to use this fix: https://github.com/ranaroussi/fix-yahoo-finance -- this is done for some code in chapter 11.

In the majority of cases where financial data is used, the pandas-datareader based code has been replaced by simple pandas code that accesses data files that are now part of the repository (CSV data files provided with data as provided either by the Thomson Reuters Eikon API or by data sources from FXCM Forex Capital Markets Ltd.). This makes sure that the code base is not subject to unforeseen API changes by third parties.

Quant Platform

You can immediately use all codes and Jupyter Notebooks by registering on the Quant Platform under http://oreilly.quant-platform.com.

Python for Algorithmic Trading Course & Certificate

Check out our Python for Algorithmic Trading Course under http://pyalgo.tpq.io.

Check out also our Python for Algorithmic Trading Certificate Program under http://certificate.tpq.io.

Company Information

Β© Dr. Yves J. Hilpisch | The Python Quants GmbH

The Quant Platform (http://pqp.io) and all codes/Jupyter notebooks come with no representations or warranties, to the extent permitted by applicable law.

http://tpq.io | [email protected] | http://twitter.com/dyjh

Quant Platform | http://oreilly.quant-platform.com

Derivatives Analytics with Python (Wiley Finance) | http://derivatives-analytics-with-python.com

Python for Finance (O'Reilly) | http://python-for-finance.com

Python for Algorithmic Trading Course | http://pyalgo.tpq.io

Python for Finance Online Training | http://training.tpq.io

More Repositories

1

py4fi2nd

Jupyter Notebooks and code for Python for Finance (2nd ed., O'Reilly) by Yves Hilpisch.
Jupyter Notebook
1,119
star
2

dx

DX Analytics | Financial and Derivatives Analytics with Python
Jupyter Notebook
663
star
3

dawp

Jupyter Notebooks and code for Derivatives Analytics with Python (Wiley Finance) by Yves Hilpisch.
Jupyter Notebook
536
star
4

py4at

Jupyter Notebooks and code for the book Python for Algorithmic Trading (O'Reilly) by Yves Hilpisch.
Jupyter Notebook
495
star
5

aiif

Jupyter Notebooks and code for the book Artificial Intelligence in Finance (O'Reilly) by Yves Hilpisch.
Jupyter Notebook
209
star
6

tpqoa

tpqoa is a Python wrapper package for the Oanda REST API v20 for algorithmic trading.
Python
128
star
7

lvvd

Listed Volatility and Variance Derivatives (Wiley Finance)
Jupyter Notebook
123
star
8

eikondataapi

Jupyter Notebook
93
star
9

cloud-python

Deploying Python for Data Analytics and Jupyter Notebook in the Cloud.
Jupyter Notebook
86
star
10

rlfinance

The code used for the free quants@dev Webinar series on Reinforcement Learning in Finance
Jupyter Notebook
68
star
11

pydlon15

Open Source Tools for Financial Time Series Analysis and Visualization
Python
67
star
12

ftwp

Jupyter Notebooks and code for the book Financial Theory with Python (O'Reilly) by Yves Hilpisch.
Jupyter Notebook
49
star
13

ipynb-docker

IPython Notebook Servers in Docker Containers
Python
26
star
14

eurexas

Eurex VSTOXX & Variance Advanced Services
Jupyter Notebook
26
star
15

tpqad

Workflow combining Asciidoctor with Codes in Jupyter Notebooks.
HTML
25
star
16

mvportfolio

Simple portfolio analysis and management.
Python
23
star
17

dnanlp

Python codes and Jupyter Notebooks for the Dow Jones DNA NLP applied research paper.
Jupyter Notebook
16
star
18

arpm

Jupyter Notebook
13
star
19

py4qf

Python for Quant Finance -- The New Benchmark
Jupyter Notebook
13
star
20

mlfin

Resources for the Machine Learning for Finance workshop at Texas State University (November 2022).
Jupyter Notebook
13
star
21

tpqps

tpqps is a wrapper package for the streaming API of Plotly.
Python
11
star
22

dnber15

CSS
6
star
23

documentation

The repository contains files used in the respective Tools & Skills training module.
Jupyter Notebook
5
star
24

packaging

The repository contains files used in the respective Tools & Skills training module.
Jupyter Notebook
5
star
25

rpi

Raspberry Pi for Serious Things
TeX
4
star
26

rl4f

This repository contains the code for the O'Reilly book Reinforcement Learning for Finance.
Jupyter Notebook
1
star