brokerage-api-0.1.0 is not a library.
Visit the last successful build:
brokerage-api-0.2.1
brokerage-api
A Rust library for integrating with various brokerage APIs.
Schwab API
Installation
Add the following to your Cargo.toml file:
[]
= { = "https://github.com/SeanTolino/brokerage-api" }
Authentication
To use the Schwab API, you must first authorize the application. This is done by running the authorize function, which will prompt you to log in to your Schwab account and authorize the application.
use Arc;
use SchwabAuth;
async
After running this code, you will be prompted to open a URL in your browser. After logging in and authorizing the application, you will be redirected to a blank page. Copy the URL of this page and paste it into the terminal. The application will then retrieve and store your access and refresh tokens in a tokens.json file.
Usage
Once you have authorized the application, you can use the SchwabApi to make requests to the Schwab API.
Get Quotes
use Arc;
use ;
async
Get Option Chains
use Arc;
use ;
async