Browse Source

Feature/make the csv import more flexible (#573)

* Make the csv import more flexible

* Update changelog
pull/575/head
Thomas Kaul 3 years ago
committed by GitHub
parent
commit
3435b3a348
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 4
      apps/client/src/app/services/import-transactions.service.ts

1
CHANGELOG.md

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Increased the historical data chart of the _Fear & Greed Index_ (market mood) to 30 days - Increased the historical data chart of the _Fear & Greed Index_ (market mood) to 30 days
- Made the import functionality for transactions by `csv` files more flexible
## 1.93.0 - 21.12.2021 ## 1.93.0 - 21.12.2021

4
apps/client/src/app/services/import-transactions.service.ts

@ -15,8 +15,8 @@ export class ImportTransactionsService {
private static CURRENCY_KEYS = ['ccy', 'currency']; private static CURRENCY_KEYS = ['ccy', 'currency'];
private static DATE_KEYS = ['date']; private static DATE_KEYS = ['date'];
private static FEE_KEYS = ['commission', 'fee']; private static FEE_KEYS = ['commission', 'fee'];
private static QUANTITY_KEYS = ['qty', 'quantity', 'shares']; private static QUANTITY_KEYS = ['qty', 'quantity', 'shares', 'units'];
private static SYMBOL_KEYS = ['code', 'symbol']; private static SYMBOL_KEYS = ['code', 'symbol', 'ticker'];
private static TYPE_KEYS = ['action', 'type']; private static TYPE_KEYS = ['action', 'type'];
private static UNIT_PRICE_KEYS = ['price', 'unitprice', 'value']; private static UNIT_PRICE_KEYS = ['price', 'unitprice', 'value'];

Loading…
Cancel
Save