How does IB's API work with historical data?

Discussion in 'App Development' started by MJM, Mar 28, 2015.

  1. MJM

    MJM


    Butterfly, I buy/sell every Friday at close so that I always have my top picks for the following week. I use the previous 14 weeks closing price on Friday(or the last day of the trading week) for my analysis. This includes the Friday I execute the trade so I have to time my analysis so that I get as close to close as possible for the most recent week. I figured it would be easier for me to run my analysis and the order management in the same Java app in order to execute this in time and be able to buy/sell whatever I need to at close. Sorry, if I'm not making any sense it's been a long day.
     
    #11     Mar 30, 2015
  2. MJM

    MJM

    Eusdaiki, I would be more than happy to! Just trying to get as much info as possible before jumping in...
     
    #12     Mar 30, 2015
    eusdaiki likes this.
  3. Butterfly

    Butterfly

    then it's very easy, close to closes make perfect sense, no need to do that with IB APIs, can be done in Python or Java and then import the IB APIs into Python so the trades can be processed

    see my thread on a tutorial to send trades to IB APIs using Python,
     
    #13     Apr 1, 2015
  4. If someone has successful experience in data feed using IB API, I can pay for his labour, since there is no free lunch.

    I can spend my own time for its implementation but my time need money too. If someone spend weekend for me I should pay at least some hundreds of dollars.

    In short, suppose I have 400 equities (similar to SnP500) in my personal watch list, stored in c:\stocklist.txt.
    Someone make program to receive the price data using IB API, stored in c:\price.txt so that I can read the present price from my own program every minutes during 9:30 and 4:00.

    Reply me if anyone was successful.
     
    #14     Apr 4, 2015
  5. Butterfly

    Butterfly

    using IB APIs with Excel DDE is quite easy, I did it before with their live feed for Equity options, but it's still "clumsy" and I wouldn't recommend it.
     
    #15     Apr 4, 2015
  6. Butterfly

    Butterfly

    that's not really challenging, and I am surprised you haven't figure it out yet
     
    #16     Apr 4, 2015
  7. 2rosy

    2rosy

    here's an example http://bit.ly/1FtE43K that publishes a midprice and other #s over zeromq. You could listen to zmq in your program for the prices instead of reading a file every minute.
    Also, here's how to use the API in python http://bit.ly/17h05Rm

    A custom solution is not free
     
    #17     Apr 4, 2015
  8. I had experience to get a paid helper on Excel DDE, for other than IB in other than NYSE market.

    Its data feed was successful but I agree it is "clumsy" as Butterfly and probably Python is recommended as 2Rosy.
     
    #18     Apr 4, 2015
  9. Butterfly

    Butterfly

    using a MoM like ZeroMQ or other opensource MQ is really not the best way to get a price feed

    REST APIs are better equipped for that, a query type pull rather than an asynchronous push
     
    #19     Apr 5, 2015
  10. Butterfly

    Butterfly

    completely useless, as usual from you.
     
    #20     Apr 5, 2015