Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instrument ¶
type Instrument struct { ID string Code string Name string Metadata *types.InstrumentMetadata Product products.Product Quote string }
Instrument represent an instrument used in a market.
func NewInstrument ¶
func NewInstrument(ctx context.Context, log *logging.Logger, pi *types.Instrument, oe products.OracleEngine) (*Instrument, error)
NewInstrument will instantiate a new instrument using a market framework configuration for a instrument.
func (*Instrument) Unsubscribe ¶
func (i *Instrument) Unsubscribe(ctx context.Context)
func (*Instrument) UnsubscribeSettlementPrice ¶ added in v0.55.0
func (i *Instrument) UnsubscribeSettlementPrice(ctx context.Context)
func (*Instrument) UnsubscribeTradingTerminated ¶ added in v0.55.0
func (i *Instrument) UnsubscribeTradingTerminated(ctx context.Context)
type TradableInstrument ¶
type TradableInstrument struct { Instrument *Instrument MarginCalculator *types.MarginCalculator RiskModel risk.Model }
TradableInstrument represent an instrument to be trade in a market.
func NewTradableInstrument ¶
func NewTradableInstrument(ctx context.Context, log *logging.Logger, pti *types.TradableInstrument, oe products.OracleEngine) (*TradableInstrument, error)
NewTradableInstrument will instantiate a new tradable instrument using a market framework configuration for a tradable instrument.
func (*TradableInstrument) UpdateInstrument ¶
func (i *TradableInstrument) UpdateInstrument(ctx context.Context, log *logging.Logger, ti *types.TradableInstrument, oe products.OracleEngine) error
Click to show internal directories.
Click to hide internal directories.