pantchox / exchanges-api

A unified API for all cryptocurrency exchanges

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeScript CryptoCurrency eXchange Trading Library (T-CCXT)

A unified typescript API for all cryptocurrency exchanges, which uses typescript and websockets to interface with a cryptocurrency exchange with support for UDF as well for OHLCV charts. Here are some of the design philosohpies with T-CCXT.

  • Support for websockets
  • Trades and Partial Orderbooks are streamed as events (using the EventEmitter)
  • A unified interface for exchanges with margin accounts
  • Support for UDF datafeeds for integrations with TradingView charts
  • Browser-compatible code

Why T-CCXT?

Because CCXT had become far too bloated, had incomplete typescript implementation and didn't support websocket connections. T-CCXT is built on top of CCXT with the best coding practises.

Example

const binance = new Binance()

// console.log all trades from Binance (using websockets)
binance.on('trades:BTC/USDT', console.log)

// once binance is initialized
binance.on('init', () => {
  // stream BTC/USDT trades
  binance.streamTrades('BTC/USDT')
})

About

A unified API for all cryptocurrency exchanges

License:MIT License


Languages

Language:TypeScript 100.0%