crypto-client
TypeScript icon, indicating that this package has built-in type declarations

0.26.0 • Public • Published

crypto-client

An unified client for all cryptocurrency exchanges.

How to use

/* eslint-disable */
const CryptoClient = require('crypto-client');
 
(async () => {
  await CryptoClient.init({
    eosAccount: 'your-eos-account',
    eosPrivateKey: 'your-eos-private-key',
  });
 
  // buy
  const transactionId = await placeOrder(
    { exchange: 'Newdex', pair: 'EIDOS_EOS', type: 'Spot' },
    0.00121,
    9.2644,
    false,
  );
  console.info(transactionId);
 
  const orderInfo = await CryptoClient.queryOrder(
    { exchange: 'Newdex', pair: 'EIDOS_EOS', type: 'Spot' },
    transactionId,
  );
  console.info(orderInfo);
 
  const cancelTransactionId = await CryptoClient.cancelOrder(
    { exchange: 'Newdex', pair: 'EIDOS_EOS', type: 'Spot' },
    transactionId,
  );
  console.info(cancelTransactionId);
})();

Supported Exchanges

  • Binance
  • Bitfinex
  • Bitstamp
  • CoinbasePro
  • Huobi
  • Kraken
  • MXC
  • Newdex
  • OKEx
  • WhaleEx

Related Projects

  • crypto-bbo, crawl BBO messages from cryptocurrency exchanges.
  • crypto-crawler, crawl orderbook and trade messages from cryptocurrency exchanges.

Package Sidebar

Install

npm i crypto-client

Weekly Downloads

0

Version

0.26.0

License

Apache-2.0

Unpacked Size

186 kB

Total Files

53

Last publish

Collaborators

  • soulmachine