API v2.0
Calculations
As this site deals with money conversion, all calculations are performed using Arbitrary-precision
arithmetic.
Currency to currency conversion
Description
Curency to currency conversion will convert amount of money from one currency to another and is performed using folowing:
http://konvertuj.ovo.ba/api(/<type>)/<amount>_<ISO code>_to_<ISO code>(.<format>)
http://konvertuj.ovo.ba/api(/<type>)/<amount><ISO code>/to/<ISO code>(.<format>)
http://konvertuj.ovo.ba/api(/<type>)/<amount><ISO code>-<ISO code>(.<format>)
http://konvertuj.ovo.ba/api/<amount><ISO code>-to-<ISO code>(.<format>)
Note: first format example provides backwards compatibility to old API.
where:
- "()" means optional
- /<type>: Conversion type, optional (defaults to "middle"). Allowed strings: buy, middle and sell
- <amount>: Real number. Allowed characters: 0-9 and one "."
- <ISO code>: Three letter code representing currency. Allowed codes: AUD, CAD, HRK, CZK, DKK, HUF, JPY, LTL, NOK, RUB, SEK, CHF, GBP, USD, RSD, TRY, BAM, and EUR
- format: Document format. Supported formats: html, txt, xml and json. Leaving out format will render document in default html.
In order to use jsonp you need to add callback GET param.
Examples
Currency to all other currencies conversion
Description
This conversion will convert amount of money from one currency to all other currencies using folowing:
http://konvertuj.ovo.ba/api(/<type>)/<amount><ISO code>(.<format>)
where:
- "()" means optional
- /<type>: Conversion type, optional (defaults to "middle"). Allowed strings: buy, middle and sell
- amount: Real number. Allowed characters: 0-9 and one "."
- ISO code : Three letter code representing currency. Allowed codes: AUD, CAD, HRK, CZK, DKK, HUF, JPY, LTL, NOK, RUB, SEK, CHF, GBP, USD, RSD, TRY, BAM, and EUR
- format: Document format. Supported formats: html, txt, xml, and json. Leaving out format will render document in default html.
Result returned will not include currency you are converting from.
In order to use jsonp you need to add callback GET param.
Examples
Latest currency exchange
Description
Prints out latest currency exchange.
http://konvertuj.ovo.ba/api/today(.<format>)
http://konvertuj.ovo.ba/api/danas(.<format>)
where:
- format: Document format. Supported formats: html, xml, and json. Leaving out format will render document in default html.
Examples
Currency conversion over time
@to-do: figure out a format for this request.
** Please send proposals to @krule