Socket
Book a DemoInstallSign in
Socket

cryptopia-api

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cryptopia-api

Asynchronous Node.js Module for accessing both Public and Private Cryptopia APIs

1.2.14
latest
Source
npmnpm
Version published
Weekly downloads
7
-81.58%
Maintainers
1
Weekly downloads
 
Created
Source

cryptopia-api

Asynchronous Node.js Module for Cryptopia Public and Private APIs

npm version Build Status

Installation

npm install cryptopia-api

Usage

const Cryptopia = require('cryptopia-api')();
const options = {
  API_KEY: 'Your Key',
  API_SECRET: 'Your Secret',
  HOST_URL: 'https://www.cryptopia.co.nz/api' //Optional, this is the default value
};
Cryptopia.setOptions(options);

//Get All Currencies
(async function () {
    try {
        const currencies = await Cryptopia.getCurrencies();
        console.log(currencies); //Array of available Currencies from API
    } catch (err){
        console.error(err);
    }
})();

See examples.js for the implemented methods of both Private and Public API calls. If you are having trouble, please review the appropriate API Reference below.

Cryptopia API Reference

Keywords

cryptopia

FAQs

Package last updated on 28 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.