From 3435b3a3482e57a1e90c7cf60b7cea559a3f1203 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 24 Dec 2021 18:21:27 +0100 Subject: [PATCH] Feature/make the csv import more flexible (#573) * Make the csv import more flexible * Update changelog --- CHANGELOG.md | 1 + apps/client/src/app/services/import-transactions.service.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c31e65a0e..630f115e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - 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 diff --git a/apps/client/src/app/services/import-transactions.service.ts b/apps/client/src/app/services/import-transactions.service.ts index ac1b88f9d..7090a13cc 100644 --- a/apps/client/src/app/services/import-transactions.service.ts +++ b/apps/client/src/app/services/import-transactions.service.ts @@ -15,8 +15,8 @@ export class ImportTransactionsService { private static CURRENCY_KEYS = ['ccy', 'currency']; private static DATE_KEYS = ['date']; private static FEE_KEYS = ['commission', 'fee']; - private static QUANTITY_KEYS = ['qty', 'quantity', 'shares']; - private static SYMBOL_KEYS = ['code', 'symbol']; + private static QUANTITY_KEYS = ['qty', 'quantity', 'shares', 'units']; + private static SYMBOL_KEYS = ['code', 'symbol', 'ticker']; private static TYPE_KEYS = ['action', 'type']; private static UNIT_PRICE_KEYS = ['price', 'unitprice', 'value'];