TraderHelperGetOrCreateBoard Method (IExchangeInfoProvider, String, Boolean, FuncString, ExchangeBoard)
To get a board by its code. If board with the passed name does not exist, then it will be created.
StockSharp.Algo (in StockSharp.Algo.dll) Version: 220.127.116.11 (4.4.16)
public static ExchangeBoard GetOrCreateBoard(
this IExchangeInfoProvider exchangeInfoProvider,
out bool isNew,
Func<string, ExchangeBoard> createBoard = null
- Type: StockSharp.Algo.StoragesIExchangeInfoProvider
Exchanges and trading boards provider.
- Type: SystemString
- Type: SystemBoolean
Is newly created.
- createBoard (Optional)
- Type: SystemFuncString, ExchangeBoard
The handler creating a board, if it is not found. If the value is , then the board is created by default initialization.
In Visual Basic and C#, you can call this method as an instance method on any object of type IExchangeInfoProvider
. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic)
or Extension Methods (C# Programming Guide)