Giter Club home page Giter Club logo

nomics's Introduction

cnomics

The node.js module for the nomics.com API.

Install

npm install --save mikunimaru/nomics.git

Usage

Each class requires an API key as its initial value.
If it is blank, it will operate in demo mode.

new Nomics({}) // Demo mode.
new Nomics({apiKey: "your-api-key"}) // Normal mode

Class

Nomics (default export)

It is a class corresponding API name and method name with 1: 1.
Returns data of type Object.

NomicsNode

Class that returns processed data.

currenciesArray()

Array of nomics currency id.

[ '0XBTC','1ST','2GIVE','3DES', ...

pricesObject()

An object of Prices.

 { _1ST: 0.02829,
   _2GIVE: 0.00138,
   ABA: 0.01547,
   ABT: 0.07469,
   ABTC: 0.13559,
   ABY: 0.00124,
   ABYSS: 0.00632,
   ...

If the ID name is a currency beginning with a number or symbol, an underscore is
added at the beginning of the name to make it easier to work with GraphQL.

dashboardObject()

Dashboard version of the above method.

exchangeRatesObject()

Get exchangeRates with a single object.

 {
   USD:
   { currency: 'USD',
     rate: 1,
     timestamp: '2019-01-16T00:00:00Z' },
   EUR:
   { currency: 'EUR',
     rate: 1.14142,
     timestamp: '2019-01-16T00:00:00Z' },
   JPY:
   { currency: 'JPY',
     rate: 0.0092,
     timestamp: '2019-01-16T00:00:00Z' },
   ...

currenciesIntervalObject()

Get currenciesInterval with a single object.

  {
    BTC:
    { currency: 'BTC',
      volume: 4887265624.18739,
      open: 3650.91796,
      open_timestamp: '2019-01-13T00:00:00Z',
      close: 3770.37047,
      close_timestamp: '2019-01-19T00:00:00Z' },
    ETH:
    { currency: 'ETH',
      volume: 2011702447.65631,
    ...

nomics's People

Contributors

mikunimaru 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.