Skip to content

ProfileExpiry

AccountProfileExpiry closes the current net symbol position once at the configured long or short price as an accounting adjustment, without sending a closing order to a liquidity provider. For NOP accounts, only unexpired exposure is closed. Both prices must be positive. Resulting P&L follows the account’s normal settlement policy, which may settle immediately. Below are the attributes and settings that can be configured for this profile.

attributes required default settings attribute type description
id Y 0 INT The ID of the AccountProfileExpiry
name Y – VARCHAR A distinctive name for the AccountProfileExpiry profile.
description N – VARCHAR Free text for describing the expiry profile.

AccountProfileExpirySetting

AccountProfileExpirySetting defines the expiry settings per profile and symbol and has the below attributes:

attributes required default settings attribute type description
id Y 0 INT Unique numerical ID of the AccountProfileExpirySetting row.
profile Y 0 SMALLINT The name of the AccountProfileExpiry
by Y sym CHAR Define to symbol sym, indicating that the profile settings are applied to a specific symbol.
key Y – VARCHAR The exact name of an existing symbol, with by=sym, for example EURUSD. Wildcard * and security-wide expiry rules are not supported. Only one expiry setting per profile and symbol is permitted.
long Y 1 DOUBLE Defines the price at which long positions are closed.
short Y 1 DOUBLE Defines the price at which short positions are closed.
time Y 24 hours after the row is added BigInt A point in time, shown in the Portal as a UTC date and time and stored as Unix milliseconds. Past timestamps are skipped when settings are added or loaded. The event runs once and does not prevent later positions from opening; millisecond units do not guarantee processing at the exact target instant.
comment N n/a VARCHAR Free text with optional #SYM# and #PRICE# tokens for the symbol and selected closing price. For example: #SYM#|#PRICE#. The comment belongs to the expiry closure; later P&L settlements use the P&L profile’s comments.
description N n/a VARCHAR Free text for optional comments related to the expiry settings.