- ago
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?
0
102
Solved
3 Replies

Reply

Bookmark

Sort
Glitch8
 ( 10.06% )
- ago
#1
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.
0
Best Answer
- ago
#2
How is the second parameter (double price) of GetSymbolInfoForSymbol useful in generating a SymbolInfo object?
0
Glitch8
 ( 10.06% )
- ago
#3
It's useful for symbols that might have a variable number of decimal places depending on the price.
1

Reply

Bookmark

Sort