All Projects → passabilities → Crypto Exchange

passabilities / Crypto Exchange

Licence: mit
Pulls together list of crypto exchanges to interact with their API's in a uniform fashion.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Crypto Exchange

Exchangesharp
ExchangeSharp is a powerful, fast and easy to use .NET/C# API for interfacing with many crypto currency exchanges. REST and web sockets are supported.
Stars: ✭ 489 (+102.9%)
Mutual labels:  api, bitcoin, kraken, poloniex, bitfinex, gemini, bittrex, gdax, exchange
Cryptocurrency Portfolio
Google Sheets automatic creation with Google Apps Script (GAS) for managing a cryptocurrency tracking spreadsheet with multi exchanges
Stars: ✭ 134 (-44.4%)
Mutual labels:  api, kraken, poloniex, bitfinex, bittrex, exchange, crypto
Crypto vba
An Excel/VBA project to communicate with various cryptocurrency exchanges APIs
Stars: ✭ 103 (-57.26%)
Mutual labels:  bitcoin, kraken, poloniex, bitfinex, bittrex, gdax, exchange
Nescience-Indexing-CLI
Nescience Software & Capital Rebalancing Tool
Stars: ✭ 26 (-89.21%)
Mutual labels:  liquid, gemini, bitfinex, gdax, kraken, poloniex, bittrex
Algo Coin
Python library for algorithmic trading cryptocurrencies across multiple exchanges
Stars: ✭ 365 (+51.45%)
Mutual labels:  bitcoin, kraken, poloniex, gemini, gdax, exchange
Cryptofeed
Cryptocurrency Exchange Websocket Data Feed Handler
Stars: ✭ 643 (+166.8%)
Mutual labels:  bitcoin, kraken, bitfinex, gemini, bittrex, exchange
My Token
📈Track token prices of your favorite exchanges in terminal!
Stars: ✭ 141 (-41.49%)
Mutual labels:  bitcoin, kraken, poloniex, bitfinex, bittrex, exchange
Cryptotrader
A responsive dynamic webapp to trade cryptopairs on the most prominent exchanges
Stars: ✭ 118 (-51.04%)
Mutual labels:  api, kraken, poloniex, bitfinex, bittrex
Coinnect
Coinnect is a Rust library aiming to provide a complete access to main crypto currencies exchanges via REST API.
Stars: ✭ 130 (-46.06%)
Mutual labels:  bitcoin, kraken, poloniex, bittrex, exchange
algo-coin
Python library for algorithmic trading cryptocurrencies across multiple exchanges
Stars: ✭ 386 (+60.17%)
Mutual labels:  exchange, gemini, gdax, kraken, poloniex
Cryptex
Gemini, GDAX, Bitfinex, Poloniex, Binance, Kraken, Cryptopia, Koinex, BitGrail and CoinMarketCap cryptocurrency exchange API clients in Swift / iOS SDK. Check prices and account balances using Sample iOS app.
Stars: ✭ 51 (-78.84%)
Mutual labels:  bitcoin, poloniex, gemini, gdax, crypto
Gbot Trader
Trading robot for trade on crypto exchanges
Stars: ✭ 222 (-7.88%)
Mutual labels:  bitcoin, poloniex, bitfinex, bittrex, exchange
Python Poloniex
Poloniex API wrapper for Python 2.7 & 3
Stars: ✭ 557 (+131.12%)
Mutual labels:  api, bitcoin, poloniex, exchange
Stocklook
crypto currency library for trading & market making bots, account management, and data analysis
Stars: ✭ 119 (-50.62%)
Mutual labels:  bitcoin, poloniex, bittrex, gdax
Krypto Trading Bot
Self-hosted crypto trading bot (automated high frequency market making) written in C++
Stars: ✭ 2,589 (+974.27%)
Mutual labels:  bitcoin, kraken, bitfinex, exchange
Bitcoinexchangefh
Cryptocurrency exchange market data feed handler
Stars: ✭ 871 (+261.41%)
Mutual labels:  bitcoin, kraken, bitfinex, gdax
Currencyviewer
Short python framework that dynamically displays and converts the cryptocurrencies in your Kraken wallet into equivalents fiat money.
Stars: ✭ 13 (-94.61%)
Mutual labels:  api, bitcoin, kraken, exchange
Trading Indicator
provide trading technical indicator values based on data of almost crypto currency exchanges
Stars: ✭ 31 (-87.14%)
Mutual labels:  kraken, bitfinex, gemini, bittrex
Ccxt
A JavaScript / Python / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
Stars: ✭ 22,501 (+9236.51%)
Mutual labels:  api, bitcoin, exchange, crypto
Goex
Exchange Rest And WebSocket API For Golang Wrapper support okcoin,okex,huobi,hbdm,bitmex,coinex,poloniex,bitfinex,bitstamp,binance,kraken,bithumb,zb,hitbtc,fcoin, coinbene
Stars: ✭ 1,188 (+392.95%)
Mutual labels:  bitcoin, kraken, poloniex, bitfinex

