Click or drag to resize

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.

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: (4.4.16)
public static ExchangeBoard GetOrCreateBoard(
	this IExchangeInfoProvider exchangeInfoProvider,
	string code,
	out bool isNew,
	Func<string, ExchangeBoard> createBoard = null


Type: StockSharp.Algo.StoragesIExchangeInfoProvider
Exchanges and trading boards provider.
Type: SystemString
Board code.
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.

Return Value

Type: ExchangeBoard
Exchange board.

Usage Note

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).
See Also