Documentation
¶
Index ¶
- type Cache
- func (c *Cache) Account(id model.AccountID) (model.AccountSnapshot, bool)
- func (c *Cache) AccountHistory(id model.AccountID) []model.AccountSnapshot
- func (c *Cache) Bar(barType model.BarType) (model.Bar, bool)
- func (c *Cache) ClearDeferredFillsForOrder(accountID model.AccountID, orderID model.OrderID)
- func (c *Cache) ClosedOrders(accountID model.AccountID) []model.OrderStatusReport
- func (c *Cache) ClosedPositions(accountID model.AccountID) []model.PositionStatusReport
- func (c *Cache) CustomData(instrumentID model.InstrumentID, typ string) (model.CustomData, bool)
- func (c *Cache) DeferredFillsForOrder(accountID model.AccountID, orderID model.OrderID) []model.FillReport
- func (c *Cache) FillByTradeID(accountID model.AccountID, tradeID model.TradeID) (model.FillReport, bool)
- func (c *Cache) FillsByVenueOrderID(accountID model.AccountID, venueOrderID model.VenueOrderID) []model.FillReport
- func (c *Cache) FillsForOrder(accountID model.AccountID, orderID model.OrderID) []model.FillReport
- func (c *Cache) FundingRate(instrumentID model.InstrumentID) (model.FundingRate, bool)
- func (c *Cache) Instrument(id model.InstrumentID) (model.Instrument, bool)
- func (c *Cache) Instruments() []model.Instrument
- func (c *Cache) LatestBar(instrumentID model.InstrumentID) (model.Bar, bool)
- func (c *Cache) OpenOrders(accountID model.AccountID) []model.OrderStatusReport
- func (c *Cache) OpenPositions(accountID model.AccountID) []model.PositionStatusReport
- func (c *Cache) Order(accountID model.AccountID, orderID model.OrderID) (model.OrderStatusReport, bool)
- func (c *Cache) OrderBook(instrumentID model.InstrumentID) (model.OrderBook, bool)
- func (c *Cache) OrderByClientID(accountID model.AccountID, clientOrderID model.ClientOrderID) (model.OrderStatusReport, bool)
- func (c *Cache) OrderByVenueID(accountID model.AccountID, venueOrderID model.VenueOrderID) (model.OrderStatusReport, bool)
- func (c *Cache) Orders(accountID model.AccountID) []model.OrderStatusReport
- func (c *Cache) OrdersByExecSpawnID(accountID model.AccountID, execSpawnID model.ExecSpawnID) []model.OrderStatusReport
- func (c *Cache) OrdersByOrderListID(accountID model.AccountID, orderListID model.OrderListID) []model.OrderStatusReport
- func (c *Cache) OrdersByPositionID(accountID model.AccountID, positionID model.PositionID) []model.OrderStatusReport
- func (c *Cache) OrdersByStrategy(accountID model.AccountID, strategyID model.StrategyID) []model.OrderStatusReport
- func (c *Cache) Position(accountID model.AccountID, positionID model.PositionID) (model.PositionStatusReport, bool)
- func (c *Cache) PositionByInstrument(accountID model.AccountID, instrumentID model.InstrumentID) (model.PositionStatusReport, bool)
- func (c *Cache) PositionByVenueID(accountID model.AccountID, venuePositionID model.VenuePositionID) (model.PositionStatusReport, bool)
- func (c *Cache) Positions(accountID model.AccountID) []model.PositionStatusReport
- func (c *Cache) PositionsByStrategy(accountID model.AccountID, strategyID model.StrategyID) []model.PositionStatusReport
- func (c *Cache) PositionsForInstrument(instrumentID model.InstrumentID) []model.PositionStatusReport
- func (c *Cache) Purge(accountID model.AccountID, policy PurgePolicy) PurgeResult
- func (c *Cache) PutAccount(account model.AccountSnapshot)
- func (c *Cache) PutDeferredFill(fill model.FillReport) (bool, error)
- func (c *Cache) PutFill(fill model.FillReport) (bool, error)
- func (c *Cache) PutInstrument(inst model.Instrument) error
- func (c *Cache) PutMarketEvent(event model.MarketEvent) error
- func (c *Cache) PutOrder(order model.OrderStatusReport) error
- func (c *Cache) PutPosition(position model.PositionStatusReport) error
- func (c *Cache) PutSyntheticInstrument(inst model.SyntheticInstrument) error
- func (c *Cache) QuoteTick(instrumentID model.InstrumentID) (model.QuoteTick, bool)
- func (c *Cache) Residuals(accountID model.AccountID) Residuals
- func (c *Cache) Snapshot(accountID model.AccountID) Snapshot
- func (c *Cache) SyntheticInstrument(id model.InstrumentID) (model.SyntheticInstrument, bool)
- func (c *Cache) SyntheticInstruments() []model.SyntheticInstrument
- func (c *Cache) Ticker(instrumentID model.InstrumentID) (model.Ticker, bool)
- func (c *Cache) TradeTick(instrumentID model.InstrumentID) (model.TradeTick, bool)
- type PurgePolicy
- type PurgeResult
- type Residuals
- type Snapshot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) AccountHistory ¶
func (c *Cache) AccountHistory(id model.AccountID) []model.AccountSnapshot
func (*Cache) ClearDeferredFillsForOrder ¶
func (*Cache) ClosedOrders ¶
func (c *Cache) ClosedOrders(accountID model.AccountID) []model.OrderStatusReport
func (*Cache) ClosedPositions ¶
func (c *Cache) ClosedPositions(accountID model.AccountID) []model.PositionStatusReport
func (*Cache) CustomData ¶
func (c *Cache) CustomData(instrumentID model.InstrumentID, typ string) (model.CustomData, bool)
func (*Cache) DeferredFillsForOrder ¶
func (*Cache) FillByTradeID ¶
func (*Cache) FillsByVenueOrderID ¶
func (c *Cache) FillsByVenueOrderID(accountID model.AccountID, venueOrderID model.VenueOrderID) []model.FillReport
func (*Cache) FillsForOrder ¶
func (*Cache) FundingRate ¶
func (c *Cache) FundingRate(instrumentID model.InstrumentID) (model.FundingRate, bool)
func (*Cache) Instrument ¶
func (c *Cache) Instrument(id model.InstrumentID) (model.Instrument, bool)
func (*Cache) Instruments ¶
func (c *Cache) Instruments() []model.Instrument
func (*Cache) OpenOrders ¶
func (c *Cache) OpenOrders(accountID model.AccountID) []model.OrderStatusReport
func (*Cache) OpenPositions ¶
func (c *Cache) OpenPositions(accountID model.AccountID) []model.PositionStatusReport
func (*Cache) OrderByClientID ¶
func (c *Cache) OrderByClientID(accountID model.AccountID, clientOrderID model.ClientOrderID) (model.OrderStatusReport, bool)
func (*Cache) OrderByVenueID ¶
func (c *Cache) OrderByVenueID(accountID model.AccountID, venueOrderID model.VenueOrderID) (model.OrderStatusReport, bool)
func (*Cache) OrdersByExecSpawnID ¶
func (c *Cache) OrdersByExecSpawnID(accountID model.AccountID, execSpawnID model.ExecSpawnID) []model.OrderStatusReport
func (*Cache) OrdersByOrderListID ¶
func (c *Cache) OrdersByOrderListID(accountID model.AccountID, orderListID model.OrderListID) []model.OrderStatusReport
func (*Cache) OrdersByPositionID ¶
func (c *Cache) OrdersByPositionID(accountID model.AccountID, positionID model.PositionID) []model.OrderStatusReport
func (*Cache) OrdersByStrategy ¶
func (c *Cache) OrdersByStrategy(accountID model.AccountID, strategyID model.StrategyID) []model.OrderStatusReport
func (*Cache) Position ¶
func (c *Cache) Position(accountID model.AccountID, positionID model.PositionID) (model.PositionStatusReport, bool)
func (*Cache) PositionByInstrument ¶
func (c *Cache) PositionByInstrument(accountID model.AccountID, instrumentID model.InstrumentID) (model.PositionStatusReport, bool)
func (*Cache) PositionByVenueID ¶
func (c *Cache) PositionByVenueID(accountID model.AccountID, venuePositionID model.VenuePositionID) (model.PositionStatusReport, bool)
func (*Cache) Positions ¶
func (c *Cache) Positions(accountID model.AccountID) []model.PositionStatusReport
func (*Cache) PositionsByStrategy ¶
func (c *Cache) PositionsByStrategy(accountID model.AccountID, strategyID model.StrategyID) []model.PositionStatusReport
func (*Cache) PositionsForInstrument ¶
func (c *Cache) PositionsForInstrument(instrumentID model.InstrumentID) []model.PositionStatusReport
func (*Cache) Purge ¶
func (c *Cache) Purge(accountID model.AccountID, policy PurgePolicy) PurgeResult
func (*Cache) PutAccount ¶
func (c *Cache) PutAccount(account model.AccountSnapshot)
func (*Cache) PutDeferredFill ¶
func (c *Cache) PutDeferredFill(fill model.FillReport) (bool, error)
func (*Cache) PutInstrument ¶
func (c *Cache) PutInstrument(inst model.Instrument) error
func (*Cache) PutMarketEvent ¶
func (c *Cache) PutMarketEvent(event model.MarketEvent) error
func (*Cache) PutPosition ¶
func (c *Cache) PutPosition(position model.PositionStatusReport) error
func (*Cache) PutSyntheticInstrument ¶
func (c *Cache) PutSyntheticInstrument(inst model.SyntheticInstrument) error
func (*Cache) SyntheticInstrument ¶
func (c *Cache) SyntheticInstrument(id model.InstrumentID) (model.SyntheticInstrument, bool)
func (*Cache) SyntheticInstruments ¶
func (c *Cache) SyntheticInstruments() []model.SyntheticInstrument
type PurgePolicy ¶
type PurgeResult ¶
type Snapshot ¶
type Snapshot struct {
AccountID model.AccountID
Account model.AccountSnapshot
AccountHistory []model.AccountSnapshot
OpenOrders []model.OrderStatusReport
ClosedOrders []model.OrderStatusReport
OpenPositions []model.PositionStatusReport
ClosedPositions []model.PositionStatusReport
DeferredFills []model.FillReport
Residuals Residuals
}
Click to show internal directories.
Click to hide internal directories.