The ISimBroker type exposes the following members.

Methods

  NameDescription
AddOrderUpdatedDelegate
Used to subscribe to the OrderUpdatedDelegate.
(Inherited from IBroker.)
AddPositionAvailableDelegate
Used to subscribe to the PositionAvailableDelegate.
(Inherited from IBroker.)
CancelAllOrders
Cancels all orders currently submitted.
(Inherited from IBroker.)
CancelOrder
Cancels an order that is submitted.
(Inherited from IBroker.)
Deposit
Deposits the specified amount into the account.
GetBuyingPower
Retrieves the amount of buying power available as reported by the broker.
(Inherited from IBroker.)
GetMargin
Retrieves the current amount of cash used as a margin on current holdings.
(Inherited from IBroker.)
GetOpenOrder
Gets a single open order by unique Id.
(Inherited from IBroker.)
GetOpenOrders
Retrieves orders that are currently open.
(Inherited from IBroker.)
GetService
Retrieves the IService instance associated with this broker.
(Inherited from IBroker.)
GetShares
Gets the number of shares currently held by this broker for the specified symbol.
(Inherited from IBroker.)
GetShortedCash
Retrieves the current amount of money obtained by selling short.
(Inherited from IBroker.)
IsLiveBroker
Determines whether or not this is a live broker. Simulated brokers should implement the ISimBroker interface.
(Inherited from IBroker.)
RemoveOrderUpdatedDelegate
Used to unsubscribe to the OrderUpdatedDelegate.
(Inherited from IBroker.)
RemovePositionAvailableDelegate
Used to unsubscribe to the PositionAvailableDelegate.
(Inherited from IBroker.)
SetAccountInfo
Sets the IAccountInfo instance.
SetAccountState
Called before Connect(ServiceConnectOptions) to notify the broker of the list of orders that the system expects are pending, and the positions it expects are open.
(Inherited from IBroker.)
SetBuyingPower
Sets the available buying power.
SimBar
Called by the framework to indicate that a new simulated bar has arrived.
SimClose
Fills orders based on the close prices of a bar.
SimTick
Called by the framework to indicate that a new simulated tick has arrived.
SubmitOrder
Submits an order to the broker.
(Inherited from IBroker.)
Withdraw
Withdrawals the specified amount into the account.

See Also