robinhood-client

command module
v0.0.0-...-71b6df6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

Robinhood Client

About

This client library is based on github.com/andrewstuart/go-robinhood. The major differences are:

  • Uses OpenAPI generated structs
  • Conforms to Robinhood's API, which means most fields will be treated as a string type.
  • Includes more testing
  • Extends pagination

Notice

If you have used this library before, and use credential caching, you will need to remove any credential cache and rebuild if you experience errors.

General usage

o := &robinhood.CredsCacher{
  Creds: &robinhood.OAuth{
    Username: os.Getenv("ROBINHOOD_USERNAME"),
    Password: os.Getenv("ROBINHOOD_PASSWORD"),
  },
}
c, _ := robinhood.Dial(&robinhood.CredsCacher{Creds: o})

i, _ := c.GetInstrumentForSymbol("SPY")

Repository Views

HitCount

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL