In this release, support has been added for the order replacement and account configuration APIs. Documentation for these can be found here: [https://docs.alpaca.markets/api-documentation/api-v2/orders/](orders) and [https://docs.alpaca.markets/api-documentation/api-v2/account-configuration](account configurations). Order replacement allows you to update an order without having to first go through the process of cancelling it and waiting to receive confirmation that the cancel worked. Account configurations allows you to specify some account-level behavior. The following parameters can currently be configured in this way:
- `no_shorting`: Allows you to prevent new short sales from happening - if you attempt a short sale with this set to true, you'll receive an "insufficient qty" error.
- `dtbp_check`: Controls [https://docs.alpaca.markets/user-protections/#day-trade-margin-call-dtmc-protection-at-alpaca](Day Trading Margin Call) checks. Please see our documentation for more information on the options.
- `trade_confirm_email`: If "none" (the string, not python's `None`) is specified, emails for order fills are not sent.
- `suspend_trade`: If true, new orders are blocked.
Additionally, an issue was fixed where user code exceptions would be swallowed by the websocket handler code, which could lead to some errors being difficult to debug.