Giter Club home page Giter Club logo

pythonfinance's Introduction

PythonFinance

basic Finance Utilities for Python

Requirements

  1. Python >= 3
  2. numpy
  3. scipy
  4. pandas

Features

  1. Data Manager
    • Automatic download data from Yahoo! Finance
    • Get only interested information: dates and fields (Adj Close, Volume, ...)
    • Serialization (pickle) of data with custom names
  2. Calculator Utils
    • Present Value, Future Value
    • Rates (Annual Rate)
    • Efective Annual Return
    • Number of Periods
    • Total return
    • Daily returns
    • Sharpe ratio
  3. Date Utils: to handle open NYSE Dates
    • open dates between two dates + back and forward windows
    • add and substract dates
  4. Market Simulator: Simulates a list of orders
    • Automatically download necessary data
    • Can load the trades from a CSV file
    • Can use custom list of orders (usually from the EventFinder)

Event Study

  1. PastEvent: Analysis of an specific event:

    • Allows specific event window and estimation period
    • Expected Returns
    • Abnormal Returns
    • Cumulative Abnormal Returns
  2. EventFinder: Find events on data

  3. MultipleEvent: Analysis of a list of events

    • Allows specific event window and estimation period
    • Expected Returns
    • Abnormal Returns
    • Cumulative Abnormal Returns
    • Plot with error bars

How to use it

Set the envvars: FINANCEPATH to where you want the data to live. ALPHAVANTAGEKEY to the Alpha Vantage API Key.

pythonfinance's People

Contributors

brettelliot avatar brettelliot-efl avatar danielfrg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.