Giter Club home page Giter Club logo

ticktock's People

Contributors

thatsjonsense avatar yuhki avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

ace3251

ticktock's Issues

Simulate stock data w/ historical prices

Google offers historical prices at https://www.google.com/finance/getprices?i=60&p=1d&f=d,o,h,l,c,v&df=cpct&q=IBM more info and alternatives here http://www.quantshare.com/sa-426-6-ways-to-download-free-intraday-and-tick-data-for-the-us-stock-market

Plan is: get 1-second level data over a day for ~100 stocks, store in a CSV. Write the meteor server code to parse that CSV, load it into some kind of model, then spit out data from there in place of real stock market connections.

Automatically do that any time market is closed

Find a good way to handle quote "staleness"

Right now we store quotes for a stock -- meaning it's price at a given date. Asking for the price of a stock at a certain time just means finding the most recent quote before that moment.

A good quote is fresh -- it comes from within seconds or minutes of the moment you asked for. A bad quote is stale -- we should either say the price is null at that point (because we have no clue), or immediately grab a fresher quote.

So how stale is too stale? A couple challenges come in

  • On weekends, we don't get a quote for 2 days, but the latest price is still right
  • For recent data, we can get up to the second quotes. For the distant past, it's only daily.

Yahoo data doesn't have a proper time

Right now we're returning quotes while the market is closed, even though the last trade is from hours before.

The "time" in a quote should be the time the last trade happened. And we shouldn't store quotes while the market is closed: that just clogs things up.

So we need to parse the LastTradeTime coming back from Y! (let's assume all EST for now) and store that as a quote time. And, we need to avoid logging duplicate quotes in that case.

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.