implement money amount
This commit is contained in:
parent
e4d355c00c
commit
33487521a7
2 changed files with 42 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import pathlib
|
||||
from dataclasses import dataclass
|
||||
from decimal import Decimal
|
||||
|
||||
from money.currency import Currency
|
||||
|
||||
|
|
@ -7,6 +8,8 @@ from xexe.rate_fetching import MockRateFetcher, XERateFetcher
|
|||
|
||||
DEFAULT_CURRENCIES = {Currency("EUR"), Currency("GBP"), Currency("USD")}
|
||||
|
||||
DEFAULT_MAX_DECIMALS = Decimal("0.00000001")
|
||||
|
||||
RATES_SOURCES = {"mock": MockRateFetcher, "xe": XERateFetcher}
|
||||
|
||||
DWH_SCHEMA = "sync_xedotcom_currency_rates"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue