3.2.8 β’ Published 5 years ago
tradex2 v3.2.8
π±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
- Binance
- Huobi Global
- recommend: Sub Account
- OKEx
Supported Exchange Markets
Name | id | Document |
---|---|---|
Binance | binance | doc |
Huobi Global | huobi | doc |
OKEx | okex | doc |
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
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