Search results

  1. L

    help! Can't get limit orders to work

    I just figured it out with your help! If you send TWS a limit price that has more than 2 digits after the decimal it rejects the order
  2. L

    help! Can't get limit orders to work

    The method run is part of a class and those values are floats that that are passed in when the class is instantiated as an object. Basically, price is the price of the stock when I decided to buy or sell it and dev is a percentage of the price that I'm willing to budge. If I replace "LMT"...
  3. L

    help! Can't get limit orders to work

    Market orders go through just fine, but when I place a limit order the TWS doesn't repsond. The relevant code is below...am I just forgetting some silly little thing?? public void run() { try { connectToTWS(); Contract contract =...
Back
Top