Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
yves committed Dec 1, 2018
0 parents commit e64a901
Show file tree
Hide file tree
Showing 44 changed files with 540,048 additions and 0 deletions.
114 changes: 114 additions & 0 deletions .gitignore
@@ -0,0 +1,114 @@
# Specifics
dx/
*.swp
_build/
cfg/
*.ipynb~
*.txt~
*.log
*.apy

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
58 changes: 58 additions & 0 deletions README.md
@@ -0,0 +1,58 @@
# Python for Finance (2nd ed., O'Reilly)

This repository provides all Python codes and Jupyter Notebooks of the book _Python for Finance -- Mastering Data-Driven Finance_ (2nd edition) by Yves Hilpisch.

<img src="http://hilpisch.com/images/py4fi_2nd_shadow.png" width="500">

Visit the book page of O'Reilly under http://bit.ly/python-finance-2e or order the book under https://www.amazon.com/Python-Finance-Mastering-Data-Driven/dp/1492024333/.

The codes of the book are based on Python 3.7. The codes presented in this Github repository are tested for Python 3.6 since at the time of creating it, `TensorFlow` was not yet compatible with Python 3.7. Once this has happened, appropriate changes (e.g. to the `conda` `yaml` file, see below) will be made.

## Python Packages

There is 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.7** first (see https://conda.io/miniconda.html).

After you have cloned the repository, do on the shell/Anaconda prompt:

cd py4fi2nd
conda env create -f py4fi2nd.yml
source activate py4fi2nd
jupyter notebook

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


## Quant Platform

You can immediately use all codes and Jupyter Notebooks by registering on the Quant Platform under http://py4fi.pqp.io.

## Python for Finance Training & University Certificate

<img src="http://hilpisch.com/images/finaince_visual_low.png" width="500">

Check out our **Python for Finance & Algorithmic Trading online trainings** under http://training.tpq.io.

Check out also our **University Certificate Program in Python for Algorithmic Trading** 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 \| pff@tpq.io \|
http://twitter.com/dyjh

**Quant Platform** \| http://pqp.io

**Derivatives Analytics with Python (Wiley Finance)** \|
http://dawp.tpq.io

**Python for Finance (O'Reilly)** \|
http://pff.tpq.io

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

**University Certificate in Python for Algorithmic Trading** \|
http://certificate.tpq.io

0 comments on commit e64a901

Please sign in to comment.