IAssetsMarketsOpenPositionCreateCashTransaction Property

Stator | API Documentation
True if you would like a cash transaction to be created for this open position.

Namespace:  Stator.libPublic.ImportPlugins.DataObjectInterfaces
Assembly:  libPublic (in libPublic.dll) Version: 4.0.2018.0 (4.0.18103)

bool CreateCashTransaction { get; set; }

Property Value

Type: Boolean

Why would I want a cash transaction to be created? By default, when you enter and exit positions from within Stator cash transactions are automatically created to reflect
funding credits and debits. This (boolean) flag allows you to specify if you would like a cash transaction to be automatically
created for the opening position.

If a cash transaction is to be created you have the additional option of making the transaction assigned or unassigned. For example
to assign the cash transaction please specify a CashAccountUniqueIdentifier. Alternatively to keep the cash transaction
unassigned please omit this field, the cash transcation will be assigned to the estate belonging to the position.

Please also note that if the import results in an open position being edited, this field will control if the cash transaction (if found)
will be edited or deleted. i.e. setting this to false when a cash transaction exists will mean the transaction will be deleted.

The setting of this field also controls the behaviour of imported position costs associated to this position import.

See Also