0.0.3 • Published 5 years ago

bitmax v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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.orderStatus( "..." ) );
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

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago