bank_of_thailand 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +8 -0
- data/CHANGELOG.md +15 -0
- data/LICENSE.txt +21 -0
- data/README.md +293 -0
- data/Rakefile +12 -0
- data/docs/openapi_spec/average-exchange-rate-thb--foreign-currency-2_0_2.json +778 -0
- data/docs/openapi_spec/botlicensecheckapi-1_0_2.json +122 -0
- data/docs/openapi_spec/debt-securities-auction-result-current-2_0_0.json +201 -0
- data/docs/openapi_spec/debt-securities-auction-result-current_2.0.0.json +201 -0
- data/docs/openapi_spec/deposit-interest-rates-for-individuals-of-commercial-banks-percent-per-annum-2_0_0.json +354 -0
- data/docs/openapi_spec/financial-institutions-holidays-1_0_1.json +98 -0
- data/docs/openapi_spec/interbank-transaction-rates-percent-per-annum-2_0_0.json +224 -0
- data/docs/openapi_spec/loan-interest-rates-of-commercial-banks-percent-per-annum-2_0_0.json +335 -0
- data/docs/openapi_spec/search-series_1.0.0.json +177 -0
- data/docs/openapi_spec/swap-point-onshore-in-satangs-2_0_0.json +196 -0
- data/docs/openapi_spec/thai-baht-implied-interest-rates-percent-per-annum-2_0_0.json +182 -0
- data/docs/openapi_spec/weighted-average-interbank-exchange-rate-thb--usd-2_0_1.json +546 -0
- data/lib/bank_of_thailand/client.rb +188 -0
- data/lib/bank_of_thailand/configuration.rb +88 -0
- data/lib/bank_of_thailand/errors.rb +46 -0
- data/lib/bank_of_thailand/resource.rb +34 -0
- data/lib/bank_of_thailand/resources/average_exchange_rate.rb +81 -0
- data/lib/bank_of_thailand/resources/deposit_rate.rb +46 -0
- data/lib/bank_of_thailand/resources/exchange_rate.rb +103 -0
- data/lib/bank_of_thailand/resources/financial_holidays.rb +30 -0
- data/lib/bank_of_thailand/resources/implied_rate.rb +39 -0
- data/lib/bank_of_thailand/resources/interbank_rate.rb +39 -0
- data/lib/bank_of_thailand/resources/interest_rate.rb +49 -0
- data/lib/bank_of_thailand/resources/loan_rate.rb +45 -0
- data/lib/bank_of_thailand/resources/search_series.rb +37 -0
- data/lib/bank_of_thailand/resources/statistics.rb +80 -0
- data/lib/bank_of_thailand/resources/swap_point.rb +38 -0
- data/lib/bank_of_thailand/version.rb +5 -0
- data/lib/bank_of_thailand.rb +56 -0
- data/sig/bank_of_thailand.rbs +4 -0
- metadata +211 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.1",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Swap point - Onshore (in Satangs)",
|
|
5
|
+
"description": "Swap Point Onshore (in Satangs) refers to the difference between the spot and forward exchange rates available at the period of 1, 3 and 6 months. <br>\nLag time : -- <br>\nRelease schedule : End of every business day at 6.00 p.m. <br> \nSource of data : <br>\n1. Bank of Thailand\n2. Reuters <br>\nMore detail [CLICK](https://app.bot.or.th/BTWS_STAT/statistics/DownloadFile.aspx?file=FM_RT_006_ENG.PDF)",
|
|
6
|
+
"version": "2.0.0",
|
|
7
|
+
"x-ibm-name": "swap-point-onshore-in-satangs"
|
|
8
|
+
},
|
|
9
|
+
"servers": [
|
|
10
|
+
{
|
|
11
|
+
"url": "https://gateway.api.bot.or.th/Stat-SwapPoint/v2/SWAPPOINT"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"security": [
|
|
15
|
+
{
|
|
16
|
+
"clientIdHeader": []
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"paths": {
|
|
20
|
+
"/": {
|
|
21
|
+
"get": {
|
|
22
|
+
"parameters": [
|
|
23
|
+
{
|
|
24
|
+
"name": "start_period",
|
|
25
|
+
"in": "query",
|
|
26
|
+
"description": "Start Period Date (YYYY-MM-DD) EX. 2017-06-30",
|
|
27
|
+
"required": true,
|
|
28
|
+
"schema": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "end_period",
|
|
34
|
+
"in": "query",
|
|
35
|
+
"description": "End Preiod Date (YYYY-MM-DD) EX. 2017-06-30",
|
|
36
|
+
"required": true,
|
|
37
|
+
"schema": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "term_type",
|
|
43
|
+
"in": "query",
|
|
44
|
+
"description": "Term type",
|
|
45
|
+
"schema": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"responses": {
|
|
51
|
+
"200": {
|
|
52
|
+
"description": "200 OK",
|
|
53
|
+
"content": {
|
|
54
|
+
"application/json": {
|
|
55
|
+
"schema": {
|
|
56
|
+
"$ref": "#/components/schemas/Response%20Parameters"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"components": {
|
|
66
|
+
"schemas": {
|
|
67
|
+
"Response Parameters": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"properties": {
|
|
70
|
+
"result": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"properties": {
|
|
73
|
+
"api": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"example": "Swap point - Onshore (in Satangs)"
|
|
76
|
+
},
|
|
77
|
+
"timestamp": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"example": "2017-07-24 16:36:12"
|
|
80
|
+
},
|
|
81
|
+
"data": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"properties": {
|
|
84
|
+
"data_header": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"properties": {
|
|
87
|
+
"report_name_eng": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"example": "Spot Rate and Swap Point"
|
|
90
|
+
},
|
|
91
|
+
"report_name_th": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"example": "Spot Rate and Swap Point"
|
|
94
|
+
},
|
|
95
|
+
"report_uoq_name_eng": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"example": ""
|
|
98
|
+
},
|
|
99
|
+
"report_uoq_name_th": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"example": ""
|
|
102
|
+
},
|
|
103
|
+
"report_source_of_data": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"properties": {
|
|
106
|
+
"source_of_data_eng": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"source_of_data_th": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"example": [
|
|
114
|
+
{
|
|
115
|
+
"source_of_data_eng": "Reuters",
|
|
116
|
+
"source_of_data_th": "รอยเตอร์"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"source_of_data_eng": "Bank of Thailand",
|
|
120
|
+
"source_of_data_th": "ธนาคารแห่งประเทศไทย"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"report_remark": {
|
|
125
|
+
"type": "object",
|
|
126
|
+
"properties": {
|
|
127
|
+
"report_remark_eng": {
|
|
128
|
+
"type": "string"
|
|
129
|
+
},
|
|
130
|
+
"report_remark_th": {
|
|
131
|
+
"type": "string"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"example": [
|
|
135
|
+
{
|
|
136
|
+
"report_remark_eng": "Forward exchange rate can be derived from the addition of spot rate and swap point.",
|
|
137
|
+
"report_remark_th": "อัตราแลกเปลี่ยนล่วงหน้าคำนวณได้จากอัตราแลกเปลี่ยนทันที และ SWAP POINT"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"report_remark_eng": "1 Satang = 0.01 Baht.",
|
|
141
|
+
"report_remark_th": "1 สตางค์ = 0.01 บาท "
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
"last_updated": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"example": "2017-07-21"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"data_detail": {
|
|
152
|
+
"type": "array",
|
|
153
|
+
"items": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"properties": {
|
|
156
|
+
"period": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"example": "2017-05-03"
|
|
159
|
+
},
|
|
160
|
+
"term_type_name_th": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"example": "1 Month"
|
|
163
|
+
},
|
|
164
|
+
"term_type_name_eng": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"example": "1 Month"
|
|
167
|
+
},
|
|
168
|
+
"bid_rate": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"example": "0.6500000"
|
|
171
|
+
},
|
|
172
|
+
"offer_rate": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"example": "0.8000000"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"description": ""
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"securitySchemes": {
|
|
188
|
+
"clientIdHeader": {
|
|
189
|
+
"type": "apiKey",
|
|
190
|
+
"name": "Authorization",
|
|
191
|
+
"in": "header"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"x-original-swagger-version": "2.0"
|
|
196
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.1",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Thai Baht Implied Interest Rates (Percent per annum)",
|
|
5
|
+
"description": "Thai baht Implied Interest Rates refer to interest rate quoted for Baht borrowing through swap market from which the Bank of Thailand disseminates. The rates are those pertaining to domestic market where all transactions are either interbank or between commercial banks and their clients, and interest rates pertaining to foreign markets, which reflect transactions between commercial\nbanks and Non-resident clients. <br>\nFrequency : Daily <br>\nLag time : 1 business; day <br>\nRelease schedule : Every business day at 11.00 a.m. <br>\nSource of data : Bank of Thailand <br>\nMore detail [CLICK](https://app.bot.or.th/BTWS_STAT/statistics/DownloadFile.aspx?file=FM_RT_003_ENG.PDF)",
|
|
6
|
+
"version": "2.0.0",
|
|
7
|
+
"x-ibm-name": "thai-baht-implied-interest-rates-percent-per-annum"
|
|
8
|
+
},
|
|
9
|
+
"servers": [
|
|
10
|
+
{
|
|
11
|
+
"url": "https://gateway.api.bot.or.th/Stat-ThaiBahtImpliedInterestRate/v2/THB_IMPL_INT_RATE"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"security": [
|
|
15
|
+
{
|
|
16
|
+
"clientIdHeader": []
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"paths": {
|
|
20
|
+
"/": {
|
|
21
|
+
"get": {
|
|
22
|
+
"parameters": [
|
|
23
|
+
{
|
|
24
|
+
"name": "start_period",
|
|
25
|
+
"in": "query",
|
|
26
|
+
"description": "Start Period Date (YYYY-MM-DD) EX. 2017-06-30",
|
|
27
|
+
"required": true,
|
|
28
|
+
"schema": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "end_period",
|
|
34
|
+
"in": "query",
|
|
35
|
+
"description": "End Preiod Date (YYYY-MM-DD) EX. 2017-06-30",
|
|
36
|
+
"required": true,
|
|
37
|
+
"schema": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "rate_type",
|
|
43
|
+
"in": "query",
|
|
44
|
+
"description": "RateType EX. ONSHORE : T/N",
|
|
45
|
+
"schema": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"responses": {
|
|
51
|
+
"200": {
|
|
52
|
+
"description": "200 OK",
|
|
53
|
+
"content": {
|
|
54
|
+
"application/json": {
|
|
55
|
+
"schema": {
|
|
56
|
+
"$ref": "#/components/schemas/Response%20Parameters"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"components": {
|
|
66
|
+
"schemas": {
|
|
67
|
+
"Response Parameters": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"properties": {
|
|
70
|
+
"result": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"properties": {
|
|
73
|
+
"api": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"example": "Thai Baht Implied Interest Rates (Percent per annum)"
|
|
76
|
+
},
|
|
77
|
+
"timestamp": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"example": "2017-07-24 16:34:00"
|
|
80
|
+
},
|
|
81
|
+
"data": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"properties": {
|
|
84
|
+
"data_header": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"properties": {
|
|
87
|
+
"report_name_eng": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"example": "Thai Baht Implied Interest Rates"
|
|
90
|
+
},
|
|
91
|
+
"report_name_th": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"example": "Thai Baht Implied Interest Rates"
|
|
94
|
+
},
|
|
95
|
+
"report_uoq_name_eng": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"example": "(Percent per annum)"
|
|
98
|
+
},
|
|
99
|
+
"report_uoq_name_th": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"example": "(อัตราร้อยละต่อปี)"
|
|
102
|
+
},
|
|
103
|
+
"report_source_of_data": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"items": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"properties": {
|
|
108
|
+
"source_of_data_eng": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"example": "Bank of Thailand"
|
|
111
|
+
},
|
|
112
|
+
"source_of_data_th": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"example": "ธนาคารแห่งประเทศไทย"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"report_remark": {
|
|
120
|
+
"type": "array",
|
|
121
|
+
"items": {
|
|
122
|
+
"type": "object",
|
|
123
|
+
"properties": {
|
|
124
|
+
"report_remark_eng": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"example": "Calculated from THB premium in various tenors from outside source (Reuters) at market closing."
|
|
127
|
+
},
|
|
128
|
+
"report_remark_th": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"example": "คำนวณ Thai Baht Implied Interest Rates จาก Swap Point ตามระยะเวลาต่าง ๆ ของราคาปิดในแต่ละตลาด จากแหล่งข้อมูล Reuters"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"last_updated": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"example": "2017-07-24"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"data_detail": {
|
|
142
|
+
"type": "array",
|
|
143
|
+
"items": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"properties": {
|
|
146
|
+
"period": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"example": "2017-05-03"
|
|
149
|
+
},
|
|
150
|
+
"rate_type_name_th": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"example": "ONSHORE : T/N"
|
|
153
|
+
},
|
|
154
|
+
"rate_type_name_eng": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"example": "ONSHORE : T/N"
|
|
157
|
+
},
|
|
158
|
+
"interest_rate": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"example": "1.35000"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"description": ""
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"securitySchemes": {
|
|
174
|
+
"clientIdHeader": {
|
|
175
|
+
"type": "apiKey",
|
|
176
|
+
"name": "Authorization",
|
|
177
|
+
"in": "header"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"x-original-swagger-version": "2.0"
|
|
182
|
+
}
|