@barchart/portfolio-api-common 1.0.239 → 1.0.240

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,6 +47,7 @@ module.exports = (() => {
47
47
 
48
48
  return transactions.reduce((list, transaction) => {
49
49
  const position = transaction.position;
50
+ const position = transaction.position;
50
51
 
51
52
  if (instruments.hasOwnProperty(position)) {
52
53
  let instrument = instruments[position];
@@ -118,7 +119,7 @@ module.exports = (() => {
118
119
  formatters.set(TransactionType.DIVIDEND, (t) => {
119
120
  return {
120
121
  shares: t.snapshot.open,
121
- total: t.dividend.amout,
122
+ total: t.dividend.amount,
122
123
  rate: t.dividend.rate
123
124
  };
124
125
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.0.239",
3
+ "version": "1.0.240",
4
4
  "description": "Common classes used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",