I noticed that a MarketDetails object has a property "SecurityType" which can be something like "Stock" or "Future" etc...
In my custom C# provider library, I am trying to define MarketDetails object for an exchange (e.g. National Stock Exchange India), that deals with Stocks, Derivatives and more. Should I create multiple instances of MarketDetails instances - one for each security type?
Where and how is this MarketDetails object used? What importance does the SecurityType property play? If I don't define a MarketDetails instance at all, does it affect my data providers and broker adapters?
How should I go about it?
In my custom C# provider library, I am trying to define MarketDetails object for an exchange (e.g. National Stock Exchange India), that deals with Stocks, Derivatives and more. Should I create multiple instances of MarketDetails instances - one for each security type?
Where and how is this MarketDetails object used? What importance does the SecurityType property play? If I don't define a MarketDetails instance at all, does it affect my data providers and broker adapters?
How should I go about it?
Rename
You should create one instance of the MarketDetails in the Initialize method and then add it to the MarketManager.Markets properly. You can return that instance in your provider’s GetMarketForSymbol method override. You can also override the GetSymbolInfoForSymbol if you want to support more granular details like different security types.
WL8 uses SecurityType to determine if the symbol should consider the Futures Mode preference or not.
WL8 uses SecurityType to determine if the symbol should consider the Futures Mode preference or not.
How is the second parameter (double price) of GetSymbolInfoForSymbol useful in generating a SymbolInfo object?
It's useful for symbols that might have a variable number of decimal places depending on the price.
Your Response
Post
Edit Post
Login is required