sv-bot-wrapper
v1.0.3
Published
## step 1: install the npm package `npm i sv-bot-wrapper`
Downloads
2
Readme
How to set up a stock bot
step 1:
install the npm package
npm i sv-bot-wrapper
step 2:
add const svs = require('sv-bot-wrapper')
to the beginning to your new javascript file
that is all that stuff, time for the good stuff (the documentation)
The documentation
sell stocks
svs.sellStocks(ticker, amount, api_key)
result: prints the response to the request
buy stocks
svs.buyStocks(ticker, amount, api_key)
result: prints the response to the request
calculate stock price (buy)
svs.calcBuy(ticker, amount)
result: prints the response to the request
calculate stock price (sell)
svs.calcSell(ticker, amount)
result: prints the response to the request