|
|
@ -371,8 +371,8 @@ export class OrderService { |
|
|
quantity: 1, |
|
|
quantity: 1, |
|
|
SymbolProfile: { |
|
|
SymbolProfile: { |
|
|
activitiesCount: 0, |
|
|
activitiesCount: 0, |
|
|
assetClass: 'LIQUIDITY', |
|
|
assetClass: AssetClass.LIQUIDITY, |
|
|
assetSubClass: 'CASH', |
|
|
assetSubClass: AssetSubClass.CASH, |
|
|
countries: [], |
|
|
countries: [], |
|
|
createdAt: new Date(balanceItem.date), |
|
|
createdAt: new Date(balanceItem.date), |
|
|
currency: account.currency, |
|
|
currency: account.currency, |
|
|
@ -387,7 +387,7 @@ export class OrderService { |
|
|
updatedAt: new Date(balanceItem.date) |
|
|
updatedAt: new Date(balanceItem.date) |
|
|
}, |
|
|
}, |
|
|
symbolProfileId: account.currency, |
|
|
symbolProfileId: account.currency, |
|
|
type: 'BUY', |
|
|
type: ActivityType.BUY, |
|
|
unitPrice: 1, |
|
|
unitPrice: 1, |
|
|
unitPriceInAssetProfileCurrency: 1, |
|
|
unitPriceInAssetProfileCurrency: 1, |
|
|
updatedAt: new Date(balanceItem.date), |
|
|
updatedAt: new Date(balanceItem.date), |
|
|
@ -400,7 +400,7 @@ export class OrderService { |
|
|
activities.push({ |
|
|
activities.push({ |
|
|
...syntheticActivityTemplate, |
|
|
...syntheticActivityTemplate, |
|
|
quantity: balanceItem.value - currentBalance, |
|
|
quantity: balanceItem.value - currentBalance, |
|
|
type: 'BUY', |
|
|
type: ActivityType.BUY, |
|
|
value: balanceItem.value - currentBalance, |
|
|
value: balanceItem.value - currentBalance, |
|
|
valueInBaseCurrency: |
|
|
valueInBaseCurrency: |
|
|
balanceItem.valueInBaseCurrency - currentBalanceInBaseCurrency |
|
|
balanceItem.valueInBaseCurrency - currentBalanceInBaseCurrency |
|
|
@ -410,7 +410,7 @@ export class OrderService { |
|
|
activities.push({ |
|
|
activities.push({ |
|
|
...syntheticActivityTemplate, |
|
|
...syntheticActivityTemplate, |
|
|
quantity: currentBalance - balanceItem.value, |
|
|
quantity: currentBalance - balanceItem.value, |
|
|
type: 'SELL', |
|
|
type: ActivityType.SELL, |
|
|
value: currentBalance - balanceItem.value, |
|
|
value: currentBalance - balanceItem.value, |
|
|
valueInBaseCurrency: |
|
|
valueInBaseCurrency: |
|
|
currentBalanceInBaseCurrency - balanceItem.valueInBaseCurrency |
|
|
currentBalanceInBaseCurrency - balanceItem.valueInBaseCurrency |
|
|
|