JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q27485F
  • License MIT

Crypto currency trade API

Package Exports

  • tradex2

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tradex2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

💱Tradex

Cryptocurrency trade API for Nodejs.

Features · Install · Useage · Contact · APIs · License · 中文

⚖️Features

  • Support some popular cryptocurrency 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: 'your-apiKey',
    secretKey: 'your-secretKey'
});

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

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

🔐How to get API's access permission

☎️Contact

If you have any other questions on APIs, you can contact us by below ways:

  • Telegram: 👉https://t.me/aikuant👈
  • Wechat: Scan 👇QR code👇 and add as a friend, then invite you to join the technical group

Wechat

🏋🏻‍♂️Supported Exchange Markets

Name id Document
Binance binance doc
Huobi Global huobi doc
OKEx okex doc

📖APIs

  • spot
    • ✅ getTrick(symbol)
    • ✅ getKlines({ symbol, period, limit })
    • ✅ getDepth({ symbol, limit })
    • ✅ getBalance(currency)
    • ✅ getBalances(currencies)
    • ✅ buy({ symbol, amount, price })
    • 🕐 buys(orders)
    • ✅ sell({ symbol, amount, price })
    • 🕐 sells(orders)
    • 🕐 order(options)
    • ✅ cancelOrder({id, symbol})
    • ✅ getOrder(id, symbol)
    • 🚧 getOrders({ symbol, startTime, endTime, limit })
  • futures(perpetual)
    • 🕐 getDepth({ symbol, limit })
    • 🕐 order(options)
  • ✅ invoke({ method, path, data })

Models

📄License

MIT

Copyright (c) 2020-present, 一俢(1Jay)