Database for minute price feeds

Discussion in 'Data Sets and Feeds' started by blueraincap, Feb 7, 2017.

  1. Hello,
    Could someone pls suggest a database to use for storing 30sec-60second live price feeds for 100+ securities, which a java system will retrieve for evaluation and order routing
     
  2. MarcG

    MarcG

    Many databases can do without too much tweaking. Personally for this rather easy requirement I would go for mongodb and use documents as buckets (i.e. 1h or 1d data per instrument in one bucket). works nicely in most situations.
    Further option: influxdb.
     
  3. Thanks. Mongo is actually on top of my list.
     
  4. MarcG

    MarcG

    ok. just as a hint: if you go with mongo and documents as buckets keep the document size limit in mind. personally I store data in binary format or as arrays (bad update performance) in buckets.
     
    Zzzz1 likes this.
  5. For 30/60 sec bars on only 100 names, almost any database or even flat files will do. Use whatever database you are most familiar with.
     
    InvBox likes this.
  6. Thanks. Will scale up the data requirements substantially going forward. In terms of capacity, speed, and functionality, how do you compare mongo with sqlite and mysql?
     
  7. Tim Smith

    Tim Smith

    How about looking at PostgreSQL too ?

    Also don't forget, databases are not black boxes. If you don't make use of a database's specific features you're wasting your time.

    As for the "how do you compare" question. Do your own testing based up on your own use-cases and see which best fits your own application.
     
  8. It sounds like you don't need a full-blown client/server DB solution. I've been successfully using sqlite for years for this kind of data in C++ applications. A Java developer coworker uses H2 (the Java equivalent of sqlite) for the same purposes.
    Both sqlite and H2 are file-based relational DBMS solutions.
     
  9. 2rosy

    2rosy

  10. Thanks. Just pick up a book on NoSQL vs SQL and Seven Databases in Seven Weeks (PM me if want a copy).


    Btw, which spot FX broker has better API, price feed, and automation functionality than IB?
     
    #10     Feb 13, 2017