The IBroker type exposes the following members.

Methods

  NameDescription
AddOrderUpdatedDelegate
Used to subscribe to the OrderUpdatedDelegate.
AddPositionAvailableDelegate
Used to subscribe to the PositionAvailableDelegate.
CancelAllOrders
Cancels all orders currently submitted.
CancelOrder
Cancels an order that is submitted.
GetBuyingPower
Retrieves the amount of buying power available as reported by the broker.
GetMargin
Retrieves the current amount of cash used as a margin on current holdings.
GetOpenOrder
Gets a single open order by unique Id.
GetOpenOrders
Retrieves orders that are currently open.
GetService
Retrieves the IService instance associated with this broker.
GetShares
Gets the number of shares currently held by this broker for the specified symbol.
GetShortedCash
Retrieves the current amount of money obtained by selling short.
IsLiveBroker
Determines whether or not this is a live broker. Simulated brokers should implement the ISimBroker interface.
RemoveOrderUpdatedDelegate
Used to unsubscribe to the OrderUpdatedDelegate.
RemovePositionAvailableDelegate
Used to unsubscribe to the PositionAvailableDelegate.
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.
SubmitOrder
Submits an order to the broker.

See Also