Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/support unlimited currencies #387

Merged
merged 4 commits into from Sep 24, 2021

Conversation

dtslvr
Copy link
Member

@dtslvr dtslvr commented Sep 21, 2021

No description provided.

@dtslvr
Copy link
Member Author

dtslvr commented Sep 21, 2021

Current limitation

  • Adding a transaction in a new currency does not reload the exchange rates correctly

@dtslvr dtslvr marked this pull request as ready for review September 22, 2021 19:31
this.initialize();
}

public getCurrencies() {
return this.currencies?.length > 0 ? this.currencies : [baseCurrency];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

base currency might not be part of this.currencies, or? I just try to understand why the ? : is required

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the instance has no transactions and no users, it could be problematic if there is no currency at all

@dtslvr dtslvr force-pushed the feature/support-unlimited-currencies branch from 794349c to 4bc98b1 Compare September 24, 2021 18:17
@dtslvr dtslvr merged commit dcee651 into main Sep 24, 2021
@dtslvr dtslvr deleted the feature/support-unlimited-currencies branch September 24, 2021 19:09
@2e3s 2e3s mentioned this pull request Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add new currency and stocks from another country API /order 400 error on TSK symbols
2 participants