Skip to content

Node Bartertrade API is an asynchronous node.js library for the Bartertrade API designed to be easy to use.

License

Notifications You must be signed in to change notification settings

jaggedsoft/bartertrade-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.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' ) );

About

Node Bartertrade API is an asynchronous node.js library for the Bartertrade API designed to be easy to use.

Resources

License

Stars

Watchers

Forks

Packages