neurallayer / roboquant

Roboquant is a fast, flexible, user-friendly and completely free algorithmic trading platform
https://www.roboquant.org
Apache License 2.0
352 stars 46 forks source link

Add support for IOC or FOK order types. #80

Open ningsuhen opened 5 months ago

ningsuhen commented 5 months ago

Alpaca now supports IOC or FOK orders which cancels if it can't be filled. Not sure if the downstream Alpaca-java supports it but it is in the V2 API. Roboquant has a check which only allows DAY/GTC orders.

jbaron commented 5 months ago

Roboquant itself already support these TimeInForce policies but indeed doesn't map them yet to Alpaca orders. So should be easy to add them also for Alpaca.

jbaron commented 5 months ago

In the latest unstable 3.0 this has been added. So once that is released, should be included.