- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2
Add missing attributes #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|  | @@ -1032,6 +1032,7 @@ class Trade(FlexElement): | |||||
| cusip: Optional[str] = None | ||||||
| isin: Optional[str] = None | ||||||
| rtn: Optional[str] = None | ||||||
| initialInvestment: Optional[str] = None | ||||||
| issuerCountryCode: Optional[str] = None | ||||||
| listingExchange: Optional[str] = None | ||||||
| multiplier: Optional[decimal.Decimal] = None | ||||||
|  | @@ -2198,7 +2199,8 @@ class CashTransaction(FlexElement): | |||||
| fineness: Optional[decimal.Decimal] = None | ||||||
| weight: Optional[str] = None | ||||||
| figi: Optional[str] = None | ||||||
|  | ||||||
| issuerCountryCode: Optional[str] = None | ||||||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (bug_risk): Duplicate attribute in CashTransaction class. The  | ||||||
| availableForTradingDate: Optional[datetime.date] = None | ||||||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: Consider using snake_case for consistency. The rest of the attributes in the class use snake_case. It would be more consistent to name this attribute  
        Suggested change
       
 | ||||||
|  | ||||||
| @dataclass(frozen=True) | ||||||
| class DebitCardActivity(FlexElement): | ||||||
|  | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|  | @@ -51,6 +51,7 @@ class Code(str, enum.Enum): | |||||
| """ | ||||||
| ASSIGNMENT = "A" | ||||||
| AUTOEXERCISE = "AEx" # Automatic exercise for dividend-related recommendation | ||||||
| AUTOFX = "AFx" # FX Auto Conversion | ||||||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: Consider using consistent casing for enum values. The other enum values use uppercase letters only. Consider changing  
        Suggested change
       
 | ||||||
| ADJUSTMENT = "Adj" # Adjustment | ||||||
| ALLOCATION = "Al" # Allocation | ||||||
| AWAY = "Aw" # Away Trade | ||||||
|  | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Consider using snake_case for consistency.
The rest of the attributes in the class use snake_case. It would be more consistent to name this attribute
initial_investment.