shell/commandline style order entry

Discussion in 'Risk Management' started by dividend, Sep 29, 2013.

  1. Hello
    Relatively new to automated trading

    Is there a good API or program to do commandline/shell script style order entries, without needing to compile or code my own from scratch?

    example -

    # order buy 100 xyz market; order stoploss 50 xyz 1; order stoploss 50 xyz 2

    would send a buy order for 100 shares of xyz at the market and immediately also send a stoploss order to sell 50 shares when shares down 1% and stoploss sell the other 50 remaining when shares down 2%

    i believe this is much better than point/clicking especially in a fast market

    thanks
     
  2. For the IB API there is Trading Shim:

    http://www.trading-shim.org/

    Whenever I have built an OMS, I've included a socket-based command-line administrative interface that also supports orders, cancels, modifies, etc. -- basically one large case statement. Rolling your own is not that difficult.
     
  3. 2rosy

    2rosy

    here's an orderloader for IB
     
  4. What platform and who are you executing through?

    Every "automated" system I have ever encountered runs on its own. If you are looking for a DR or "oh sh*t" type of thing I'd suggest a GUI or a phone call stating "get me flat" to your broker.