Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

robinhood-api

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

robinhood-api - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

31

api/calls.js

@@ -134,6 +134,14 @@ module.exports = {

description: 'Get the user\'s portfolio historicals',
path: '/portfolios/historicals/%account_number%',
path: '/portfolios/historicals/%account_number%/',
fields: {
account_number: {
required: true
},
interval: {
required: false,
enum: ['week', 'day', '10minute', '5minute']
},
span: {
required: false,
enum: ['day', 'week', 'year', '5year', 'all']
}

@@ -143,2 +151,23 @@ },

},
getTickerHistoricals: {
description: 'Get historicals for a particular symbol',
path: '/quotes/historicals/%symbol%/',
fields: {
symbol: {
required: true,
transform(i){
return i.toUpperCase();
}
},
interval: {
required: false,
enum: ['week', 'day', '10minute', '5minute']
},
span: {
required: false,
enum: ['day', 'week', 'year', '5year', 'all']
}
},
method: 'GET'
},
'getOrder': {

@@ -145,0 +174,0 @@ description: 'Get an order via the order_id parameter.',

2

package.json
{
"name": "robinhood-api",
"version": "1.1.6",
"version": "1.1.7",
"description": "Robinhood API Wrapper",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -79,3 +79,3 @@ # Overview

* ach_relationship - Required: true
* direction - Required: true (Valid Values: widthdraw,deposit)
* direction - Required: true (Valid Values: withdraw,deposit)
## robinhood.getACHTransfer(opts)

@@ -105,2 +105,10 @@ Get list of one time ACH transfers to or from your bank account.

* account_number - Required: true
* interval - Required: false (Valid Values: week,day,10minute,5minute)
* span - Required: false (Valid Values: day,week,year,5year,all)
## robinhood.getTickerHistoricals(opts)
Get historicals for a particular symbol
### Options
* symbol - Required: true
* interval - Required: false (Valid Values: week,day,10minute,5minute)
* span - Required: false (Valid Values: day,week,year,5year,all)
## robinhood.getOrder(opts)

@@ -107,0 +115,0 @@ Get an order via the order_id parameter.

@@ -8,6 +8,2 @@ const RobinHood = require('./index.js');

await rh.login({username: process.env.ROBINHOOD_USERNAME, password: process.env.ROBINHOOD_PASSWORD});
let relationships = await rh.getACHRelationships();
console.log(relationships);
}catch(e){

@@ -14,0 +10,0 @@ console.log('Error Code ' + e.code);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc