mirror of
https://github.com/juancarlospaco/nim-openexchangerates
synced 2026-01-03 01:34:50 +00:00
No description
| .github | ||
| src | ||
| .gitignore | ||
| LICENSE | ||
| openexchangerates.nimble | ||
| README.md | ||
nim-openexchangerates
OpenExchangeRates API Client for Nim.
Worldwide exchange prices + Bitcoin price + Gold price. No dependencies.
This module should work OK with and without SSL -d:ssl, API supports both.
Use
import openexchangerates
client = OpenExchangeRates(api_key: "21e7c27676972", . . . )
client.latest()
client.currencies()
. . .
- Check the source code, is also executable by itself for an example.
Documentation
OpenExchangeRates(api_key: string, timeout: int8, round_float: bool, base: string, local_base: string)
Description: Returns JSON with current international exchange prices and Bitcoin price. This module is a Nim port of a Python module.
Arguments:
api_keyYour API Key, you can get one API Key for Free, string type.timeoutTimeout on Seconds for network connections, integer 8bits type, optional.round_floatTrueto round floats to 2 decimals, boolean type, optional.baseBase currency, Only for Pay accounts!, string type, optional.local_baseLocal Base currency, for Free accounts, to calculate values locally (offline), string type, optional.
Returns: JsonNode.
Dependencies: None.
| State | OS | Description |
|---|---|---|
| ✅ | Linux | Works Ok |
| ✅ | Os X | Works Ok |
| ✅ | Windows | Works Ok |
Contributors:
- Please Star this Repo on Github !, it helps to show up faster on searchs.
- Help and more Help and Interactive Quick Git Tutorial.
- English is the primary default spoken language, unless explicitly stated otherwise (eg. Dont send Translation Pull Request)
- Pull Requests for working passing unittests welcomed.
Licence:
- MIT.
Ethics and Humanism Policy:
- Religions is not allowed. Contributing means you agree with the COC.