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
The account activity type Option Trade, with its string value being OPTRD is not mapped in the client SDK. Therefore, whenever I fetch my account activities, for example, using the ListAccountActivitiesAsAsyncEnumerable method, and when my activities have at least one record of Option Trade, the client SDK will raise a JSON parsing error because the enum value of Option Trade is not listed in the enum class AccountActivityType.
Expected Behavior
All the methods that dela with account activities should be able to correctly parse them given the presence of option trade activity.
Steps To Reproduce
This is going to be a little difficult to reproduce as you need to:
1. sell a put option
2. wait till it expires in-the-money
3. wait till it gets automatically assigned, so that an account activity of option trade will be added to your account.
4. and then you can reproduce this bug query your past account activities.
Environment
- SDK Version: 7.1.1 and 7.1.2
- OS (version, bitness):
- .NET SDK (version):8.0
- target process .NET version/bitness:
Anything else?
Hopefully this could be debugged in soon as it now makes it impossible for me to query my real-account activities.
It can be fixed by adding the Option Trade as an enum value to the account activity enum class, you need to specify [EnumMember(Value = "OPTRD")]
The text was updated successfully, but these errors were encountered:
Just issued a pull request to add that missing enum value to the account activity type. Please refer to the #765 for detail.
Chacoon3
changed the title
[BUG]: Unmatched AccountActivityType Leading to SDK Error
[BUG]: Unmapped AccountActivityType Leading to SDK Error
Nov 6, 2024
Is there an existing issue for this?
Current Behavior
The account activity type Option Trade, with its string value being OPTRD is not mapped in the client SDK. Therefore, whenever I fetch my account activities, for example, using the ListAccountActivitiesAsAsyncEnumerable method, and when my activities have at least one record of Option Trade, the client SDK will raise a JSON parsing error because the enum value of Option Trade is not listed in the enum class AccountActivityType.
Expected Behavior
All the methods that dela with account activities should be able to correctly parse them given the presence of option trade activity.
Steps To Reproduce
Environment
Anything else?
Hopefully this could be debugged in soon as it now makes it impossible for me to query my real-account activities.
It can be fixed by adding the Option Trade as an enum value to the account activity enum class, you need to specify [EnumMember(Value = "OPTRD")]
The text was updated successfully, but these errors were encountered: