Class: BankOfThailand::ImpliedRate
- Defined in:
- lib/bank_of_thailand/resources/implied_rate.rb
Overview
Thai Baht Implied Interest Rates resource
This resource provides access to Thai Baht implied interest rates derived from the swap market.
Constant Summary collapse
- BASE_URL =
"https://gateway.api.bot.or.th/Stat-ThaiBahtImpliedInterestRate/v2/THB_IMPL_INT_RATE"
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#rates(start_period:, end_period:, rate_type: nil) ⇒ Hash
Get Thai Baht implied interest rates.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from BankOfThailand::Resource
Instance Method Details
#rates(start_period:, end_period:, rate_type: nil) ⇒ Hash
Get Thai Baht implied interest rates
26 27 28 29 30 31 |
# File 'lib/bank_of_thailand/resources/implied_rate.rb', line 26 def rates(start_period:, end_period:, rate_type: nil) params = { start_period: start_period, end_period: end_period } params[:rate_type] = rate_type if rate_type get_with_base_url("/", params) end |