Submit orders to IB from textfile

Discussion in 'Automated Trading' started by sheepsucker, Sep 15, 2012.

  1. I have done this in tradelink. if you have a file like


    Code:
    IBM,true,100,500.000000,0.000000,,,,STK,USD,,1,DAY,0,0,,0
    SPY_111223C119000 OPT,true,1,0,0,,CBOE,ZXBZA,NIL,USD,,975804660,D,20111206,144523,,0
    
    you can read and send them in using OrderImpl.Deserialize(line) with sendorder.
     
    #11     Sep 17, 2012
  2. sle

    sle

    Do you have experience with it? I've heard conflicting things about it, especially about some stability issues. We looked at it briefly when we considered PBing with IB, but decided against it. Pretty reasonable interface, though.
     
    #12     Sep 17, 2012
  3. ddude

    ddude

    Yes, No more issues than anything else and for me are usually more on the IB side... And as you can see from 2rosy's example above what you are asking for can be short and sweet. :cool:
    Cordially,
    -DD-

    PS - The author of the IBrokers package is very good and active in the community!
     
    #13     Sep 18, 2012
  4. Bob111

    Bob111

    write some add on or little stand alone application in whatever , that periodically check, if file been modified\updated. if it did-open file,grab info and place an order. i don't see a big deal here. can be done in excel's VBA for example

    In Excel, the FILEDATETIME function returns the date and time of when a file was created or last modified.

    http://www.techonthenet.com/excel/formulas/filedatetime.php
     
    #14     Sep 18, 2012
  5. 2rosy

    2rosy

    heres a beta release. Let me know how it is. Need python and windows (some c stuff).

    http://bit.ly/SixHJV
     
    #15     Sep 24, 2012
  6. tnx rosy! will try it out.
    Sofar it has seemed ibosa and twstools are the best solutions.
     
    #16     Sep 24, 2012
  7. 2rosy

    2rosy

  8. simsim67

    simsim67

  9. Butterfly

    Butterfly

    a Python script could load the txt file and run the trade directly with IB MQ

    See my scripting tutorial for connecting and trading with IB in a pure programming environment
     
    #19     May 25, 2016