[Bug]: ActivityType enum out of sync with Alpaca's live APIs causing parsing errors #296
Open
2 tasks done
Labels
bug
Something isn't working
Is there an existing issue for this?
Current Behavior
At least two new enumeration types are being used by Alpaca's REST APIs and are currently not supported by the python SDK. A parsing error/exception occurs when a given account returns an activity of one of these new types.
Alpaca's docs
Code
The two new enums are:
WH - Withheld
This is listed in Alpaca's documentation but does not appear in code.
NC - Name Change
On May 4th we received a message from Alpaca that a new ActivityType would appear starting on May 15th. Both the Alpaca docs AND the alpaca-py are not reflecting this new type.
Below is a snippet of the email from Alpaca's broker support.
Solution:
Add these two enumerations to
trading/enums.py
Expected Behavior
An account that has NonTradingActivities such as
WC
orNC
should not throw an exception in parsing.SDK Version I encountered this issue in
0.8.2
Steps To Reproduce
Filled out the Steps to Reproduce section?
Anything else?
Relevant stack trace.
The text was updated successfully, but these errors were encountered: