You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For simplicity, the alpaca_trade_executor now uses round() to round the decimal to two places if the price is bigger than 1.
However, from a logical standpoint, it needs to be investigated if the price should rather be rounded up for 'side=buy' and rounded down for 'side=sell'.
Keep this open as the above needs to be looked into.
It appears Alpaca only accepts two decimals for prices if the price is above $1.00 (see doc).
The fix should be to round the order price up if the total order is above $1.00. For instance, instead of $1.005, the order would be $1.01.
The text was updated successfully, but these errors were encountered: