spookvooper

1.0.5 • Public • Published

SpookVooper

JavaScript Style Guide npm installnfo

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 ⚠️

/spookvooper/

    Package Sidebar

    Install

    npm i spookvooper

    Weekly Downloads

    4

    Version

    1.0.5

    License

    AGPL-3.0-only

    Unpacked Size

    50.8 kB

    Total Files

    4

    Last publish

    Collaborators

    • yslg