feat: add MCP enums, ToolError, and Caller
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
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"
|
||||
)
|
||||
Reference in New Issue
Block a user