robinhood-api
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -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.', |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20064
476
153