bartertrade

0.0.0 • Public • Published

NPM

Node Bartertrade API

This project is designed to help you make your own projects that interact with the Bartertrade API

Installation: npm install -s bartertrade

npm install bartertrade

Getting started

( async () => {
    const api = require( "./bartertrade-api.js" );
    api.auth( 'apikey', 'secret' );
    
    // Get Balance
    let balance = await api.balance();
    console.dir( balance, { depth: null, colors: true } );
    
} )().catch( e => console.log( e ) );
console.info( await api.order( "ETH/USDT", "Sell", 0.1555, 2111 ) );
console.info( await api.order( "BART/USDT", "Buy", 1111, 0.043 ) );
console.info( await api.order( "BART/USDT", "Buy", 1235, 0.045 ) );

// Get Balance
let balance = await api.balance();
console.dir( balance, { depth: null, colors: true } );

// Exchange info
console.info( await api.exchangeInfo() );

// Cancel an order
console.info( await api.cancel( 'BART/USDT', '689323' ) );

// Get order status
console.info( await api.orderStatus( '689323' ) );

Package Sidebar

Install

npm i bartertrade

Weekly Downloads

0

Version

0.0.0

License

MIT

Unpacked Size

20.3 kB

Total Files

5

Last publish

Collaborators

  • jaggedsoft