crypto-exchange npm

Pulls together list of crypto exchanges to interact with their API's in a uniform fashion.

The goal of this project is to be able to interact with a number of different cryptocurrency exchange markets with one standardized package.

Available Exchanges

  • Binance
  • Bitfinex
  • Bitstamp
  • Bittrex
  • BTC-e shutdown
  • GDAX
  • Gemini
  • Kraken
  • Liqui
  • Poloniex
  • Yunbi

Usage

  • NOTE: Pairs are expected to be in the format BASE_QUOTE
  • All methods return a promise with the result passed.

Top Level

Exchange List

List of all available exchanges from the package:

  const Exchanges = require('crypto-exchange')
  console.log(Object.keys(Exchanges))
  // [
  //   'bittrex',
  //   'gdax'
  //   'kraken',
  //   'poloniex',
  //   ...
  // ]

pairs

Quickly fetch all available pairs and which exchanges support them.

  const Exchanges = require('crypto-exchange')
  Exchanges.pairs()
    .then(console.log)
  // {
  //   BTC_USD: [ 'bitfinex', 'gdax', 'gemini', 'kraken' ],
  //   LTC_USD: [ 'bitfinex', 'gdax', 'kraken' ],
  //   LTC_BTC: [ 'bitfinex', 'bittrex', 'gdax', 'kraken', 'liqui', 'poloniex' ],
  //   ETH_USD: [ 'bitfinex', 'gdax', 'gemini', 'kraken' ],
  //   ETH_BTC: [ 'bitfinex', 'bittrex', 'gdax', 'gemini', 'kraken', 'liqui', 'poloniex' ],
  //   ETC_BTC: [ 'bitfinex', 'bittrex', 'kraken', 'poloniex' ],
  //   ETC_USD: [ 'bitfinex', 'kraken' ],
  //   RRT_USD: [ 'bitfinex' ],
  //   ...
  // }

assets

Quickly fetch all available assets and which exchanges support them.

  const Exchanges = require('crypto-exchange')
  Exchanges.assets()
    .then(console.log)
  // {
  //   BTC: [ 'bitfinex', 'bittrex', 'gdax', 'gemini', 'kraken', 'liqui', 'poloniex' ],
  //   USD: [ 'bitfinex', 'gdax', 'gemini', 'kraken' ],
  //   LTC: [ 'bitfinex', 'bittrex', 'gdax', 'kraken', 'liqui', 'poloniex' ],
  //   ETH: [ 'bitfinex', 'bittrex', 'gdax', 'gemini', 'kraken', 'liqui', 'poloniex' ],
  //   ETC: [ 'bitfinex', 'bittrex', 'kraken', 'poloniex' ],
  //   RRT: [ 'bitfinex' ],
  //   ...
  // }

Public Methods

All public methods are both accessible via a static function and an instance method. If only working with public methods, it is not neccessary to create an instance of the exchange class (one is created internally).

Both examples call the same method:

  const Exchanges = require('crypto-exchange')

  Exchanges.poloniex.ticker('BTC_USDT')
  // => Promise { <pending> }

  const poloniex = new Exchanges.poloniex(apiKeys)
  poloniex.ticker('BTC_USDT')
  // => Promise { <pending> }

