--- swagger: "2.0" info: x-ibm-name: average-exchange-rate-thb--foreign-currency title: Average Exchange Rate - THB / Foreign Currency version: 2.0.2 description: "" schemes: - https basePath: /Stat-ExchangeRate/v2 consumes: - application/json produces: - application/json securityDefinitions: clientIdHeader: type: apiKey in: header name: X-IBM-Client-Id security: - clientIdHeader: [] x-ibm-configuration: testable: true enforced: true phase: realized paths: /DAILY_AVG_EXG_RATE/: get: responses: 200: description: 200 OK schema: $ref: '#/definitions/Daily Response Parameters' description: 'Daily Average Exchange Rate - THB / Foreign Currency

Data collected include exchange rates quoted for immediate delivery (i.e., in the spot market) between Thai Baht vis-à-vis 19 other currencies.
Exchange rate data are obtained from daily foreign exchange transaction reports from commercial banks in Thailand.
Frequency : Daily
Lag time : --
Release schedule : Every business day at 6.00 p.m. (BKK-GMT+07:00)
Source of data :
1. Commercial Banks registered in Thailand
2. Foreign Bank Branches
3. Special-purpose Financial Institutions
More detail [CLICK](https://app.bot.or.th/BTWS_STAT/statistics/DownloadFile.aspx?file=FM_FX_001_S3_ENG.PDF)' parameters: - name: start_period type: string required: true in: query description: Start Period Date (YYYY-MM-DD) EX. 2017-06-30 - name: end_period type: string required: true in: query description: End Preiod Date (YYYY-MM-DD) EX. 2017-06-30 - $ref: '#/parameters/currency' produces: [] consumes: [] /MONTHLY_AVG_EXG_RATE/: get: responses: 200: description: 200 OK schema: $ref: '#/definitions/Monthly Response Parameters' description: 'Monthly Average Exchange Rate - THB / Foreign Currency

Data collected include exchange rates quoted for immediate delivery (i.e., in the spot market) between Thai Baht vis-à-vis 19 other currencies.
Exchange rate data are obtained from daily foreign exchange transaction reports from commercial banks in Thailand.
Frequency : Monthly
Lag time : --
Release schedule : End of business day of Month at 6.00 p.m. (BKK-GMT+07:00)
Source of data :
1. Commercial Banks registered in Thailand
2. Foreign Bank Branches
3. Special-purpose Financial Institutions
More detail [CLICK](https://app.bot.or.th/BTWS_STAT/statistics/DownloadFile.aspx?file=FM_FX_001_S3_ENG.PDF)' parameters: - name: start_period type: string required: true in: query description: Start Period Date (YYYY-MM) EX. 2017-06 - name: end_period type: string required: true in: query description: End Period Date (YYYY-MM) EX. 2017-06 - $ref: '#/parameters/currency' consumes: [] /QUARTERLY_AVG_EXG_RATE/: get: responses: 200: description: 200 OK schema: $ref: '#/definitions/Quarterly Response Parameters' description: 'Quarterly Average Exchange Rate - THB / Foreign Currency

Data collected include exchange rates quoted for immediate delivery (i.e., in the spot market) between Thai Baht vis-à-vis 19 other currencies.
Exchange rate data are calculated from monthly foreign exchange transaction reports from commercial banks in Thailand.
Frequency : Quarterly
Lag time : --
Release schedule : End of business day of Quarter at 6.00 p.m. (BKK-GMT+07:00)
Source of data :
1. Commercial Banks registered in Thailand
2. Foreign Bank Branches
3. Special-purpose Financial Institutions
More detail [CLICK](https://app.bot.or.th/BTWS_STAT/statistics/DownloadFile.aspx?file=FM_FX_001_S3_ENG.PDF)' parameters: - name: start_period type: string required: true in: query description: Start Period Date (YYYY-QN) EX. 2017-Q1 - name: end_period type: string required: true in: query description: End Preiod Date (YYYY-QN) EX. 2017-Q1 - $ref: '#/parameters/currency' /ANNUAL_AVG_EXG_RATE/: get: responses: 200: description: 200 OK schema: $ref: '#/definitions/Annual Response Parameters' description: 'Annual Average Exchange Rate - THB / Foreign Currency

Data collected include exchange rates quoted for immediate delivery (i.e., in the spot market) between Thai Baht vis-à-vis 19 other currencies.
Exchange rate data are calculated from quarterly foreign exchange transaction reports from commercial banks in Thailand.
Frequency : Annual
Lag time : --
Release schedule : End of business day of Annual at 6.00 p.m. (BKK-GMT+07:00)
Source of data :
1. Commercial Banks registered in Thailand
2. Foreign Bank Branches
3. Special-purpose Financial Institutions
More detail [CLICK](https://app.bot.or.th/BTWS_STAT/statistics/DownloadFile.aspx?file=FM_FX_001_S3_ENG.PDF)' parameters: - name: start_period type: string required: true in: query description: Start Period Date (YYYY) EX. 2017 - name: end_period type: string required: true in: query description: End Preiod Date (YYYY) EX. 2017 - $ref: '#/parameters/currency' definitions: Daily Response Parameters: description: "" type: object properties: result: type: object properties: api: type: string example: Daily Weighted-average Interbank Exchange Rate - THB / USD timestamp: type: string example: "2017-07-21 19:50:04" data: type: object properties: data_header: type: object properties: report_name_eng: type: string example: Rates of Exchange of Commercial Banks in Bangkok Metropolis (2002-present) report_name_th: type: string example: อัตราแลกเปลี่ยนเฉลี่ยของธนาคารพาณิชย์ในกรุงเทพมหานคร (2545-ปัจจุบัน) report_uoq_name_eng: type: string example: '(Unit : Baht / 1 Unit of Foreign Currency)' report_uoq_name_th: type: string example: '(หน่วย : บาท ต่อ 1 หน่วยเงินตราต่างประเทศ)' report_source_of_data: type: array items: properties: source_of_data_eng: type: string example: Bank of Thailand source_of_data_th: type: string example: ธนาคารแห่งประเทศไทย type: object report_remark: type: array items: properties: report_remark_eng: type: string 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. report_remark_th: type: string example: ตั้งแต่วันที่ 16 พ.ย. 2558 ข้อมูลในอัตราซื้อเงินโอนของสกุล PKR ได้เปลี่ยนเป็นอัตราซื้อที่ใช้อัตราในตลาดต่างประเทศ (ทอมสันรอยเตอร์) คำนวณผ่านอัตราซื้อขายเงินดอลลาร์ สรอ. ในตลาดกรุงเทพฯ type: object last_updated: type: string example: "2017-07-21" data_detail: type: object properties: period: type: string currency_id: type: string currency_name_th: type: string currency_name_eng: type: string buying_sight: type: string buying_transfer: type: string selling: type: string mid_rate: type: string example: - period: "2002-01-15" currency_id: USD currency_name_th: 'สหรัฐอเมริกา : ดอลลาร์ (USD)' currency_name_eng: 'USA : DOLLAR (USD) ' buying_sight: "43.7425000" buying_transfer: "43.8400000" selling: "44.0346000" mid_rate: "43.8886000" - period: "2002-01-14" currency_id: USD currency_name_th: 'สหรัฐอเมริกา : ดอลลาร์ (USD)' currency_name_eng: 'USA : DOLLAR (USD) ' buying_sight: "43.7344000" buying_transfer: "43.8318000" selling: "44.0313000" mid_rate: "43.8829000" Monthly Response Parameters: description: "" type: object properties: result: type: object properties: api: type: string example: Monthly Average Exchange Rate - THB / Foreign Currency timestamp: type: string example: "2017-07-21 20:08:52" data: type: object properties: data_header: type: object properties: report_name_eng: type: string example: Rates of Exchange of Commercial Banks in Bangkok Metropolis (2002-present) report_name_th: type: string example: อัตราแลกเปลี่ยนเฉลี่ยของธนาคารพาณิชย์ในกรุงเทพมหานคร (2545-ปัจจุบัน) report_uoq_name_eng: type: string example: '(Unit : Baht / 1 Unit of Foreign Currency)' report_uoq_name_th: type: string example: '(หน่วย : บาท ต่อ 1 หน่วยเงินตราต่างประเทศ)' report_source_of_data: type: array items: properties: source_of_data_eng: type: string example: Bank of Thailand source_of_data_th: type: string example: ธนาคารแห่งประเทศไทย type: object report_remark: type: array items: properties: report_remark_eng: type: string 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. report_remark_th: type: string example: ตั้งแต่วันที่ 16 พ.ย. 2558 ข้อมูลในอัตราซื้อเงินโอนของสกุล PKR ได้เปลี่ยนเป็นอัตราซื้อที่ใช้อัตราในตลาดต่างประเทศ (ทอมสันรอยเตอร์) คำนวณผ่านอัตราซื้อขายเงินดอลลาร์ สรอ. ในตลาดกรุงเทพฯ type: object last_updated: type: string example: "2017-07-21" data_detail: type: object properties: period: type: string currency_id: type: string currency_name_th: type: string currency_name_eng: type: string buying_sight: type: string buying_transfer: type: string selling: type: string mid_rate: type: string example: - period: 2002-02 currency_id: USD currency_name_th: 'สหรัฐอเมริกา : ดอลลาร์ (USD)' currency_name_eng: 'USA : DOLLAR (USD) ' buying_sight: "43.6288000" buying_transfer: "43.7256000" selling: "43.9254000" mid_rate: "43.7771000" - period: 2002-01 currency_id: USD currency_name_th: 'สหรัฐอเมริกา : ดอลลาร์ (USD)' currency_name_eng: 'USA : DOLLAR (USD) ' buying_sight: "43.8354000" buying_transfer: "43.9321000" selling: "44.1279000" mid_rate: "43.9817000" Quarterly Response Parameters: description: "" type: object properties: result: type: object properties: api: type: string example: Quarterly Average Exchange Rate - THB / Foreign Currency timestamp: type: string example: "2017-07-21 20:11:51" data: type: object properties: data_header: type: object properties: report_name_eng: type: string example: Rates of Exchange of Commercial Banks in Bangkok Metropolis (2002-present) report_name_th: type: string example: อัตราแลกเปลี่ยนเฉลี่ยของธนาคารพาณิชย์ในกรุงเทพมหานคร (2545-ปัจจุบัน) report_uoq_name_eng: type: string example: '(Unit : Baht / 1 Unit of Foreign Currency)' report_uoq_name_th: type: string example: '(หน่วย : บาท ต่อ 1 หน่วยเงินตราต่างประเทศ)' report_source_of_data: type: array items: properties: source_of_data_eng: type: string example: Bank of Thailand source_of_data_th: type: string example: ธนาคารแห่งประเทศไทย type: object report_remark: type: array items: properties: report_remark_eng: type: string 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. report_remark_th: type: string example: ตั้งแต่วันที่ 16 พ.ย. 2558 ข้อมูลในอัตราซื้อเงินโอนของสกุล PKR ได้เปลี่ยนเป็นอัตราซื้อที่ใช้อัตราในตลาดต่างประเทศ (ทอมสันรอยเตอร์) คำนวณผ่านอัตราซื้อขายเงินดอลลาร์ สรอ. ในตลาดกรุงเทพฯ type: object last_updated: type: string example: "2017-07-21" data_detail: type: object properties: period: type: string currency_id: type: string currency_name_th: type: string currency_name_eng: type: string buying_sight: type: string buying_transfer: type: string selling: type: string mid_rate: type: string example: - period: 2016-Q4 currency_id: USD currency_name_th: 'สหรัฐอเมริกา : ดอลลาร์ (USD)' currency_name_eng: 'USA : DOLLAR (USD) ' buying_sight: "35.1351000" buying_transfer: "35.2159000" selling: "35.5684000" mid_rate: "35.3922000" - period: 2016-Q3 currency_id: USD currency_name_th: 'สหรัฐอเมริกา : ดอลลาร์ (USD)' currency_name_eng: 'USA : DOLLAR (USD) ' buying_sight: "34.5818000" buying_transfer: "34.6752000" selling: "35.0135000" mid_rate: "34.8444000" - period: 2016-Q2 currency_id: USD currency_name_th: 'สหรัฐอเมริกา : ดอลลาร์ (USD)' currency_name_eng: 'USA : DOLLAR (USD) ' buying_sight: "35.0214000" buying_transfer: "35.1141000" selling: "35.4489000" mid_rate: "35.2815000" - period: 2016-Q1 currency_id: USD currency_name_th: 'สหรัฐอเมริกา : ดอลลาร์ (USD)' currency_name_eng: 'USA : DOLLAR (USD) ' buying_sight: "35.4110000" buying_transfer: "35.5020000" selling: "35.8329000" mid_rate: "35.6675000" Annual Response Parameters: description: "" type: object properties: result: type: object properties: api: type: string example: Annual Average Exchange Rate - THB / Foreign Currency timestamp: type: string example: "2017-07-21 20:13:40" data: type: object properties: data_header: type: object properties: report_name_eng: type: string example: Rates of Exchange of Commercial Banks in Bangkok Metropolis (2002-present) report_name_th: type: string example: อัตราแลกเปลี่ยนเฉลี่ยของธนาคารพาณิชย์ในกรุงเทพมหานคร (2545-ปัจจุบัน) report_uoq_name_eng: type: string example: '(Unit : Baht / 1 Unit of Foreign Currency)' report_uoq_name_th: type: string example: '(หน่วย : บาท ต่อ 1 หน่วยเงินตราต่างประเทศ)' report_source_of_data: type: array items: properties: source_of_data_eng: type: string example: Bank of Thailand source_of_data_th: type: string example: ธนาคารแห่งประเทศไทย type: object report_remark: type: array items: properties: report_remark_eng: type: string 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. report_remark_th: type: string example: ตั้งแต่วันที่ 16 พ.ย. 2558 ข้อมูลในอัตราซื้อเงินโอนของสกุล PKR ได้เปลี่ยนเป็นอัตราซื้อที่ใช้อัตราในตลาดต่างประเทศ (ทอมสันรอยเตอร์) คำนวณผ่านอัตราซื้อขายเงินดอลลาร์ สรอ. ในตลาดกรุงเทพฯ type: object last_updated: type: string example: "2017-07-21" data_detail: type: array items: properties: period: type: string example: "2016" currency_id: type: string example: USD currency_name_th: type: string example: 'สหรัฐอเมริกา : ดอลลาร์ (USD)' currency_name_eng: type: string example: 'USA : DOLLAR (USD) ' buying_sight: type: string example: "35.0373000" buying_transfer: type: string example: "35.1268000" selling: type: string example: "35.4659000" mid_rate: type: string example: "35.2964000" tags: [] parameters: start_period: name: start_period type: string required: true in: query description: Start Period Date end_period: name: end_period type: string required: true in: query description: End Preiod Date currency: name: currency type: string required: false in: query description: Foreign Currency x-ibm-endpoints: - endpointUrl: https://apigw1.bot.or.th/bot/public description: API Gateway type: - production ...