Module tcmb_evds::evds_currency
source · [−]Expand description
provides only currency operations with methods of CurrencySeries
and MultipleCurrencySeries
.
This module built on two main structures and their methods operating currency services. The basic difference between
these structures is number of currency types. CurrencySeries
serves
methods using a currency type. In contrast, MultipleCurrencySeries
serves a method using more than a currency type to get currencies data.
CurrencySeries
is composed of CurrencyCode
, ExchangeType
, DatePreference
and ytl_mode
to supply
adequate information to make requesting data about a currency via related operational methods.
MultipleCurrencySeries
is composed of CurrencyCodes
, ExchangeType
, DatePreference
and ytl_mode
to
supply adequate information to make requesting data about given currencies via an operational method.
Usage schematic of operational functions and hierarchy of this module
-
CurrencySeries
->get_data
(Evds
) orget_advanced_data
(Evds
,AdvancedProcesses
)CurrencySeries
requires below struct as a difference -
MultipleCurrencySeries
->get_multiple_data
(Evds
)MultipleCurrencySeries
requires below struct as a difference:
Both CurrencySeries
and MultipleCurrencySeries
requires common structures and a variable
ExchangeType
DatePreference
ytl_mode: bool
Generic view of operational methods
To use the operational methods, the related structures for the required operation should be built firstly. Then,
the methods can be used with the common structure that is Evds
.
More details of operational functions and their usage are included in their stages.
Modules
contains advanced currency operation requirements that are aggregation type, formula and data frequency included in
AdvancedProcesses
.
Structs
supplies currency codes to generate multiple currency series for
MultipleCurrencySeries
.
supplies reliable and well structured required details about currency and date/s to the functions making single
currency operations such as get_data
and
get_advanced_data
.
contains exchange types, which are selling and buying, to configure currency request.
supplies reliable and well structured required details about multiple currencies and date/s to the functions
making multiple currency operations such as
get_multiple_data
.
Enums
supplies currency code option to the functions making single currency request.