1.0.5 • Published 4 years ago

spookvooper v1.0.5

Weekly downloads
-
License
AGPL-3.0-only
Repository
-
Last release
4 years ago

SpookVooper

Ghetto SpookVooper API wrapper

Example Code

Single Stonk Honk Boi

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)

Multi Stonk Honk Boi

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

⚠️ it is expected that you are familiar with Node.js ⚠️

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago