diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d983f46..5561f467 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ Unreleased ---------- +- Added optional `price` member to + `api::v2::account_activities::NonTradeActivity` type - Switched to using GitHub Actions as CI provider - Bumped minimum supported Rust version to `1.57` diff --git a/src/api/v2/account_activities.rs b/src/api/v2/account_activities.rs index 58029d5d..06753d35 100644 --- a/src/api/v2/account_activities.rs +++ b/src/api/v2/account_activities.rs @@ -232,6 +232,9 @@ pub struct NonTradeActivityImpl { /// the payment. Not present for other activity types. #[serde(rename = "qty")] pub quantity: Option, + /// The per-share price. Not present on all activities. + #[serde(rename = "price")] + pub price: Option, /// For dividend activities, the average amount paid per share. Not /// present for other activity types. #[serde(rename = "per_share_amount")] @@ -249,6 +252,7 @@ impl NonTradeActivityImpl { net_amount, symbol, quantity, + price, per_share_amount, description, .. @@ -261,6 +265,7 @@ impl NonTradeActivityImpl { net_amount, symbol, quantity, + price, per_share_amount, description, }