api-robinhood
v1.5.1
Published
Create an authenticated connection to the Robinhood APIs
Readme
api-robinhood
Easily authenticate and interact with Robinhood's API using the api-robinhood package. This package authenticates to Robhinhood APIs usiing your private key and API key generated for your account. You can read more about the Robinhood APIs at this link.
❤️ Support the Project
If this package has been helpful to you, consider showing your support!
💰 Donate via Venmo @Jack_Bolger_
Your generosity helps maintain and improve this project—thank you! 🙌
Installation
Install the package via npm:
npm install api-robinhoodor using Yarn:
yarn add api-robinhoodUsage
The Robinhood class allows developers to establish an authenticated connection to Robinhood's APIs.
Import and Initialize
import Robinhood from "api-robinhood";
const robinhood = new Robinhood(
{
apiKey: "your_api_key",
privateKey: "your_private_key"
}
);
// OR
const robinhood = new Robinhood();
robinhood.setApiKey("your_api_key");
robinhood.setPrivateKey("your_private_key");Send Requests
await robinhood.request("/api/v1/crypto/trading/accounts");Contributing
Feel free to open issues or submit pull requests to enhance the package.
License
MIT
