Giter VIP home page Giter VIP logo

nim-openexchangerates's Introduction

nim-openexchangerates

OpenExchangeRates API Client for Nim.

screenshot

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_key Your API Key, you can get one API Key for Free, string type.
  • timeout Timeout on Seconds for network connections, integer 8bits type, optional.
  • round_float True to round floats to 2 decimals, boolean type, optional.
  • base Base currency, Only for Pay accounts!, string type, optional.
  • local_base Local 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.

nim-openexchangerates's People

Contributors

juancarlospaco avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.