Browse Source

Change all ref from USD to USDT

master
Jonathan Sterling 7 years ago
parent
commit
28f8696551
  1. 9
      README.md
  2. 6
      index.js

9
README.md

@ -1,4 +1,5 @@
1. Install NodeJS
2. Navigate to the project's directory in your terminal/command line
3. Run the command `TARGET_LSK_USD_PRICE={USD PRICE YOU WANT TO SELL AT} QUANTITY_TO_SELL={QUANTITY OF LSK YOU WANT O SELL} API_KEY={YOUR_KEY} API_SECRET={YOUR_SECRET} node index.js`
1. Example: `TARGET_LSK_USD_PRICE=12.43 QUANTITY_TO_SELL=550 API_KEY=3242dsfs34gsg API_SECRET=32dkk3sf33434 node index.js`
1. Install NodeJS
2. Generate an API key on Bittrex - note down the key and secret
3. Navigate to the project's directory in your terminal/command line
4. Run the command `TARGET_LSK_USDT_PRICE={USDT PRICE YOU WANT TO SELL AT} QUANTITY_TO_SELL={QUANTITY OF LSK YOU WANT O SELL} API_KEY={YOUR_KEY} API_SECRET={YOUR_SECRET} node index.js`
1. Example: `TARGET_LSK_USDT_PRICE=12.43 QUANTITY_TO_SELL=550 API_KEY=3242dsfs34gsg API_SECRET=32dkk3sf33434 node index.js`

6
index.js

@ -1,12 +1,12 @@
const bittrex = require('node-bittrex-api');
const targetLskUsdtPrice = process.env['TARGET_LSK_USD_PRICE'];
const targetLskUsdtPrice = process.env['TARGET_LSK_USDT_PRICE'];
const quantityToSell = process.env['QUANTITY_TO_SELL'];
const howOftenToCheckInSecs = 10;
const howOftenToCheckInMs = howOftenToCheckInSecs * 1000;
console.log('Target Price', process.env['TARGET_LSK_USD_PRICE']);
console.log('Quantity to sell', process.env['QUANTITY_TO_SELL']);
console.log('Target Price', targetLskUsdtPrice);
console.log('Quantity to sell', quantityToSell);
console.log('Key', process.env['API_KEY']);
console.log('Checking every ', howOftenToCheckInSecs + ' seconds.');

Loading…
Cancel
Save