Class: BankOfThailand::SwapPoint
- Defined in:
- lib/bank_of_thailand/resources/swap_point.rb
Overview
Swap Point - Onshore resource
This resource provides access to swap point data for onshore transactions in Thailand.
Constant Summary collapse
- BASE_URL =
"https://gateway.api.bot.or.th/Stat-SwapPoint/v2/SWAPPOINT"
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#rates(start_period:, end_period:, term_type: nil) ⇒ Hash
Get swap point onshore rates.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from BankOfThailand::Resource
Instance Method Details
#rates(start_period:, end_period:, term_type: nil) ⇒ Hash
Get swap point onshore rates
25 26 27 28 29 30 |
# File 'lib/bank_of_thailand/resources/swap_point.rb', line 25 def rates(start_period:, end_period:, term_type: nil) params = { start_period: start_period, end_period: end_period } params[:term_type] = term_type if term_type get_with_base_url("/", params) end |