GithubHelp home page GithubHelp logo

ibkr-toy's Introduction

IBKR Toy: Toolkit for playing with my account on Interactive Brokers

codecov

The main feature right now is to rank all my stocks with a simple (and probably stupid) algorithm. It also generates a table that help me decide which stocks to invest in once I get my salary.

ibkr-toy's People

Contributors

seamlik avatar

Watchers

 avatar

ibkr-toy's Issues

Long term change period set to 5 years

It is only fair because getting data from some stocks (e.g. Swiss ones) always fails, and I must manually get their data from Yahoo Stocks mobile app, which limits the long-term price change to 5 years.

Also, setting the scope to too long will give some stocks an excessively high score while other stocks will never see the light of day.

Find more stock measurements to replace the short-term and long-term price change in ranking factors

Rationale of replacement

At the moment, when we give a score to a stock, we these 2 ranking factors: short-term and long-term price change. However, they pose some serious problems.

First of all, to obtain these measurements, we need to download the historical market price of a stock on the day 1 month ago and 5 years ago. Unfortunately, IBKR does not provide an API to download the data on a particular day. Instead, we need to download all data from a particular day to the current day. This adds complexity in API usage and calculation. What's worse, in order to get a precise calculation, we must use a short interval (like 1 day) when downloading data for 5 total years, which results in a huge increase in download time (and might hit usage limit one day).

Secondly, I accidentally found that the calculation of long-term price change is incorrect when compared to Yahoo Finance (#5).

It is better to get rid of these 2 measurements and opt for ones that are already provided by IBKR.

Candidates of replacement

All these measurements are provided by IBKR:

  • Exponential Moving Average

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.