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,546 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.1",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Weighted-average Interbank Exchange Rate - THB / USD",
|
|
5
|
+
"version": "2.0.1",
|
|
6
|
+
"x-ibm-name": "weighted-average-interbank-exchange-rate-thb--usd"
|
|
7
|
+
},
|
|
8
|
+
"servers": [
|
|
9
|
+
{
|
|
10
|
+
"url": "https://gateway.api.bot.or.th/Stat-ReferenceRate/v2"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"security": [
|
|
14
|
+
{
|
|
15
|
+
"clientIdHeader": []
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"tags": [],
|
|
19
|
+
"paths": {
|
|
20
|
+
"/DAILY_REF_RATE/": {
|
|
21
|
+
"get": {
|
|
22
|
+
"description": "Daily Weighted-average Interbank Exchange Rate - THB / USD <br> <br> Data is calculated from Daily Intebank Purchases and Sales of US Dollar (against THB) of the transaction worth more than or equal to 1 million USD. The Exchange Rates are calculated using weighted-average between the trading volume and the exchange rate specified. <br> Frequency : Daily <br> Lag time : -- <br> Release schedule : Every business day at 6.00 p.m. (BKK-GMT+07:00) <br> Source of data : <br> 1. Commercial Banks registered in Thailand <br> 2. Foreign Bank Branches <br> 3. Special-purpose Financial Institutions <br> More detail [CLICK](https://app.bot.or.th/BTWS_STAT/statistics/DownloadFile.aspx?file=FM_FX_001_S3_ENG.PDF)",
|
|
23
|
+
"parameters": [
|
|
24
|
+
{
|
|
25
|
+
"name": "start_period",
|
|
26
|
+
"in": "query",
|
|
27
|
+
"description": "Start Period Date (YYYY-MM-DD) EX. 2017-06-30",
|
|
28
|
+
"required": true,
|
|
29
|
+
"schema": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "end_period",
|
|
35
|
+
"in": "query",
|
|
36
|
+
"description": "End Preiod Date (YYYY-MM-DD) EX. 2017-06-30",
|
|
37
|
+
"required": true,
|
|
38
|
+
"schema": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"responses": {
|
|
44
|
+
"200": {
|
|
45
|
+
"description": "200 OK",
|
|
46
|
+
"content": {
|
|
47
|
+
"application/json": {
|
|
48
|
+
"schema": {
|
|
49
|
+
"$ref": "#/components/schemas/Daily%20Response%20Parameters"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"/MONTHLY_REF_RATE/": {
|
|
58
|
+
"get": {
|
|
59
|
+
"description": "Monthly Weighted-average Interbank Exchange Rate - THB / USD <br> <br> Data is averaged from Daily Weighted-average Interbank Exchange Rate, calculated from Daily Interbank Purchases and Sales of US Dollar (against THB) of the transaction worth more than or equal to 1 million USD. The Exchange Rates are calculated using weighted-average between the trading volume and the exchange rate specified. <br> Frequency : Monthly <br> Lag time : -- <br> Release schedule : End of business day of Month at 6.00 p.m. (BKK-GMT+07:00) <br> Source of data : <br> 1. Commercial Banks registered in Thailand <br> 2. Foreign Bank Branches <br> 3. Special-purpose Financial Institutions <br> More detail [CLICK](https://app.bot.or.th/BTWS_STAT/statistics/DownloadFile.aspx?file=FM_FX_001_S3_ENG.PDF)",
|
|
60
|
+
"parameters": [
|
|
61
|
+
{
|
|
62
|
+
"name": "start_period",
|
|
63
|
+
"in": "query",
|
|
64
|
+
"description": "Start Period Date (YYYY-MM) EX. 2017-06",
|
|
65
|
+
"required": true,
|
|
66
|
+
"schema": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "end_period",
|
|
72
|
+
"in": "query",
|
|
73
|
+
"description": "End Period Date (YYYY-MM) EX. 2017-06",
|
|
74
|
+
"required": true,
|
|
75
|
+
"schema": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"responses": {
|
|
81
|
+
"200": {
|
|
82
|
+
"description": "200 OK",
|
|
83
|
+
"content": {
|
|
84
|
+
"application/json": {
|
|
85
|
+
"schema": {
|
|
86
|
+
"$ref": "#/components/schemas/Monthly%20Response%20Parameters"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"/QUARTERLY_REF_RATE/": {
|
|
95
|
+
"get": {
|
|
96
|
+
"description": "Quarterly Weighted-average Interbank Exchange Rate - THB / USD <br> <br> Data is averaged from Monthly Weighted-average Interbank Exchange Rate, calculated from Daily Interbank Purchases and Sales of US Dollar (against THB) of the transaction worth more than or equal to 1 million USD. The Exchange Rates are calculated using weighted-average between the trading volume and the exchange rate specified. <br> Frequency : Quarterly <br> Lag time : -- <br> Release schedule : End of business day of Quarter at 6.00 p.m. (BKK-GMT+07:00) <br> Source of data : <br> 1. Commercial Banks registered in Thailand <br> 2. Foreign Bank Branches <br> 3. Special-purpose Financial Institutions <br> More detail [CLICK](https://app.bot.or.th/BTWS_STAT/statistics/DownloadFile.aspx?file=FM_FX_001_S3_ENG.PDF)",
|
|
97
|
+
"parameters": [
|
|
98
|
+
{
|
|
99
|
+
"name": "start_period",
|
|
100
|
+
"in": "query",
|
|
101
|
+
"description": "Start Period Date (YYYY-QN) EX. 2017-Q1",
|
|
102
|
+
"required": true,
|
|
103
|
+
"schema": {
|
|
104
|
+
"type": "string"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "end_period",
|
|
109
|
+
"in": "query",
|
|
110
|
+
"description": "End Preiod Date (YYYY-QN) EX. 2017-Q1",
|
|
111
|
+
"required": true,
|
|
112
|
+
"schema": {
|
|
113
|
+
"type": "string"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"responses": {
|
|
118
|
+
"200": {
|
|
119
|
+
"description": "200 OK",
|
|
120
|
+
"content": {
|
|
121
|
+
"application/json": {
|
|
122
|
+
"schema": {
|
|
123
|
+
"$ref": "#/components/schemas/Quarterly%20Response%20Parameters"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"/ANNUAL_REF_RATE/": {
|
|
132
|
+
"get": {
|
|
133
|
+
"description": "Annual Weighted-average Interbank Exchange Rate - THB / USD <br> <br> Data is averaged from Quarterly Weighted-average Interbank Exchange Rate, calculated from Daily Interbank Purchases and Sales of US Dollar (against THB) of the transaction worth more than or equal to 1 million USD. The Exchange Rates are calculated using weighted-average between the trading volume and the exchange rate specified. <br> Frequency : Annual <br> Lag time : -- <br> Release schedule : End of business day of Annual at 6.00 p.m. (BKK-GMT+07:00) <br> Source of data : <br> 1. Commercial Banks registered in Thailand <br> 2. Foreign Bank Branches <br> 3. Special-purpose Financial Institutions <br> More detail [CLICK](https://app.bot.or.th/BTWS_STAT/statistics/DownloadFile.aspx?file=FM_FX_001_S3_ENG.PDF)",
|
|
134
|
+
"parameters": [
|
|
135
|
+
{
|
|
136
|
+
"name": "start_period",
|
|
137
|
+
"in": "query",
|
|
138
|
+
"description": "Start Period Date (YYYY) EX. 2017",
|
|
139
|
+
"required": true,
|
|
140
|
+
"schema": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "end_period",
|
|
146
|
+
"in": "query",
|
|
147
|
+
"description": "End Preiod Date (YYYY) EX. 2017",
|
|
148
|
+
"required": true,
|
|
149
|
+
"schema": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"responses": {
|
|
155
|
+
"200": {
|
|
156
|
+
"description": "200 OK",
|
|
157
|
+
"content": {
|
|
158
|
+
"application/json": {
|
|
159
|
+
"schema": {
|
|
160
|
+
"$ref": "#/components/schemas/Annual%20Response%20Parameter"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"components": {
|
|
170
|
+
"schemas": {
|
|
171
|
+
"Daily Response Parameters": {
|
|
172
|
+
"type": "object",
|
|
173
|
+
"properties": {
|
|
174
|
+
"result": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"properties": {
|
|
177
|
+
"api": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"example": "Daily Weighted-average Interbank Exchange Rate - THB / USD"
|
|
180
|
+
},
|
|
181
|
+
"timestamp": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"example": "2017-07-07 17:14:28"
|
|
184
|
+
},
|
|
185
|
+
"data": {
|
|
186
|
+
"type": "object",
|
|
187
|
+
"properties": {
|
|
188
|
+
"data_header": {
|
|
189
|
+
"type": "object",
|
|
190
|
+
"properties": {
|
|
191
|
+
"report_name_eng": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"example": "Rates of Exchange of Commercial Banks in Bangkok Metropolis (2002-present)"
|
|
194
|
+
},
|
|
195
|
+
"report_name_th": {
|
|
196
|
+
"type": "string",
|
|
197
|
+
"example": "อัตราแลกเปลี่ยนเฉลี่ยของธนาคารพาณิชย์ในกรุงเทพมหานคร (2545-ปัจจุบัน)"
|
|
198
|
+
},
|
|
199
|
+
"report_uoq_name_eng": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"example": "(Unit : Baht / 1 Unit of Foreign Currency)"
|
|
202
|
+
},
|
|
203
|
+
"report_uoq_name_th": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"example": "(หน่วย : บาท ต่อ 1 หน่วยเงินตราต่างประเทศ)"
|
|
206
|
+
},
|
|
207
|
+
"report_source_of_data": {
|
|
208
|
+
"type": "array",
|
|
209
|
+
"items": {
|
|
210
|
+
"type": "object",
|
|
211
|
+
"properties": {
|
|
212
|
+
"source_of_data_eng": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"example": "Bank of Thailand"
|
|
215
|
+
},
|
|
216
|
+
"source_of_data_th": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"example": "ธนาคารแห่งประเทศไทย"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"report_remark": {
|
|
224
|
+
"type": "array",
|
|
225
|
+
"example": ""
|
|
226
|
+
},
|
|
227
|
+
"last_updated": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"example": "2017-06-13"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"data_detail": {
|
|
234
|
+
"type": "object",
|
|
235
|
+
"properties": {
|
|
236
|
+
"period": {
|
|
237
|
+
"type": "string"
|
|
238
|
+
},
|
|
239
|
+
"rate": {
|
|
240
|
+
"type": "string"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"example": [
|
|
244
|
+
{
|
|
245
|
+
"period": "2002-01-15",
|
|
246
|
+
"rate": "43.9200000"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"period": "2002-01-14",
|
|
250
|
+
"rate": "43.9230000"
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"description": ""
|
|
260
|
+
},
|
|
261
|
+
"Monthly Response Parameters": {
|
|
262
|
+
"type": "object",
|
|
263
|
+
"properties": {
|
|
264
|
+
"result": {
|
|
265
|
+
"type": "object",
|
|
266
|
+
"properties": {
|
|
267
|
+
"api": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"example": "Monthly Weighted-average Interbank Exchange Rate - THB / USD"
|
|
270
|
+
},
|
|
271
|
+
"timestamp": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"example": "2017-07-07 17:26:37"
|
|
274
|
+
},
|
|
275
|
+
"data": {
|
|
276
|
+
"type": "object",
|
|
277
|
+
"properties": {
|
|
278
|
+
"data_header": {
|
|
279
|
+
"type": "object",
|
|
280
|
+
"properties": {
|
|
281
|
+
"report_name_eng": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"example": "Rates of Exchange of Commercial Banks in Bangkok Metropolis (2002-present)"
|
|
284
|
+
},
|
|
285
|
+
"report_name_th": {
|
|
286
|
+
"type": "string",
|
|
287
|
+
"example": "อัตราแลกเปลี่ยนเฉลี่ยของธนาคารพาณิชย์ในกรุงเทพมหานคร (2545-ปัจจุบัน)"
|
|
288
|
+
},
|
|
289
|
+
"report_uoq_name_eng": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"example": "(Unit : Baht / 1 Unit of Foreign Currency)"
|
|
292
|
+
},
|
|
293
|
+
"report_uoq_name_th": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"example": "(หน่วย : บาท ต่อ 1 หน่วยเงินตราต่างประเทศ)"
|
|
296
|
+
},
|
|
297
|
+
"report_source_of_data": {
|
|
298
|
+
"type": "array",
|
|
299
|
+
"items": {
|
|
300
|
+
"type": "object",
|
|
301
|
+
"properties": {
|
|
302
|
+
"source_of_data_eng": {
|
|
303
|
+
"type": "string",
|
|
304
|
+
"example": "Bank of Thailand"
|
|
305
|
+
},
|
|
306
|
+
"source_of_data_th": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"example": "ธนาคารแห่งประเทศไทย"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"report_remark": {
|
|
314
|
+
"type": "array",
|
|
315
|
+
"example": ""
|
|
316
|
+
},
|
|
317
|
+
"last_updated": {
|
|
318
|
+
"type": "string",
|
|
319
|
+
"example": "2017-06-13"
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"data_detail": {
|
|
324
|
+
"type": "array",
|
|
325
|
+
"items": {
|
|
326
|
+
"type": "object",
|
|
327
|
+
"properties": {
|
|
328
|
+
"period": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"example": "2002-01"
|
|
331
|
+
},
|
|
332
|
+
"rate": {
|
|
333
|
+
"type": "string",
|
|
334
|
+
"example": "44.0215000"
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"description": ""
|
|
345
|
+
},
|
|
346
|
+
"Quarterly Response Parameters": {
|
|
347
|
+
"type": "object",
|
|
348
|
+
"properties": {
|
|
349
|
+
"result": {
|
|
350
|
+
"type": "object",
|
|
351
|
+
"properties": {
|
|
352
|
+
"api": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"example": "Quarterly Weighted-average Interbank Exchange Rate - THB / USD"
|
|
355
|
+
},
|
|
356
|
+
"timestamp": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"example": "2017-07-07 17:27:16"
|
|
359
|
+
},
|
|
360
|
+
"data": {
|
|
361
|
+
"type": "object",
|
|
362
|
+
"properties": {
|
|
363
|
+
"data_header": {
|
|
364
|
+
"type": "object",
|
|
365
|
+
"properties": {
|
|
366
|
+
"report_name_eng": {
|
|
367
|
+
"type": "string",
|
|
368
|
+
"example": "Rates of Exchange of Commercial Banks in Bangkok Metropolis (2002-present)"
|
|
369
|
+
},
|
|
370
|
+
"report_name_th": {
|
|
371
|
+
"type": "string",
|
|
372
|
+
"example": "อัตราแลกเปลี่ยนเฉลี่ยของธนาคารพาณิชย์ในกรุงเทพมหานคร (2545-ปัจจุบัน)"
|
|
373
|
+
},
|
|
374
|
+
"report_uoq_name_eng": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"example": "(Unit : Baht / 1 Unit of Foreign Currency)"
|
|
377
|
+
},
|
|
378
|
+
"report_uoq_name_th": {
|
|
379
|
+
"type": "string",
|
|
380
|
+
"example": "(หน่วย : บาท ต่อ 1 หน่วยเงินตราต่างประเทศ)"
|
|
381
|
+
},
|
|
382
|
+
"report_source_of_data": {
|
|
383
|
+
"type": "array",
|
|
384
|
+
"items": {
|
|
385
|
+
"type": "object",
|
|
386
|
+
"properties": {
|
|
387
|
+
"source_of_data_eng": {
|
|
388
|
+
"type": "string",
|
|
389
|
+
"example": "Bank of Thailand"
|
|
390
|
+
},
|
|
391
|
+
"source_of_data_th": {
|
|
392
|
+
"type": "string",
|
|
393
|
+
"example": "ธนาคารแห่งประเทศไทย"
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"report_remark": {
|
|
399
|
+
"type": "array",
|
|
400
|
+
"example": ""
|
|
401
|
+
},
|
|
402
|
+
"last_updated": {
|
|
403
|
+
"type": "string",
|
|
404
|
+
"example": "2017-06-13"
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"data_detail": {
|
|
409
|
+
"type": "array",
|
|
410
|
+
"items": {
|
|
411
|
+
"type": "object",
|
|
412
|
+
"properties": {
|
|
413
|
+
"period": {
|
|
414
|
+
"type": "string",
|
|
415
|
+
"example": "2002-Q1"
|
|
416
|
+
},
|
|
417
|
+
"rate": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"example": "43.7432000"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"description": ""
|
|
430
|
+
},
|
|
431
|
+
"Annual Response Parameter": {
|
|
432
|
+
"type": "object",
|
|
433
|
+
"properties": {
|
|
434
|
+
"result": {
|
|
435
|
+
"type": "object",
|
|
436
|
+
"properties": {
|
|
437
|
+
"api": {
|
|
438
|
+
"type": "string",
|
|
439
|
+
"example": "Annual Weighted-average Interbank Exchange Rate - THB / USD"
|
|
440
|
+
},
|
|
441
|
+
"timestamp": {
|
|
442
|
+
"type": "string",
|
|
443
|
+
"example": "2017-07-07 17:27:48"
|
|
444
|
+
},
|
|
445
|
+
"data": {
|
|
446
|
+
"type": "object",
|
|
447
|
+
"properties": {
|
|
448
|
+
"data_header": {
|
|
449
|
+
"type": "object",
|
|
450
|
+
"properties": {
|
|
451
|
+
"report_name_eng": {
|
|
452
|
+
"type": "string",
|
|
453
|
+
"example": "Rates of Exchange of Commercial Banks in Bangkok Metropolis (2002-present)"
|
|
454
|
+
},
|
|
455
|
+
"report_name_th": {
|
|
456
|
+
"type": "string",
|
|
457
|
+
"example": "อัตราแลกเปลี่ยนเฉลี่ยของธนาคารพาณิชย์ในกรุงเทพมหานคร (2545-ปัจจุบัน)"
|
|
458
|
+
},
|
|
459
|
+
"report_uoq_name_eng": {
|
|
460
|
+
"type": "string",
|
|
461
|
+
"example": "(Unit : Baht / 1 Unit of Foreign Currency)"
|
|
462
|
+
},
|
|
463
|
+
"report_uoq_name_th": {
|
|
464
|
+
"type": "string",
|
|
465
|
+
"example": "(หน่วย : บาท ต่อ 1 หน่วยเงินตราต่างประเทศ)"
|
|
466
|
+
},
|
|
467
|
+
"report_source_of_data": {
|
|
468
|
+
"type": "array",
|
|
469
|
+
"items": {
|
|
470
|
+
"type": "object",
|
|
471
|
+
"properties": {
|
|
472
|
+
"source_of_data_eng": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"example": "Bank of Thailand"
|
|
475
|
+
},
|
|
476
|
+
"source_of_data_th": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"example": "ธนาคารแห่งประเทศไทย"
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
"report_remark": {
|
|
484
|
+
"type": "array",
|
|
485
|
+
"example": ""
|
|
486
|
+
},
|
|
487
|
+
"last_updated": {
|
|
488
|
+
"type": "string",
|
|
489
|
+
"example": "2017-06-13"
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
"data_detail": {
|
|
494
|
+
"type": "array",
|
|
495
|
+
"items": {
|
|
496
|
+
"type": "object",
|
|
497
|
+
"properties": {
|
|
498
|
+
"period": {
|
|
499
|
+
"type": "string",
|
|
500
|
+
"example": "2002"
|
|
501
|
+
},
|
|
502
|
+
"rate": {
|
|
503
|
+
"type": "string",
|
|
504
|
+
"example": "43.0041000"
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
"description": ""
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"parameters": {
|
|
518
|
+
"start_period": {
|
|
519
|
+
"name": "start_period",
|
|
520
|
+
"in": "query",
|
|
521
|
+
"description": "Start Period Date (YYYY-QN) EX. 2017-Q1",
|
|
522
|
+
"required": true,
|
|
523
|
+
"schema": {
|
|
524
|
+
"type": "string"
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
"end_period": {
|
|
528
|
+
"name": "end_period",
|
|
529
|
+
"in": "query",
|
|
530
|
+
"description": "End Preiod Date (YYYY-QN) EX. 2017-Q1",
|
|
531
|
+
"required": true,
|
|
532
|
+
"schema": {
|
|
533
|
+
"type": "string"
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
"securitySchemes": {
|
|
538
|
+
"clientIdHeader": {
|
|
539
|
+
"type": "apiKey",
|
|
540
|
+
"name": "Authorization",
|
|
541
|
+
"in": "header"
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
"x-original-swagger-version": "2.0"
|
|
546
|
+
}
|