Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1023 Bytes

README.md

File metadata and controls

45 lines (34 loc) · 1023 Bytes

gotd - TD Ameritrade API in Go

GoDoc

Table of Contents

Apply

Installation

$ go get github.com/z-Wind/gotd

Examples

HTTP

auth := NewAuth()
client := auth.GetClient(clientsecretPath, "TDAmeritrade-go.json")
td, err := New(client)

HTTPS

auth := NewAuth()
auth.SetTLS(TLSCertPath, TLSKeyPath)
client := auth.GetClient(clientsecretPath, "TDAmeritrade-go.json")
td, err := New(client)

Quotes

call := td.Quotes.GetQuote("VTI")
quote, err := call.Do()

Reference