Documentation ¶
Index ¶
- func CheckStockfighterHeartbeat()
- func CreateWebsocket(path string) *websocket.Conn
- func StockfighterAPI(endpoint string) []byte
- func StockfighterPost(endpoint string, body io.Reader) []byte
- type APIStatus
- type GM
- type InstanceType
- type LevelCreate
- type Order
- type OrderBook
- type OrderBroker
- type PlaceOrderType
- type QuoteType
- type StockDetails
- type Tickertape
- type VenueStatus
- type VenueStocks
- type Websocket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckStockfighterHeartbeat ¶
func CheckStockfighterHeartbeat()
func CreateWebsocket ¶
func StockfighterAPI ¶
Types ¶
type GM ¶
func (*GM) CreateLevel ¶
func (g *GM) CreateLevel() LevelCreate
func (*GM) GetInstanceDetails ¶
func (g *GM) GetInstanceDetails() InstanceType
type InstanceType ¶
type LevelCreate ¶
type OrderBroker ¶
func (*OrderBroker) Buy ¶
func (ob *OrderBroker) Buy(quantity int, price int)
func (*OrderBroker) CheckVenueHeartbeat ¶
func (ob *OrderBroker) CheckVenueHeartbeat()
func (*OrderBroker) GetOrderBook ¶
func (ob *OrderBroker) GetOrderBook() OrderBook
func (*OrderBroker) GetQuote ¶
func (ob *OrderBroker) GetQuote() QuoteType
func (*OrderBroker) GetStock ¶
func (ob *OrderBroker) GetStock() VenueStocks
type PlaceOrderType ¶
type QuoteType ¶
type QuoteType struct { Symbol string `json:"symbol"` Venue string `json:"venue"` Bid int `json:"bid"` Ask int `json:"ask"` BidSize int `json:"bidSize"` AskSize int `json:"askSize"` BidDepth int `json:"bidDepth"` AskDepth int `json:"askDepth"` Last int `json:"last"` LastSize int `json:"lastSize"` LastTrade string `json:"lastTrade"` QuoteTime string `json:"quoteTime"` }
type StockDetails ¶
type Tickertape ¶
type VenueStatus ¶
type VenueStocks ¶
type VenueStocks struct { OK bool `json:"ok"` Stocks []StockDetails `json:"symbols"` }
type Websocket ¶
type Websocket struct {
// contains filtered or unexported fields
}
func NewWebsocket ¶
func (*Websocket) CloseWebSocket ¶
func (ws *Websocket) CloseWebSocket()
func (*Websocket) ReceiveWebsocketMsg ¶
Click to show internal directories.
Click to hide internal directories.