Created
August 1, 2015 03:32
-
-
Save sigwo/2b9055e199b9c85ea76a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bittrex = require('node.bittrex.api'); | |
var coins = []; | |
// Needs node.js and node.bittrex.api installed. Tip sigwo @ 1PbA7fRF4ZfTK4puALyRCanCp3UAsKS3SP | |
function getDelist() { | |
bittrex.getmarkets(function(data) { | |
console.log('Checking for pump material (in danger of delist)'); | |
sig=data.result | |
Object.keys(sig).forEach(function(coin) { | |
var Name = data.result[coin].MarketCurrency; | |
var Notice = data.result[coin].Notice; | |
var Active = data.result[coin].IsActive; | |
coins[Name] = { | |
MarketCurrency: data.result[coin].MarketCurrency, | |
Notice: data.result[coin].Notice, | |
IsActive: data.result[coin].IsActive, | |
}; | |
if(Notice != null && Notice != undefined && Notice != '') { | |
console.log(Name + ': Is a candidate! MEWN SEWN!'); | |
}; | |
}); | |
}); | |
}; | |
getDelist(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment