Class InstrumentLookup
Inheritance
InstrumentLookup
Assembly: tt-net-api.dll
Syntax
public class InstrumentLookup : UserEventHandler, IDisposable
Constructors
InstrumentLookup(Dispatcher)
Used to lookup/create a user defined strategy in conjunction with CreateStrategy()
Declaration
public InstrumentLookup(Dispatcher dispatcher)
Parameters
InstrumentLookup(Dispatcher, InstrumentKey)
Lookup an instrument by alias using an InstrumentKey
Declaration
public InstrumentLookup(Dispatcher dispatcher, InstrumentKey instrumentKey)
Parameters
InstrumentLookup(Dispatcher, MarketId, ProductType, string, string)
Lookup an instrument by product and alias
Declaration
public InstrumentLookup(Dispatcher dispatcher, MarketId marketId, ProductType productType, string productName, string alias)
Parameters
InstrumentLookup(Dispatcher, ProductKey, string)
Lookup an instrument by product and name (not alias)
Declaration
public InstrumentLookup(Dispatcher dispatcher, ProductKey key, string name)
Parameters
Properties
Alias
Declaration
public string Alias { get; }
Property Value
ContractName
Declaration
public string ContractName { get; }
Property Value
Instrument
Declaration
public Instrument Instrument { get; }
Property Value
MarketId
Declaration
public MarketId MarketId { get; }
Property Value
ProductName
Declaration
public string ProductName { get; }
Property Value
ProductType
Declaration
public ProductType ProductType { get; }
Property Value
Methods
CreateStrategy(List<StrategyLegDefinition>, Account, MarketId, ComboCode)
Find or create a strategy on the given market for the given legs. The subType param is
optional as some exchanges will figure it out from the leg information.
Please note it is required for Eurex so if the ComboCode if it is not known, please try
ComboCode.NonStandardCombination and see if the exchange will figure out the proper code.
Declaration
public void CreateStrategy(List<StrategyLegDefinition> legs, Account account, MarketId marketId, ComboCode subType = ComboCode.NotSet)
Parameters
Dispose()
Declaration
public virtual void Dispose()
Get()
Declaration
public ProductDataEvent Get()
Returns
GetAsync()
Declaration
Events
OnData
Declaration
public event EventHandler<InstrumentLookupEventArgs> OnData
Event Type
Implements