ecigar13 / ally-api-client

Java project to access Ally bank's API to get and stream stock data.
https://mvnrepository.com/artifact/com.github.khoanguyen0791
Apache License 2.0
0 stars 2 forks source link

"error": "You cannot use the Good until Canceled (GTC) duration on a Market order." #3

Open mw66 opened 3 years ago

mw66 commented 3 years ago

Ally.com error:

"error": "You cannot use the Good until Canceled (GTC) duration on a Market order."

tradeking-model/src/main/java/com/celexus/conniption/model/fixml/FIXMLBuilder.java

   buyStockAtMarket(...)

      .priceType(PriceType.MARKET)

      .timeInForce(TimeInForceField.GOOD_TIL_CANCELED);