Currency
Currency definitions that are based on the ISO4217.
ISO4217 ¶
Currency ¶
Bases: str
Currency parses currency subset of the ISO 4217 format. It excludes bonds testing codes and precious metals.
from pydantic import BaseModel
from pydantic_extra_types.currency_code import Currency
class currency(BaseModel):
alpha_3: Currency
cur = currency(alpha_3='AED')
print(cur)
# > alpha_3='AED'