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,778 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.1",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Average Exchange Rate - THB / Foreign Currency",
|
|
5
|
+
"version": "2.0.2",
|
|
6
|
+
"x-ibm-name": "average-exchange-rate-thb--foreign-currency"
|
|
7
|
+
},
|
|
8
|
+
"servers": [
|
|
9
|
+
{
|
|
10
|
+
"url": "https://gateway.api.bot.or.th/Stat-ExchangeRate/v2"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"security": [
|
|
14
|
+
{
|
|
15
|
+
"clientIdHeader": []
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"tags": [],
|
|
19
|
+
"paths": {
|
|
20
|
+
"/DAILY_AVG_EXG_RATE/": {
|
|
21
|
+
"get": {
|
|
22
|
+
"description": "Daily Average Exchange Rate - THB / Foreign Currency <br> <br> Data collected include exchange rates quoted for immediate delivery (i.e., in the spot market) between Thai Baht vis-à-vis 19 other currencies. <br> Exchange rate data are obtained from daily foreign exchange transaction reports from commercial banks in Thailand. <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
|
+
"name": "currency",
|
|
44
|
+
"in": "query",
|
|
45
|
+
"description": "Foreign Currency",
|
|
46
|
+
"schema": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"responses": {
|
|
52
|
+
"200": {
|
|
53
|
+
"description": "200 OK",
|
|
54
|
+
"content": {
|
|
55
|
+
"*/*": {
|
|
56
|
+
"schema": {
|
|
57
|
+
"$ref": "#/components/schemas/Daily%20Response%20Parameters"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"/MONTHLY_AVG_EXG_RATE/": {
|
|
66
|
+
"get": {
|
|
67
|
+
"description": "Monthly Average Exchange Rate - THB / Foreign Currency <br> <br> Data collected include exchange rates quoted for immediate delivery (i.e., in the spot market) between Thai Baht vis-à-vis 19 other currencies. <br> Exchange rate data are obtained from daily foreign exchange transaction reports from commercial banks in Thailand. <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)",
|
|
68
|
+
"parameters": [
|
|
69
|
+
{
|
|
70
|
+
"name": "start_period",
|
|
71
|
+
"in": "query",
|
|
72
|
+
"description": "Start Period Date (YYYY-MM) EX. 2017-06",
|
|
73
|
+
"required": true,
|
|
74
|
+
"schema": {
|
|
75
|
+
"type": "string"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "end_period",
|
|
80
|
+
"in": "query",
|
|
81
|
+
"description": "End Period Date (YYYY-MM) EX. 2017-06",
|
|
82
|
+
"required": true,
|
|
83
|
+
"schema": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "currency",
|
|
89
|
+
"in": "query",
|
|
90
|
+
"description": "Foreign Currency",
|
|
91
|
+
"schema": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"responses": {
|
|
97
|
+
"200": {
|
|
98
|
+
"description": "200 OK",
|
|
99
|
+
"content": {
|
|
100
|
+
"application/json": {
|
|
101
|
+
"schema": {
|
|
102
|
+
"$ref": "#/components/schemas/Monthly%20Response%20Parameters"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"/QUARTERLY_AVG_EXG_RATE/": {
|
|
111
|
+
"get": {
|
|
112
|
+
"description": "Quarterly Average Exchange Rate - THB / Foreign Currency <br> <br> Data collected include exchange rates quoted for immediate delivery (i.e., in the spot market) between Thai Baht vis-à-vis 19 other currencies. <br> Exchange rate data are calculated from monthly foreign exchange transaction reports from commercial banks in Thailand. <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)",
|
|
113
|
+
"parameters": [
|
|
114
|
+
{
|
|
115
|
+
"name": "start_period",
|
|
116
|
+
"in": "query",
|
|
117
|
+
"description": "Start Period Date (YYYY-QN) EX. 2017-Q1",
|
|
118
|
+
"required": true,
|
|
119
|
+
"schema": {
|
|
120
|
+
"type": "string"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "end_period",
|
|
125
|
+
"in": "query",
|
|
126
|
+
"description": "End Preiod Date (YYYY-QN) EX. 2017-Q1",
|
|
127
|
+
"required": true,
|
|
128
|
+
"schema": {
|
|
129
|
+
"type": "string"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "currency",
|
|
134
|
+
"in": "query",
|
|
135
|
+
"description": "Foreign Currency",
|
|
136
|
+
"schema": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"responses": {
|
|
142
|
+
"200": {
|
|
143
|
+
"description": "200 OK",
|
|
144
|
+
"content": {
|
|
145
|
+
"application/json": {
|
|
146
|
+
"schema": {
|
|
147
|
+
"$ref": "#/components/schemas/Quarterly%20Response%20Parameters"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"/ANNUAL_AVG_EXG_RATE/": {
|
|
156
|
+
"get": {
|
|
157
|
+
"description": "Annual Average Exchange Rate - THB / Foreign Currency <br> <br> Data collected include exchange rates quoted for immediate delivery (i.e., in the spot market) between Thai Baht vis-à-vis 19 other currencies. <br> Exchange rate data are calculated from quarterly foreign exchange transaction reports from commercial banks in Thailand. <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)",
|
|
158
|
+
"parameters": [
|
|
159
|
+
{
|
|
160
|
+
"name": "start_period",
|
|
161
|
+
"in": "query",
|
|
162
|
+
"description": "Start Period Date (YYYY) EX. 2017",
|
|
163
|
+
"required": true,
|
|
164
|
+
"schema": {
|
|
165
|
+
"type": "string"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "end_period",
|
|
170
|
+
"in": "query",
|
|
171
|
+
"description": "End Preiod Date (YYYY) EX. 2017",
|
|
172
|
+
"required": true,
|
|
173
|
+
"schema": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "currency",
|
|
179
|
+
"in": "query",
|
|
180
|
+
"description": "Foreign Currency",
|
|
181
|
+
"schema": {
|
|
182
|
+
"type": "string"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"responses": {
|
|
187
|
+
"200": {
|
|
188
|
+
"description": "200 OK",
|
|
189
|
+
"content": {
|
|
190
|
+
"application/json": {
|
|
191
|
+
"schema": {
|
|
192
|
+
"$ref": "#/components/schemas/Annual%20Response%20Parameters"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"components": {
|
|
202
|
+
"schemas": {
|
|
203
|
+
"Daily Response Parameters": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"properties": {
|
|
206
|
+
"result": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"properties": {
|
|
209
|
+
"api": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"example": "Daily Weighted-average Interbank Exchange Rate - THB / USD"
|
|
212
|
+
},
|
|
213
|
+
"timestamp": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"example": "2017-07-21 19:50:04"
|
|
216
|
+
},
|
|
217
|
+
"data": {
|
|
218
|
+
"type": "object",
|
|
219
|
+
"properties": {
|
|
220
|
+
"data_header": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"properties": {
|
|
223
|
+
"report_name_eng": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"example": "Rates of Exchange of Commercial Banks in Bangkok Metropolis (2002-present)"
|
|
226
|
+
},
|
|
227
|
+
"report_name_th": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"example": "อัตราแลกเปลี่ยนเฉลี่ยของธนาคารพาณิชย์ในกรุงเทพมหานคร (2545-ปัจจุบัน)"
|
|
230
|
+
},
|
|
231
|
+
"report_uoq_name_eng": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"example": "(Unit : Baht / 1 Unit of Foreign Currency)"
|
|
234
|
+
},
|
|
235
|
+
"report_uoq_name_th": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"example": "(หน่วย : บาท ต่อ 1 หน่วยเงินตราต่างประเทศ)"
|
|
238
|
+
},
|
|
239
|
+
"report_source_of_data": {
|
|
240
|
+
"type": "array",
|
|
241
|
+
"items": {
|
|
242
|
+
"type": "object",
|
|
243
|
+
"properties": {
|
|
244
|
+
"source_of_data_eng": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"example": "Bank of Thailand"
|
|
247
|
+
},
|
|
248
|
+
"source_of_data_th": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"example": "ธนาคารแห่งประเทศไทย"
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"report_remark": {
|
|
256
|
+
"type": "array",
|
|
257
|
+
"items": {
|
|
258
|
+
"type": "object",
|
|
259
|
+
"properties": {
|
|
260
|
+
"report_remark_eng": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"example": "Since Nov 16, 2015 the data regarding Buying Transfer Rate of PKR has been changed to Buying Rate using Foreign Exchange Rates (THOMSON REUTERS) with Bangkok Market Crossing."
|
|
263
|
+
},
|
|
264
|
+
"report_remark_th": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"example": "ตั้งแต่วันที่ 16 พ.ย. 2558 ข้อมูลในอัตราซื้อเงินโอนของสกุล PKR ได้เปลี่ยนเป็นอัตราซื้อที่ใช้อัตราในตลาดต่างประเทศ (ทอมสันรอยเตอร์) คำนวณผ่านอัตราซื้อขายเงินดอลลาร์ สรอ. ในตลาดกรุงเทพฯ"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"last_updated": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"example": "2017-07-21"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"data_detail": {
|
|
278
|
+
"type": "object",
|
|
279
|
+
"properties": {
|
|
280
|
+
"period": {
|
|
281
|
+
"type": "string"
|
|
282
|
+
},
|
|
283
|
+
"currency_id": {
|
|
284
|
+
"type": "string"
|
|
285
|
+
},
|
|
286
|
+
"currency_name_th": {
|
|
287
|
+
"type": "string"
|
|
288
|
+
},
|
|
289
|
+
"currency_name_eng": {
|
|
290
|
+
"type": "string"
|
|
291
|
+
},
|
|
292
|
+
"buying_sight": {
|
|
293
|
+
"type": "string"
|
|
294
|
+
},
|
|
295
|
+
"buying_transfer": {
|
|
296
|
+
"type": "string"
|
|
297
|
+
},
|
|
298
|
+
"selling": {
|
|
299
|
+
"type": "string"
|
|
300
|
+
},
|
|
301
|
+
"mid_rate": {
|
|
302
|
+
"type": "string"
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"example": [
|
|
306
|
+
{
|
|
307
|
+
"period": "2002-01-15",
|
|
308
|
+
"currency_id": "USD",
|
|
309
|
+
"currency_name_th": "สหรัฐอเมริกา : ดอลลาร์ (USD)",
|
|
310
|
+
"currency_name_eng": "USA : DOLLAR (USD) ",
|
|
311
|
+
"buying_sight": "43.7425000",
|
|
312
|
+
"buying_transfer": "43.8400000",
|
|
313
|
+
"selling": "44.0346000",
|
|
314
|
+
"mid_rate": "43.8886000"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"period": "2002-01-14",
|
|
318
|
+
"currency_id": "USD",
|
|
319
|
+
"currency_name_th": "สหรัฐอเมริกา : ดอลลาร์ (USD)",
|
|
320
|
+
"currency_name_eng": "USA : DOLLAR (USD) ",
|
|
321
|
+
"buying_sight": "43.7344000",
|
|
322
|
+
"buying_transfer": "43.8318000",
|
|
323
|
+
"selling": "44.0313000",
|
|
324
|
+
"mid_rate": "43.8829000"
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"description": ""
|
|
334
|
+
},
|
|
335
|
+
"Monthly Response Parameters": {
|
|
336
|
+
"type": "object",
|
|
337
|
+
"properties": {
|
|
338
|
+
"result": {
|
|
339
|
+
"type": "object",
|
|
340
|
+
"properties": {
|
|
341
|
+
"api": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"example": "Monthly Average Exchange Rate - THB / Foreign Currency"
|
|
344
|
+
},
|
|
345
|
+
"timestamp": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"example": "2017-07-21 20:08:52"
|
|
348
|
+
},
|
|
349
|
+
"data": {
|
|
350
|
+
"type": "object",
|
|
351
|
+
"properties": {
|
|
352
|
+
"data_header": {
|
|
353
|
+
"type": "object",
|
|
354
|
+
"properties": {
|
|
355
|
+
"report_name_eng": {
|
|
356
|
+
"type": "string",
|
|
357
|
+
"example": "Rates of Exchange of Commercial Banks in Bangkok Metropolis (2002-present)"
|
|
358
|
+
},
|
|
359
|
+
"report_name_th": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"example": "อัตราแลกเปลี่ยนเฉลี่ยของธนาคารพาณิชย์ในกรุงเทพมหานคร (2545-ปัจจุบัน)"
|
|
362
|
+
},
|
|
363
|
+
"report_uoq_name_eng": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"example": "(Unit : Baht / 1 Unit of Foreign Currency)"
|
|
366
|
+
},
|
|
367
|
+
"report_uoq_name_th": {
|
|
368
|
+
"type": "string",
|
|
369
|
+
"example": "(หน่วย : บาท ต่อ 1 หน่วยเงินตราต่างประเทศ)"
|
|
370
|
+
},
|
|
371
|
+
"report_source_of_data": {
|
|
372
|
+
"type": "array",
|
|
373
|
+
"items": {
|
|
374
|
+
"type": "object",
|
|
375
|
+
"properties": {
|
|
376
|
+
"source_of_data_eng": {
|
|
377
|
+
"type": "string",
|
|
378
|
+
"example": "Bank of Thailand"
|
|
379
|
+
},
|
|
380
|
+
"source_of_data_th": {
|
|
381
|
+
"type": "string",
|
|
382
|
+
"example": "ธนาคารแห่งประเทศไทย"
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"report_remark": {
|
|
388
|
+
"type": "array",
|
|
389
|
+
"items": {
|
|
390
|
+
"type": "object",
|
|
391
|
+
"properties": {
|
|
392
|
+
"report_remark_eng": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"example": "Since Nov 16, 2015 the data regarding Buying Transfer Rate of PKR has been changed to Buying Rate using Foreign Exchange Rates (THOMSON REUTERS) with Bangkok Market Crossing."
|
|
395
|
+
},
|
|
396
|
+
"report_remark_th": {
|
|
397
|
+
"type": "string",
|
|
398
|
+
"example": "ตั้งแต่วันที่ 16 พ.ย. 2558 ข้อมูลในอัตราซื้อเงินโอนของสกุล PKR ได้เปลี่ยนเป็นอัตราซื้อที่ใช้อัตราในตลาดต่างประเทศ (ทอมสันรอยเตอร์) คำนวณผ่านอัตราซื้อขายเงินดอลลาร์ สรอ. ในตลาดกรุงเทพฯ"
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"last_updated": {
|
|
404
|
+
"type": "string",
|
|
405
|
+
"example": "2017-07-21"
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
"data_detail": {
|
|
410
|
+
"type": "object",
|
|
411
|
+
"properties": {
|
|
412
|
+
"period": {
|
|
413
|
+
"type": "string"
|
|
414
|
+
},
|
|
415
|
+
"currency_id": {
|
|
416
|
+
"type": "string"
|
|
417
|
+
},
|
|
418
|
+
"currency_name_th": {
|
|
419
|
+
"type": "string"
|
|
420
|
+
},
|
|
421
|
+
"currency_name_eng": {
|
|
422
|
+
"type": "string"
|
|
423
|
+
},
|
|
424
|
+
"buying_sight": {
|
|
425
|
+
"type": "string"
|
|
426
|
+
},
|
|
427
|
+
"buying_transfer": {
|
|
428
|
+
"type": "string"
|
|
429
|
+
},
|
|
430
|
+
"selling": {
|
|
431
|
+
"type": "string"
|
|
432
|
+
},
|
|
433
|
+
"mid_rate": {
|
|
434
|
+
"type": "string"
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
"example": [
|
|
438
|
+
{
|
|
439
|
+
"period": "2002-02",
|
|
440
|
+
"currency_id": "USD",
|
|
441
|
+
"currency_name_th": "สหรัฐอเมริกา : ดอลลาร์ (USD)",
|
|
442
|
+
"currency_name_eng": "USA : DOLLAR (USD) ",
|
|
443
|
+
"buying_sight": "43.6288000",
|
|
444
|
+
"buying_transfer": "43.7256000",
|
|
445
|
+
"selling": "43.9254000",
|
|
446
|
+
"mid_rate": "43.7771000"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"period": "2002-01",
|
|
450
|
+
"currency_id": "USD",
|
|
451
|
+
"currency_name_th": "สหรัฐอเมริกา : ดอลลาร์ (USD)",
|
|
452
|
+
"currency_name_eng": "USA : DOLLAR (USD) ",
|
|
453
|
+
"buying_sight": "43.8354000",
|
|
454
|
+
"buying_transfer": "43.9321000",
|
|
455
|
+
"selling": "44.1279000",
|
|
456
|
+
"mid_rate": "43.9817000"
|
|
457
|
+
}
|
|
458
|
+
]
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
"description": ""
|
|
466
|
+
},
|
|
467
|
+
"Quarterly Response Parameters": {
|
|
468
|
+
"type": "object",
|
|
469
|
+
"properties": {
|
|
470
|
+
"result": {
|
|
471
|
+
"type": "object",
|
|
472
|
+
"properties": {
|
|
473
|
+
"api": {
|
|
474
|
+
"type": "string",
|
|
475
|
+
"example": "Quarterly Average Exchange Rate - THB / Foreign Currency"
|
|
476
|
+
},
|
|
477
|
+
"timestamp": {
|
|
478
|
+
"type": "string",
|
|
479
|
+
"example": "2017-07-21 20:11:51"
|
|
480
|
+
},
|
|
481
|
+
"data": {
|
|
482
|
+
"type": "object",
|
|
483
|
+
"properties": {
|
|
484
|
+
"data_header": {
|
|
485
|
+
"type": "object",
|
|
486
|
+
"properties": {
|
|
487
|
+
"report_name_eng": {
|
|
488
|
+
"type": "string",
|
|
489
|
+
"example": "Rates of Exchange of Commercial Banks in Bangkok Metropolis (2002-present)"
|
|
490
|
+
},
|
|
491
|
+
"report_name_th": {
|
|
492
|
+
"type": "string",
|
|
493
|
+
"example": "อัตราแลกเปลี่ยนเฉลี่ยของธนาคารพาณิชย์ในกรุงเทพมหานคร (2545-ปัจจุบัน)"
|
|
494
|
+
},
|
|
495
|
+
"report_uoq_name_eng": {
|
|
496
|
+
"type": "string",
|
|
497
|
+
"example": "(Unit : Baht / 1 Unit of Foreign Currency)"
|
|
498
|
+
},
|
|
499
|
+
"report_uoq_name_th": {
|
|
500
|
+
"type": "string",
|
|
501
|
+
"example": "(หน่วย : บาท ต่อ 1 หน่วยเงินตราต่างประเทศ)"
|
|
502
|
+
},
|
|
503
|
+
"report_source_of_data": {
|
|
504
|
+
"type": "array",
|
|
505
|
+
"items": {
|
|
506
|
+
"type": "object",
|
|
507
|
+
"properties": {
|
|
508
|
+
"source_of_data_eng": {
|
|
509
|
+
"type": "string",
|
|
510
|
+
"example": "Bank of Thailand"
|
|
511
|
+
},
|
|
512
|
+
"source_of_data_th": {
|
|
513
|
+
"type": "string",
|
|
514
|
+
"example": "ธนาคารแห่งประเทศไทย"
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"report_remark": {
|
|
520
|
+
"type": "array",
|
|
521
|
+
"items": {
|
|
522
|
+
"type": "object",
|
|
523
|
+
"properties": {
|
|
524
|
+
"report_remark_eng": {
|
|
525
|
+
"type": "string",
|
|
526
|
+
"example": "Since Nov 16, 2015 the data regarding Buying Transfer Rate of PKR has been changed to Buying Rate using Foreign Exchange Rates (THOMSON REUTERS) with Bangkok Market Crossing."
|
|
527
|
+
},
|
|
528
|
+
"report_remark_th": {
|
|
529
|
+
"type": "string",
|
|
530
|
+
"example": "ตั้งแต่วันที่ 16 พ.ย. 2558 ข้อมูลในอัตราซื้อเงินโอนของสกุล PKR ได้เปลี่ยนเป็นอัตราซื้อที่ใช้อัตราในตลาดต่างประเทศ (ทอมสันรอยเตอร์) คำนวณผ่านอัตราซื้อขายเงินดอลลาร์ สรอ. ในตลาดกรุงเทพฯ"
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
"last_updated": {
|
|
536
|
+
"type": "string",
|
|
537
|
+
"example": "2017-07-21"
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
"data_detail": {
|
|
542
|
+
"type": "object",
|
|
543
|
+
"properties": {
|
|
544
|
+
"period": {
|
|
545
|
+
"type": "string"
|
|
546
|
+
},
|
|
547
|
+
"currency_id": {
|
|
548
|
+
"type": "string"
|
|
549
|
+
},
|
|
550
|
+
"currency_name_th": {
|
|
551
|
+
"type": "string"
|
|
552
|
+
},
|
|
553
|
+
"currency_name_eng": {
|
|
554
|
+
"type": "string"
|
|
555
|
+
},
|
|
556
|
+
"buying_sight": {
|
|
557
|
+
"type": "string"
|
|
558
|
+
},
|
|
559
|
+
"buying_transfer": {
|
|
560
|
+
"type": "string"
|
|
561
|
+
},
|
|
562
|
+
"selling": {
|
|
563
|
+
"type": "string"
|
|
564
|
+
},
|
|
565
|
+
"mid_rate": {
|
|
566
|
+
"type": "string"
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
"example": [
|
|
570
|
+
{
|
|
571
|
+
"period": "2016-Q4",
|
|
572
|
+
"currency_id": "USD",
|
|
573
|
+
"currency_name_th": "สหรัฐอเมริกา : ดอลลาร์ (USD)",
|
|
574
|
+
"currency_name_eng": "USA : DOLLAR (USD) ",
|
|
575
|
+
"buying_sight": "35.1351000",
|
|
576
|
+
"buying_transfer": "35.2159000",
|
|
577
|
+
"selling": "35.5684000",
|
|
578
|
+
"mid_rate": "35.3922000"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"period": "2016-Q3",
|
|
582
|
+
"currency_id": "USD",
|
|
583
|
+
"currency_name_th": "สหรัฐอเมริกา : ดอลลาร์ (USD)",
|
|
584
|
+
"currency_name_eng": "USA : DOLLAR (USD) ",
|
|
585
|
+
"buying_sight": "34.5818000",
|
|
586
|
+
"buying_transfer": "34.6752000",
|
|
587
|
+
"selling": "35.0135000",
|
|
588
|
+
"mid_rate": "34.8444000"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"period": "2016-Q2",
|
|
592
|
+
"currency_id": "USD",
|
|
593
|
+
"currency_name_th": "สหรัฐอเมริกา : ดอลลาร์ (USD)",
|
|
594
|
+
"currency_name_eng": "USA : DOLLAR (USD) ",
|
|
595
|
+
"buying_sight": "35.0214000",
|
|
596
|
+
"buying_transfer": "35.1141000",
|
|
597
|
+
"selling": "35.4489000",
|
|
598
|
+
"mid_rate": "35.2815000"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"period": "2016-Q1",
|
|
602
|
+
"currency_id": "USD",
|
|
603
|
+
"currency_name_th": "สหรัฐอเมริกา : ดอลลาร์ (USD)",
|
|
604
|
+
"currency_name_eng": "USA : DOLLAR (USD) ",
|
|
605
|
+
"buying_sight": "35.4110000",
|
|
606
|
+
"buying_transfer": "35.5020000",
|
|
607
|
+
"selling": "35.8329000",
|
|
608
|
+
"mid_rate": "35.6675000"
|
|
609
|
+
}
|
|
610
|
+
]
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
"description": ""
|
|
618
|
+
},
|
|
619
|
+
"Annual Response Parameters": {
|
|
620
|
+
"type": "object",
|
|
621
|
+
"properties": {
|
|
622
|
+
"result": {
|
|
623
|
+
"type": "object",
|
|
624
|
+
"properties": {
|
|
625
|
+
"api": {
|
|
626
|
+
"type": "string",
|
|
627
|
+
"example": "Annual Average Exchange Rate - THB / Foreign Currency"
|
|
628
|
+
},
|
|
629
|
+
"timestamp": {
|
|
630
|
+
"type": "string",
|
|
631
|
+
"example": "2017-07-21 20:13:40"
|
|
632
|
+
},
|
|
633
|
+
"data": {
|
|
634
|
+
"type": "object",
|
|
635
|
+
"properties": {
|
|
636
|
+
"data_header": {
|
|
637
|
+
"type": "object",
|
|
638
|
+
"properties": {
|
|
639
|
+
"report_name_eng": {
|
|
640
|
+
"type": "string",
|
|
641
|
+
"example": "Rates of Exchange of Commercial Banks in Bangkok Metropolis (2002-present)"
|
|
642
|
+
},
|
|
643
|
+
"report_name_th": {
|
|
644
|
+
"type": "string",
|
|
645
|
+
"example": "อัตราแลกเปลี่ยนเฉลี่ยของธนาคารพาณิชย์ในกรุงเทพมหานคร (2545-ปัจจุบัน)"
|
|
646
|
+
},
|
|
647
|
+
"report_uoq_name_eng": {
|
|
648
|
+
"type": "string",
|
|
649
|
+
"example": "(Unit : Baht / 1 Unit of Foreign Currency)"
|
|
650
|
+
},
|
|
651
|
+
"report_uoq_name_th": {
|
|
652
|
+
"type": "string",
|
|
653
|
+
"example": "(หน่วย : บาท ต่อ 1 หน่วยเงินตราต่างประเทศ)"
|
|
654
|
+
},
|
|
655
|
+
"report_source_of_data": {
|
|
656
|
+
"type": "array",
|
|
657
|
+
"items": {
|
|
658
|
+
"type": "object",
|
|
659
|
+
"properties": {
|
|
660
|
+
"source_of_data_eng": {
|
|
661
|
+
"type": "string",
|
|
662
|
+
"example": "Bank of Thailand"
|
|
663
|
+
},
|
|
664
|
+
"source_of_data_th": {
|
|
665
|
+
"type": "string",
|
|
666
|
+
"example": "ธนาคารแห่งประเทศไทย"
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
"report_remark": {
|
|
672
|
+
"type": "array",
|
|
673
|
+
"items": {
|
|
674
|
+
"type": "object",
|
|
675
|
+
"properties": {
|
|
676
|
+
"report_remark_eng": {
|
|
677
|
+
"type": "string",
|
|
678
|
+
"example": "Since Nov 16, 2015 the data regarding Buying Transfer Rate of PKR has been changed to Buying Rate using Foreign Exchange Rates (THOMSON REUTERS) with Bangkok Market Crossing."
|
|
679
|
+
},
|
|
680
|
+
"report_remark_th": {
|
|
681
|
+
"type": "string",
|
|
682
|
+
"example": "ตั้งแต่วันที่ 16 พ.ย. 2558 ข้อมูลในอัตราซื้อเงินโอนของสกุล PKR ได้เปลี่ยนเป็นอัตราซื้อที่ใช้อัตราในตลาดต่างประเทศ (ทอมสันรอยเตอร์) คำนวณผ่านอัตราซื้อขายเงินดอลลาร์ สรอ. ในตลาดกรุงเทพฯ"
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
"last_updated": {
|
|
688
|
+
"type": "string",
|
|
689
|
+
"example": "2017-07-21"
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
"data_detail": {
|
|
694
|
+
"type": "array",
|
|
695
|
+
"items": {
|
|
696
|
+
"type": "object",
|
|
697
|
+
"properties": {
|
|
698
|
+
"period": {
|
|
699
|
+
"type": "string",
|
|
700
|
+
"example": "2016"
|
|
701
|
+
},
|
|
702
|
+
"currency_id": {
|
|
703
|
+
"type": "string",
|
|
704
|
+
"example": "USD"
|
|
705
|
+
},
|
|
706
|
+
"currency_name_th": {
|
|
707
|
+
"type": "string",
|
|
708
|
+
"example": "สหรัฐอเมริกา : ดอลลาร์ (USD)"
|
|
709
|
+
},
|
|
710
|
+
"currency_name_eng": {
|
|
711
|
+
"type": "string",
|
|
712
|
+
"example": "USA : DOLLAR (USD) "
|
|
713
|
+
},
|
|
714
|
+
"buying_sight": {
|
|
715
|
+
"type": "string",
|
|
716
|
+
"example": "35.0373000"
|
|
717
|
+
},
|
|
718
|
+
"buying_transfer": {
|
|
719
|
+
"type": "string",
|
|
720
|
+
"example": "35.1268000"
|
|
721
|
+
},
|
|
722
|
+
"selling": {
|
|
723
|
+
"type": "string",
|
|
724
|
+
"example": "35.4659000"
|
|
725
|
+
},
|
|
726
|
+
"mid_rate": {
|
|
727
|
+
"type": "string",
|
|
728
|
+
"example": "35.2964000"
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
"description": ""
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
"parameters": {
|
|
742
|
+
"start_period": {
|
|
743
|
+
"name": "start_period",
|
|
744
|
+
"in": "query",
|
|
745
|
+
"description": "Start Period Date",
|
|
746
|
+
"required": true,
|
|
747
|
+
"schema": {
|
|
748
|
+
"type": "string"
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
"end_period": {
|
|
752
|
+
"name": "end_period",
|
|
753
|
+
"in": "query",
|
|
754
|
+
"description": "End Preiod Date",
|
|
755
|
+
"required": true,
|
|
756
|
+
"schema": {
|
|
757
|
+
"type": "string"
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
"currency": {
|
|
761
|
+
"name": "currency",
|
|
762
|
+
"in": "query",
|
|
763
|
+
"description": "Foreign Currency",
|
|
764
|
+
"schema": {
|
|
765
|
+
"type": "string"
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
"securitySchemes": {
|
|
770
|
+
"clientIdHeader": {
|
|
771
|
+
"type": "apiKey",
|
|
772
|
+
"name": "Authorization",
|
|
773
|
+
"in": "header"
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
"x-original-swagger-version": "2.0"
|
|
778
|
+
}
|