Files

42 lines
1.1 KiB
Go

package client
// Side is an order side. Values are Robinhood wire strings.
type Side string
const (
Buy Side = "buy"
Sell Side = "sell"
)
// OrderType is an order type. Values are Robinhood wire strings.
type OrderType string
const (
Market OrderType = "market"
Limit OrderType = "limit"
Stop OrderType = "stop_market" // equity + options; crypto uses StopLoss
StopLimit OrderType = "stop_limit"
StopLoss OrderType = "stop_loss" // crypto only
)
// TimeInForce is an order duration. Values are Robinhood wire strings.
type TimeInForce string
const (
GFD TimeInForce = "gfd"
GTC TimeInForce = "gtc"
GFW TimeInForce = "gfw" // crypto
GFM TimeInForce = "gfm" // crypto
)
// MarketHours is a trading-session window. Values are Robinhood wire strings.
type MarketHours string
const (
RegularHours MarketHours = "regular_hours"
ExtendedHours MarketHours = "extended_hours"
AllDayHours MarketHours = "all_day_hours"
RegularCurbHours MarketHours = "regular_curb_hours"
RegularCurbOvernightHours MarketHours = "regular_curb_overnight_hours"
)