Socket
Book a DemoInstallSign in
Socket

bartertrade

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bartertrade

Bartertrade Javascript API https://github.com/jaggedsoft/bartertrade-api

0.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

bartertrade

FAQs

Package last updated on 11 Apr 2021

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.