ticker

Return current ticker information for a given pair on an exchange.

  ticker(pairs) {
  }
Arguments
  • pairs string, array - One or more pairs to fetch the current ticker for.
Response
  {
    'BTC_USD': {
      last: 2336.00001284,
      ask: 2337.9,
      bid: 2337,
      high: 2380,
      low: 2133,
      volume: 6597.97852916,
      timestamp: 1500461237647 // in milliseconds
    },
    ...
  }

assets

Returns the available assets on an exchange. If the asset is disabled/frozen, it is not included.

  assets() {
  }
Response
  [
    'AMP',
    'ARDR',
    'BCY',
    'BELA',
    'BLK',
    'BTC',
    ...
  ]

pairs

Returns the available pairs on an exchange.

  pairs() {
  }
Response
  [
    'BCN_BTC',
    'BELA_BTC',
    'BLK_BTC',
    'BTCD_BTC',
    'BTM_BTC',
    ...
  ]

depth

Returns the depth of available buy and sell orders.

  depth(pairs[, count = 50]) {
  }
Arguments
  • pairs string, array - One or more pairs to fetch the order book for.
  • depth number (optional) - How big of an order book to return in each direction. DEFAULT: 50
Response
  {
    'ETH_BTC': {
      'asks': [
        [
          0.06773,    // price
          10.30181086 // volume
        ],
        ...
      ],
      'bids': [
        [
          0.0676,     // price
          7.59674753  // volume
        ],
        ...
      ]
    },
    ...
  }

Authenticated Methods

To use authenticated methods, you will need to pass any necessary authentication data needed from the exchange in the constructor of the exchange.

All exchanges require a minimum of 2 items:

  • key
  • secret

Special case authentication:

  • GDAX
    • passphrase

Example:

  const Exchanges = require('crypto-exchange')

  let bittrex = new Exchanges.bittrex({
    key: '',
    secret: ''
  })

  let gdax = new Exchanges.gdax({
    key: '',
    secret: '',
    passphrase: ''
  })

buy/sell

Place a buy or sell order on an exchange.

  buy(pair, amount[, rate[, type[, extra]]]) {
  }
Arguments
  • pair string - A pair value to trade against.
  • amount number - Number representing the amount of BASE to buy/sell.
  • rate number (optional) - Pass a specific rate of the pair to execute.
    • Only optional if exchange API allows "market orders." Must set type accordingly.
  • type string (optional) - Define type of order to execute.
    • Not all exchanges allow to change order type (i.e. market orders).
    • For exchanges that rate is required, it will default to a limit order.
  • extra object (optional) - Extra parameters that are REQUIRED by the exchange, if applicable.
Response

balances

Return current total, available, and pending balances for an exchange.

NOTE: Bitfinex requires a wallet type to fetch. The underlying method fetches all wallet types on request and will refresh, if called, every 2 minutes to allow immediate subsequent calls.

  balances([opts]) {
  }
Arguments
  • opts object (optional) - Additional options.
    • type string (Bitfinex) - Wallet type ('deposit', 'exchange', 'trading').
Response
  {
    'BTC': {
      balance: 0.0000,
      available: 0.0000,
      pending: 0.0000
    },
    ...
  }

address

Return or create a new address to which funds can be deposited.

Note: Due to how Coinbase and GDAX are intertwined, you must pass aditional authentication in order to interact with outside resources.

Note: Bitfinex requires a wallet type.

  address(sym[, opts]) {
  }
Arguments
  • sym string - The asset symbol of the address to fetch.
  • opts object (optional) - Additional options.
    • auth object (Coinbase) - Secondary API authentication.
    • type string (Bitfinex) - Wallet type ('deposit', 'exchange', 'trading').
Response
  "0xae89158b43000e07e76b205b870a1e34653d2668"

Donate

This project is a work in progress as I'm adding more exchanges and functions. Help support this project with a ☕️ or PR!

BTC: 161kbECzKtDKfLXnC5Lwk2hgsQLtg7BNXd

ETH: 0xae89158b43000e07e76b205b870a1e34653d2668

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].