robinhood-api
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -47,3 +47,3 @@ module.exports = { | ||
}, | ||
'achTransfer': { | ||
'automaticACHTransfer': { | ||
description: 'Perform an ACH transfer to fund this account.', | ||
@@ -65,2 +65,19 @@ path: '/ach/deposit_schedules/', | ||
}, | ||
'ACHTransfer': { | ||
description: 'Perform a one time ACH transfer to or from your bank account.', | ||
path: '/ach/transfers/', | ||
fields: { | ||
amount: { | ||
required: true | ||
}, | ||
ach_relationship: { | ||
required: true | ||
}, | ||
direction: { | ||
required: true, | ||
enum: ['widthdraw', 'deposit'] | ||
} | ||
}, | ||
method: 'POST' | ||
}, | ||
'getUserData': { | ||
@@ -67,0 +84,0 @@ description: 'Get the user\'s basic account information.', |
@@ -73,2 +73,8 @@ "use strict"; | ||
details.push({ | ||
'Method' : 'robinhood.postResource(url)', | ||
'Description' : 'Post to a URL from an API response such an order cancellation request.', | ||
'Options' : {} | ||
}); | ||
return details; | ||
@@ -75,0 +81,0 @@ } |
{ | ||
"name": "robinhood-api", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Robinhood API Wrapper", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -65,3 +65,3 @@ # Overview | ||
* relationship_id - Required: true | ||
## robinhood.achTransfer(opts) | ||
## robinhood.automaticACHTransfer(opts) | ||
Perform an ACH transfer to fund this account. | ||
@@ -72,2 +72,8 @@ ### Options | ||
* frequency - Required: false (Valid Values: weekly,biweekly,monthly,quarterly) | ||
## robinhood.ACHTransfer(opts) | ||
Perform a one time ACH transfer to or from your bank account. | ||
### Options | ||
* amount - Required: true | ||
* ach_relationship - Required: true | ||
* direction - Required: true (Valid Values: widthdraw,deposit) | ||
## robinhood.getUserData(opts) | ||
@@ -74,0 +80,0 @@ Get the user's basic account information. |
11
test.js
@@ -6,11 +6,8 @@ const RobinHood = require('./index.js'); | ||
let rh = new RobinHood(); | ||
await rh.login({username: process.env.ROBINHOOD_USERNAME, password: process.env.ROBINHOOD_PASSWORD}); | ||
//let test = await rh.getAccounts(); | ||
test = await rh.getUserData(); | ||
console.log(test); | ||
test = await rh.getAccounts(); | ||
console.log(test); | ||
console.log('Logged in!'); | ||
let relationships = await rh.getACHRelationships(); | ||
console.log(relationships); | ||
}catch(e){ | ||
@@ -17,0 +14,0 @@ console.log('Error Code ' + e.code); |
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
19110
435
139