iamwavecut / robinhood-client

A wrapper for the Robinhood API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A wrapper for the Robinhood API

License:Apache License 2.0


Languages

Language:Go 98.1%Language:Shell 1.9%