alpacahq / Alpaca-API

The Alpaca API is a developer interface for trading operations and market data reception through the Alpaca platform.
https://alpaca.markets/
141 stars 13 forks source link

Documentation request (partial fill on IOC or MOC, terminal behavior) #171

Open tr8dr opened 3 years ago

tr8dr commented 3 years ago

I cannot determine what the API will send back in the following scenarios from paper trading, as my orders tend to always be filled.

Scenario 1 An IOC limit order is issued, is partially filled. Will the sequence be:

  1. partial_fill
  2. cancelled or expired or ??

Scenario 2 An MOC order is issued but not fully filled. Will the sequence be:

  1. partial_fill
  2. cancelled or expired or ??