Ghetto SpookVooper API wrapper
const SV = require('spookvooper')
const client = new SV('API KEY')
const target = 'STOCK ONE'
setInterval(async () => {
const available = await client.exchange(target).getAvailable()
if (available > 0) {
client.exchange(target).buyStock(available)
.then(console.log)
.catch(console.error)
}
}, 5000)
const SV = require('spookvooper')
const client = new SV('API KEY')
setInterval(() => {
['TICKER ONE', 'TICKER TWO'].forEach(async (target) => {
const available = await client.exchange(target).getAvailable()
if (available > 0) {
client.exchange(target).buyStock(available)
.then(console.log)
.catch(console.error)
}
})
}, 5000)
If you think the code is bad don't complain
License: AGPL 3.0
Support/Bugs: DM me on Discord, fruitcake5#0336 but dont expect much