> 1. JBT only allows market orders. Isn't there any way to make it accept > Limit Orders too? If so, where do I have to do the editing? I saw in > TraderAssistant.java it has a method called placeOrder and > placeMarketOrder... and I think Strategies only uses placeMarketOrder > method.. So, how can we create a method that places a Limit Order and we > can use that method in our Strategy section? >
Handling limit orders is a very nontrivial business. While only a few lines of code is needed to modify the existing placeMarketOrder() method to be able to place limit orders, there is a lot more that is needed around order cancellation, order change, partial fills, and more. There is been a number of discussions around it in this forum. As it stands right now, I am not looking to add support for limit orders to JBT. -- You received this message because you are subscribed to the Google Groups "JBookTrader" group. To view this discussion on the web visit https://groups.google.com/d/msg/jbooktrader/-/HaLRX3ZJ5vAJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jbooktrader?hl=en.
