Interface IEntityFactory
- Namespace
- StockSharp.Algo
- Assembly
- StockSharp.Algo.dll
[Obsolete]
public interface IEntityFactory
- Extension Methods
Methods
CreateBoard(string, Exchange)
To create exchange.
ExchangeBoard CreateBoard(string code, Exchange exchange)
Parameters
Returns
- ExchangeBoard
Exchange.
CreateExchange(string)
To create exchange.
Exchange CreateExchange(string code)
Parameters
Returns
- Exchange
Exchange.
CreateMarketDepth(Security)
To create the order book for the instrument.
MarketDepth CreateMarketDepth(Security security)
Parameters
security
SecuritySecurity.
Returns
- MarketDepth
Created order book.
CreateMyTrade(Order, Trade)
To create own trade.
MyTrade CreateMyTrade(Order order, Trade trade)
Parameters
Returns
- MyTrade
Created own trade.
CreateNews()
To create news.
News CreateNews()
Returns
- News
News.
CreateOrder(Security, OrderTypes?, long)
To create the order by the transaction identifier.
Order CreateOrder(Security security, OrderTypes? type, long transactionId)
Parameters
security
SecuritySecurity.
type
OrderTypes?Order type.
transactionId
longThe identifier of the order registration transaction.
Returns
- Order
Created order.
CreateOrderFail(Order, Exception)
To create the error description for the order.
OrderFail CreateOrderFail(Order order, Exception error)
Parameters
Returns
- OrderFail
Created error description.
CreateOrderLogItem(Order, Trade)
To create the string of orders log.
OrderLogItem CreateOrderLogItem(Order order, Trade trade)
Parameters
Returns
- OrderLogItem
Order log item.
CreatePortfolio(string)
To create the portfolio by the account number.
Portfolio CreatePortfolio(string name)
Parameters
name
stringAccount number.
Returns
- Portfolio
Created portfolio.
CreatePosition(Portfolio, Security)
Create position.
Position CreatePosition(Portfolio portfolio, Security security)
Parameters
Returns
- Position
Created position.
CreateSecurity(string)
To create the instrument by the identifier.
Security CreateSecurity(string id)
Parameters
id
stringSecurity ID.
Returns
- Security
Created instrument.
CreateTrade(Security, long?, string)
To create the tick trade by its identifier.
Trade CreateTrade(Security security, long? id, string stringId)
Parameters
security
SecuritySecurity.
id
long?The trade identifier (equals null, if string identifier is used).
stringId
stringTrade ID (as string, if electronic board does not use numeric order ID representation).
Returns
- Trade
Created trade.