AccountSubscribe(Boolean, OnAccountComplete) Method
Subscribes to the account so that account, position and order updates can be
received.
Namespace: T4.APIAssembly: T4API.47 (in T4API.47.dll) Version: 4.7.0.0 (4.7.68.4)
public void Subscribe(
bool pbEnableUPL,
OnAccountComplete poCallback
)
Public Sub Subscribe (
pbEnableUPL As Boolean,
poCallback As OnAccountComplete
)
Parameters
- pbEnableUPL Boolean
- Whether UPL should be calculated by the api.
- poCallback OnAccountComplete
- Method to be called when the account has completed loading.
Account updates (P&L etc), position updates (net position, P&L etc) and order
updates will only be received by accounts that have been subscribed to. If you do
not need unrealised P&L data then you can turn that off to save cpu and bandwidth
for the api.