Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { Symbol string `json:"symbol" mapstructure:"symbol"` Name string `json:"name" mapstructure:"name"` Title string `json:"title" mapstructure:"title"` Type string `json:"type" mapstructure:"type"` }
Asset Contains details about a single asset
type AssetStorage ¶
type OHLC ¶
type OHLC struct { Time time.Time `json:"time"` Open float64 `json:"open"` High float64 `json:"high"` Low float64 `json:"low"` Close float64 `json:"close"` Volume int `json:"volume"` }
OHLC End-of-day information of a stock in a simulation
type OHLCStorage ¶
type Order ¶
type Order struct { ID string `json:"id" mapstructure:"id"` Symbol string `json:"symbol" mapstructure:"symbol"` Amount int `json:"amount" mapstructure:"amount"` LimitPrice int `json:"limit_price" mapstructure:"limit_price"` StopPrice int `json:"stop_price" mapstructure:"stop_price"` Filled int `json:"filled" mapstructure:"filled"` Commission int `json:"commission" mapstructure:"commission"` Status OrderStatus `json:"status" mapstructure:"status"` }
Order Stock order data
type OrderStatus ¶
type OrderStatus int
const ( OPEN OrderStatus = iota FILLED OrderStatus = iota CANCELLED OrderStatus = iota REJECTED OrderStatus = iota HELD OrderStatus = iota )
type OrderStorage ¶
Click to show internal directories.
Click to hide internal directories.