GithubHelp home page GithubHelp logo

stonks's Introduction

Put-Call Arbitrage

This is a program that will find certain arbitrage opportunities for a given input of stocks. In particular, this program looks for situations where put-call parity does not hold. These situations arise when the difference in price between a call option and a put option of the same stock, expiry, and strike price does not equal to the difference in price between the spot price and the strike price. The reason why an arbitrage opportunity arises here is that synthetic put and call options can be generated by shorting the stock and purchasing a call and buying the underlying and purchasing a put respectively. If the formula does not hold, this means there is an opportunity to buy low and sell high, as the option and its corresponding synthetic are not priced equally. More info can be found here.

Usage

  1. Command Line: Run the main module of the package on an input .csv file containing comma separated names of the stocks to check opportunities for.

     pip install -r requirements.txt
    
     python src stock_names.csv
    
  2. Flask: In command line set up flask app as flaskr, run flask, and head to the url. There will be a search bar to input the name of a stock to check opportunities for.

     pip install -r requirements.txt
    
     export FLASK_APP=flaskr
    
     flask run
    

stonks's People

Contributors

scott-xue avatar

Watchers

Michael Luo avatar

stonks's Issues

Make flask server

Create a flask server for this:

  • serve up a html page that has a search bar where you put in ticker
  • search bar -> GET request which hits your Query class
  • return and display opportunities

Remove .idea and add a .gitignore

Please add a standard python .gitignore that also ignores your .idea folder. Additionally, please remove the folder in the same pr.

Use React to improve usability of app

Reactjs is probably the most hireable skill right now.

Make a basic React application that basically does what you're doing right now with the following

  • search bar to look at stock (this should show up on every page, like Facebook top blue bar)
  • landing page
  • stock page which contains some info about stock (price, call price, put price, expiries, etc)

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.