Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- type Credentials
- type Environment
- type Error
- type StreamEvent
- type StreamEventData
- func (s StreamEventData) ContainsKey(key string) bool
- func (s StreamEventData) Float32(key string) float32
- func (s StreamEventData) Float64(key string) float64
- func (s StreamEventData) Int(key string) int
- func (s StreamEventData) Int64(key string) int64
- func (s StreamEventData) Interface(key string) interface{}
- func (s StreamEventData) String(key string) string
Constants ¶
View Source
const ( Paper Environment = "paper" Live = "live" Data = "https://data.alpaca.markets/" Version = "v2" )
Variables ¶
View Source
var ( // DefaultClient is a shared client using environment variables for authentication. DefaultClient = NewClient(&Credentials{ KeyID: os.Getenv("ALPACA_KEY_ID"), SecretKey: os.Getenv("ALPACA_SECRET_KEY"), }) )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Environment Environment Credentials *Credentials }
Client null
type Credentials ¶
Credentials null
type StreamEvent ¶
type StreamEvent struct { Stream string `json:"stream"` Data StreamEventData `json:"data"` }
StreamEvent null
type StreamEventData ¶
type StreamEventData map[string]interface{}
StreamEventData null
func (StreamEventData) ContainsKey ¶
func (s StreamEventData) ContainsKey(key string) bool
ContainsKey null
func (StreamEventData) Interface ¶
func (s StreamEventData) Interface(key string) interface{}
Interface null
Click to show internal directories.
Click to hide internal directories.