AccountSubscribe(Boolean, OnAccountComplete, Object) Method

Subscribes to the account so that account, position and order updates can be received.

Definition

Namespace: T4.API
Assembly: T4API.47 (in T4API.47.dll) Version: 4.7.0.0 (4.7.68.4)
C#
public void Subscribe(
	bool pbEnableUPL,
	OnAccountComplete poCallback,
	Object poTag
)

Parameters

pbEnableUPL  Boolean
Whether UPL should be calculated by the api.
poCallback  OnAccountComplete
Method to be called when the account has completed loading.
poTag  Object
Optional Tag to allow you to track this request.

Remarks

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.

See Also