openapi: 3.0.1
info:
title: Currency Exchange
description: "Currency Exchange Rate API. This API provides a standard set of exchange rates for Beazley systems. Please use the sandbox version of this API for initial development and testing. The current version of this is V1.
\r\n\r\nPlease contact \r\nITArchitecture@Beazley.com if you have any questions about this API."
version: '1.0'
servers:
- url: https://api.beazley.com/fx/v1
paths:
/rates:
get:
summary: Rates
operationId: 56d08a2b97fe1e081ca252f5
parameters:
- name: scurr
in: query
description: Source Currency
required: true
schema:
type: string
- name: dcurr
in: query
description: Destination Currency
required: true
schema:
type: string
- name: bcurr
in: query
description: Bridge Currency
schema:
type: string
- name: startdate
in: query
description: Rates from this date
schema:
type: string
- name: enddate
in: query
description: Rates to this date
schema:
type: string
- name: provider
in: query
description: Rate Provider
schema:
type: string
- name: amount
in: query
description: Amount
schema:
type: string
- name: divby
in: query
description: Multiply or divide by rate
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
example:
StartDate: '2016-02-08T00:00:00.0000000+00:00'
SourceCurrency: GBP
DestinationCurrency: USD
BridgeCurrency: USD
ProviderCode: boe
Rate: 1.43678161
CalculatedAmount: 143.678161
DivBy: false
DataFound: true
/providers:
get:
summary: Providers
operationId: 56d08a2b97fe1e081ca252f6
responses:
'200':
description: ''
content:
application/json:
example:
- Id: 1
Code: boe
Name: Bank of England
- Id: 2
Code: oan
Name: Oanda
text/xml:
example: boe 1 Bank of England oan 2 Oanda
/currencies:
get:
summary: Currencies
operationId: 56d08a2b97fe1e081ca252f7
responses:
'200':
description: ''
content:
application/json:
example:
- ISOCode: GBP
StartDate: '2015-12-02T00:00:00.0000000+00:00'
- ISOCode: USD
StartDate: '2015-12-02T00:00:00.0000000+00:00'
- ISOCode: EUR
StartDate: '2015-12-02T00:00:00.0000000+00:00'
- ISOCode: RON
StartDate: '2015-12-02T00:00:00.0000000+00:00'
text/xml:
example: GBP 02-Dec-2015 USD 02-Dec-2015 EUR 02-Dec-2015 RON 02-Dec-2015
components:
securitySchemes:
apiKeyHeader:
type: apiKey
name: Ocp-Apim-Subscription-Key
in: header
apiKeyQuery:
type: apiKey
name: subscription-key
in: query
security:
- apiKeyHeader: [ ]
- apiKeyQuery: [ ]