@barchart/portfolio-api-common 1.11.5 → 1.11.6

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.
@@ -50,7 +50,7 @@ module.exports = (() => {
50
50
 
51
51
  if (instruments.hasOwnProperty(position)) {
52
52
  let instrument = instruments[position];
53
- let formatted = { instrument: instrument };
53
+ let formatted = { instrument: instrument, raw: {} };
54
54
 
55
55
  const formatterFunctions = formatters.get(transaction.type);
56
56
 
@@ -156,6 +156,8 @@ module.exports = (() => {
156
156
  f.total = t.dividend.amount;
157
157
  f.rate = t.dividend.rate;
158
158
 
159
+ f.raw.rate = t.dividend.rate.toFloat();
160
+
159
161
  let shares;
160
162
 
161
163
  if (!t.dividend.rate.getIsZero()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/portfolio-api-common",
3
- "version": "1.11.5",
3
+ "version": "1.11.6",
4
4
  "description": "Common code used by the Portfolio system",
5
5
  "author": {
6
6
  "name": "Bryan Ingle",