Skip to content

bitoex/cross-exchange-arbitrage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cross Exchange Arbitrage

This project could help you do arbitrage trading between BitoPro and other mainstream cryptocurrency exchanges.

Prerequisites

  1. Node.js above version 8.
  2. BitoPro account and the trading API key relative to the account.
  3. Other mainsteam account and the trading API key relative to the account, for example: Binance, okex.

Install

Install dependencies with npm

npm install

Setup

Copy configuration template.

cp setting.json.example setting.json

Edit setting.json file before launch the robot.

{
  "vendorName": "binance",
  "vendorAPIKey": "",
  "vendorAPISecret": "",
  "bitoproAPIKey": "",
  "bitoproAPISecret": "",
  "bitoproEmail": "",
  "bitoproPair": "btc_usdt",
  "vendorPair": "BTC/USDT",
  "openOrderProfitPercentThreshold": 0.5,
  "maxValuePerArbitrage": 50
}
  • vendorName: We use ccxt to develop the project so that you can choose the exchange that ccxt support to trade between BitoPro and the vendor exchange.
  • vendorAPIKey: The API key that can trade on your vendor exchange.
  • vendorAPISecret: The API secret that can trade on your vendor exchange.
  • bitoproAPIKey: The API key that can trade on BitoPro.
  • bitoproAPISecret: The API secret that can trade on BitoPro.
  • bitoproEmail: The email account which is used to geneate the bitoproAPIKey.
  • bitoproPair: The trading pair is listed on BitoPro. For example: btc_usdt, eth_usdt or btc_eth.
  • vendorPair: The trading pair is listed on the vendor exchange. It follows the ccxt rules.
  • openOrderProfitPercentThreshold: The target threshold in percentage to open orders. For example: If we set the openOrderProfitPercentThreshold to 0.5, the robot will open orders if and only if the arbitrage profit is over 0.5%.
  • maxValuePerArbitrage: The total value for each order. For example: When the target pair is BTC/USDT and the maxValuePerArbitrage is set to 1000 means the program will open orders with amount in BTC unit that is approximately worth 1000 USDT for each order.

Running the robot

node index.js
// or
npm start

That's it. Hope the project will make you rich!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published