3.2.8 β€’ Published 5 years ago

tradex2 v3.2.8

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

πŸ’±Tradex

Crypto currency trade API for Nodejs

Features

  • Support some popular crypto currency exchanges
  • Lightweight
  • Less dependencies
  • Only support spot, futures is planning
  • Support Node 12+

Installing

Using yarn:

$ yarn add tradex

Or using npm:

$ npm install tradex

Useage

const Tradex = require('tradex');

const tradex = new Tradex({
    id: 'binance',
    host: 'https://api.domain.com',
    apiKey: 'vmPUZE6mv9SD5VNHk4HlWFsOr6aKE2zvsw0MuIgwCIPy6utIco14y7Ju91duEh8A',
    secretKey: 'NhqPtmdSJYdKjVHjA7PZj4Mge3R5YNiP1e3UZjInClVN65XAbvqqM6A7H5fATj0j'
});

// use promise.then()
radex.getBalance('usdt').then(res => {
    console.log(res);
})

// or use async/await
(async () => {
    const balance = await tradex.getBalance('usdt');
    console.log(balance);
})();

How to get API's access permission

Supported Exchange Markets

NameidDocument
Binancebinancedoc
Huobi Globalhuobidoc
OKExokexdoc

APIs

  • βœ… getTrick(symbol)
  • πŸ• getTricks()
  • βœ… getBalance(currency)
  • βœ… getBalances(currencies)
  • βœ… buy({ symbol, amount, price })
  • πŸ• buys(orders)
  • βœ… sell({ symbol, amount, price })
  • πŸ• sells(orders)
  • πŸ• order(options)
  • βœ… getOrder(id, symbol)
  • πŸ• getOrders()

License

MIT

Copyright (c) 2020-present, δΈ€δΏ’(1Jay)

3.2.6

5 years ago

3.2.8

5 years ago

3.2.7

5 years ago

3.2.5-b82ae71.0

5 years ago

3.2.5

5 years ago

3.2.2

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

0.2.0-alpha.1

5 years ago

0.1.0-beta.5

5 years ago