money

Currency

Exchange rates and currency conversion

Codes Free

POSThttps://api.m3o.com/v1/currency/Codes

Codes returns the supported currency codes for the API

Request payload

Response

codes object array

Convert Free

POSThttps://api.m3o.com/v1/currency/Convert

Convert returns the currency conversion rate between two pairs e.g USD/GBP

Request payload

amount number

optional amount to convert e.g 10.0

from string

base code to convert from e.g USD

to string

target code to convert to e.g GBP

Response

amount number

converted amount e.g 7.10

from string

the base code e.g USD

rate number

conversion rate e.g 0.71

to string

the target code e.g GBP

History Free

POSThttps://api.m3o.com/v1/currency/History

Returns the historic rates for a currency on a given date

Request payload

code string

currency code e.g USD

date string

date formatted as YYYY-MM-DD

Response

code string

The code of the request

date string

The date requested

rates object

The rate for the day as code:rate

Rates Free

POSThttps://api.m3o.com/v1/currency/Rates

Rates returns the currency rates for a given code e.g USD

Request payload

code string

The currency code to get rates for e.g USD

Response

code string

The code requested e.g USD

rates object

The rates for the given code as key-value pairs code:rate