jakub-mrow / AMS-backend

0 stars 0 forks source link

Handle buying and selling stocks in different currency #71

Closed dawids21 closed 11 months ago

dawids21 commented 12 months ago

Add fields to StockTransaction:

The new fields have no effect on the StockBalance view.

The new fields are optional which means that if we won't provide them we assume that pay_currency = stock currency and exchange_rate = 1.

When adding the corresponding AccountTransaction we should set the currency to pay_currency and the amount to quantity price exchange_rate

Waiting for: