Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
robinhood-yolo
Advanced tools
NodeJS API wrapper for Robinhood Options trading and CLI to trade from your terminal
Robinhood Options API written in Coffeescript and console CLI w/ included account history, positions watch, etc. ☕
NOTE: The Robinhood API is not officially supported and is subject to change at any time. This package is also not actively maintained, so please ensure tests continue to pass before use, and use at your own risk.
npm i -g robinhood-yolo
npm i -g robinhood-yolo@latest
npm i -S robinhood-yolo
npm i -S robinhood-yolo@latest
$ yolo -h
$ yolo -c add_account
x=document.getElementsByTagName('script');for(i of x){y=i.innerText.match(/(?<=clientId: ").[^"]+/);if(y!=null){console.log(y[0])}}
$ yolo -c show_accounts
$ yolo -c dashboard
$ yolo -c trades
$ yolo -c watch
# Stop Loss (places orders)
$ yolo -c stop_loss
# Stop Loss Simulation (printouts only, no orders placed)
$ yolo -c stop_loss_sim
$ yolo -c quote --ticker TSLA
$ yolo -c positions
$ yolo -c find --ticker TSLA --expiry 2019-07-19 --option_type call --strike_type otm --depth 1
$ yolo -c find --ticker TSLA --expiry 2019-07-19 --option_type call --range 3
$ yolo -c buy --url OPTION_URL_HERE --quantity X_CONTRACTS_HERE --price X_PRICE_PER_CONTRACT_HERE
$ yolo -c sell --url OPTION_URL_HERE --quantity X_CONTRACTS_HERE --price X_PRICE_PER_CONTRACT_HERE
$ yolo -c replace --id ORDER_ID_HERE --quantity X_CONTRACTS_HERE --price X_PRICE_PER_CONTRACT_HERE
$ yolo -c cancel --url CANCEL_URL_HERE
$ yolo -c show_accounts
$ yolo -c add_account
$ yolo -c edit_account
$ yolo -c delete_account
// Uses CLI local data, account(s) need to be added via CLI before first use then credentials persist
api = require('robinhood-yolo')()
// You can also manage your own data elsewhere and the API will not automatically persist data as follows
api = require('robinhood-yolo')({
configData: {
d_t: 'BASE64_ENCODED_DEVICE_TOKEN_HERE',
u_n: 'BASE64_ENCODED_PASSWORD_HERE',
p_w: 'BASE64_ENCODED_USERNAME_HERE',
a_t: 'ROBINHOOD_ACCESS_TOKEN_HERE',
r_t: 'ROBINHOOD_REFRESH_TOKEN_HERE',
a_b: 'ROBINHOOD_BEARER_TOKEN_HERE',
t_s: 'ROBINHOOD_LOGIN_TIMESTAMP_HERE'
}
})
api = require('robinhood-yolo')({ newLogin: true, configIndex: 0, configData: null, print: true })
yolo -c add_account
await api.login({ newLogin: true, configIndex: 0 })
await api.getAccount()
await api.getPortfolioInfo()
await api.getAccountEquity()
await api.getCashBalance()
await api.getTransfers()
await api.getMarketHours('2019-07-19')
await api.getWatchList({ watchList: 'Default', instrumentData: false, quoteData: false })
await api.quotes('TSLA')
await api.quotes('TSLA', { chainData: false })
await api.historicals('TSLA')
await api.historicals('TSLA', { span: 'year', bounds: 'regular' })
await api.getOptions('TSLA', '2019-07-19')
await api.getOptions('TSLA', '2019-07-19', { optionType: 'call', marketData: false, expired: false })
await api.findOptions('TSLA', '2019-07-19')
await api.findOptions('TSLA', '2019-07-19', { optionType: 'call', strikeType: 'itm', strikeDepth: 0, marketData: false, range: null, strike: null, expired: false })
await api.findOptionsHistoricals('TSLA', '2019-07-19')
await api.findOptionsHistoricals('TSLA', '2019-07-19', { optionType: 'call', strikeType: 'itm', strikeDepth: 0, strike: null, expired: true, span: 'month' })
await api.optionsPositions()
await api.optionsPositions({ marketData: false, orderData: false, openOnly: true, notFilled: false })
await api.optionsOrders()
await api.optionsOrders({ urls: null, id: null, notFilled: false, buyOnly: false })
await api.stockOrders()
await api.getHistory({ options: true, stocks: true, banking: true, consume: true })
await api.placeOptionOrder('OPTION_URL_HERE', 1.0, 0.53)
await api.placeOptionOrder('OPTION_URL_HERE', 1.0, 0.53, { direction: 'debit', side: 'buy', positionEffect: 'open', legs: null })
await api.cancelOptionOrder('CANCEL_URL_HERE')
await api.replaceOptionOrder(1.0, 0.53, { orderId: 'ORDER_ID_HERE' })
npm run test
and confirm all tests are workingFAQs
NodeJS API wrapper for Robinhood Options trading and CLI to trade from your terminal
The npm package robinhood-yolo receives a total of 9 weekly downloads. As such, robinhood-yolo popularity was classified as not popular.
We found that robinhood-yolo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.