Socket
Book a DemoInstallSign in
Socket

node-bitmax-api

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-bitmax-api

BitMax Javascript API https://github.com/jaggedsoft/node-bitmax-api

0.0.2
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Latest Version GitHub last commit npm downloads

NPM

Installation

npm install bitmax

This project is designed to help you make your own projects that interact with the BitMax API in node.js.

Getting Started

( async () => {
    const bitmax = require( "bitmax" );
    
    // Load apikey and secret from json
    await bitmax.auth( "bitmax-options.json" );
    console.log( await bitmax.balances() );
    
    // Load api key and secret with string instead
    await bitmax.auth( "[apikey]", "[secret]" );
    console.log( await bitmax.balance( "BTC" ) );
} )();
console.log( await bitmax.assets() );
console.log( await bitmax.prevDay() );
console.log( await bitmax.quote( { symbol: "LTC/BTC" } ) );
console.log( await bitmax.trades( { symbol: "LTC/BTC", n: 100 } ) );
console.log( await bitmax.depth( { symbol: "LTC/BTC", n: 10 } ) );
console.log( await bitmax.fees() );
console.log( await bitmax.barinfo() );
console.log( await bitmax.candles( { symbol: "LTC/BTC", interval: 360, start: 1539654780000 } ) );
console.log( await bitmax.userinfo() );
console.log( await bitmax.balances() );
console.log( await bitmax.balance( "BTC" ) );
console.log( await bitmax.transaction( "LTC" ) );
console.log( await bitmax.cancel( "..." ) );
console.log( await bitmax.cancelAll() );
console.log( await bitmax.cancelAll( "ETH" ) );
console.log( await bitmax.batchcancel( ["..."] ) );
console.log( await bitmax.order( "limit", "buy", "ETH/BTC", "0.030", "0.1" ) );

Views

Keywords

coinpaprika

FAQs

Package last updated on 04 Mar 2019

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.