- Clone the repo:
git clone https://github.com/jonathantzh/qcp_arbitrage_bot.git
- Create a
keys
folder in the project root directory, withkeys.js
file inside - Export your Kucoin and CoinMarketCap API keys from the
keys.js
file, as shown below:
exports.kucoinApiKey = '<MY KUCOIN API KEY>'
exports.kucoinApiSecret = '<MY KUCOIN API SECRET>'
exports.coinmarketcapApiKey = '<MY COINMARKETCAP API KEY>'
sudo docker build -t qcp_arbitrage .
docker run -p 9500:9500 qcp_arbitrage
- Run
npm install
in project root directory - Run
npm start
to start HTTP server on port 9500
curl http://localhost:9500/arbitrageResults
to retrieve all arbitrage resultscurl http://localhost:9500/arbitrageResult?instrument={instrument (e.g. LTC-BTC)}
to retrieve arbitrage result for single instrument- If using PowerShell
curl
, you may need to add the flag-UseBasicParsing