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.2 to 1.1.3

19

api/calls.js

@@ -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 @@ }

2

package.json
{
"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.

@@ -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);

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