Documentation ¶
Index ¶
- func GetMarketCap(symbol string) float64
- type Action
- type Aggregate
- type Alpaca
- func (a *Alpaca) Exit()
- func (a *Alpaca) GetAccount() alpaca.Account
- func (a Alpaca) GetMarketTime() (bool, time.Time, time.Time)
- func (a Alpaca) GetQuote(symbol string) *alpaca.LastQuoteResponse
- func (a Alpaca) ListOpenOrders() []alpaca.Order
- func (a *Alpaca) ListPositions() []alpaca.Position
- func (a Alpaca) OrderBracket(symbol string, qty, price, takeProfit, stopLoss, stopLimit float64)
- func (a Alpaca) OrderLimit(symbol string, qty, limit decimal.Decimal)
- type Financials
- type Polygon
- type Quote
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMarketCap ¶
Types ¶
type Alpaca ¶
func (*Alpaca) GetAccount ¶
func (Alpaca) ListOpenOrders ¶
func (*Alpaca) ListPositions ¶
func (Alpaca) OrderBracket ¶
type Financials ¶
type Financials struct { Results []struct { MarketCapitalization float64 } }
type Polygon ¶
type Polygon struct { Statuses chan Status // contains filtered or unexported fields }
func InitPolygon ¶
func InitPolygon() *Polygon
func (*Polygon) SubscribeTicker ¶
Click to show internal directories.
Click to hide internal directories.