Documentation ¶
Index ¶
- func FilterByBuyable(stocks ...stock.Stock) []stock.Stock
- func FilterByRisk(a *Alpaca, symbols []string) []string
- func FilterByTradability(a *Alpaca) []string
- type Alpaca
- func (a Alpaca) GetMarketTime() (bool, time.Time, time.Time)
- func (a Alpaca) GetQuote(symbol string) *alpaca.LastQuoteResponse
- func (a Alpaca) GetSpendableAmount() float64
- func (a Alpaca) GetStocks(symbols ...string) []stock.Stock
- func (a Alpaca) LiquidatePosition(order alpaca.Order)
- func (a Alpaca) ListOpenOrders() []alpaca.Order
- func (a Alpaca) OrderBracket(symbol string, qty, takeProfit, stopLoss, stopLimit float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterByRisk ¶
func FilterByTradability ¶
Types ¶
type Alpaca ¶
func (Alpaca) GetSpendableAmount ¶
func (Alpaca) LiquidatePosition ¶
func (Alpaca) ListOpenOrders ¶
func (Alpaca) OrderBracket ¶
Click to show internal directories.
Click to hide internal directories.