CME Optimizer Software User Guide

The current version of Optimizer is version 19, which is available for testing November 15th, 2023. This page will focus on integration for Optimizer 19 and will be updated as and when new builds are made available.

System Requirements

The following system requirements are required to install and run CME Optimizer 19*:

  •  

    • Windows Server 2016, 2019 or 2022

    • Quad-core Processor

    • 16 GB of available memory (32 GB is recommended)

    • 15 GB of available storage (~5GB installation / ~10GB daily data files).

    • Microsoft .NET 6.0 Runtime x64 (6.0.6 or higher).

    • Microsoft Visual C++ 2015-2022 Redistributable (x64) (14.32.31326.0 or higher)

Expected Performance

Based on extensive Optimizer 19 testing:

Downloading Optimizer

CME Optimizer 19 is available to download from CME CORE. To download, perform the following steps:

  1. Log into CME CORE: https://cmecore.cmegroup.com/

  1. Launch CORE Margin Calculator from the menu

  2. Click the Download Center tab, then click on the Software tab

  3. Scroll down to the CME Optimizer section and click on the Optimizer 19 file link, this will start the download process.

If you do not have a CME Login ID, then click on the Register link on the login page. If you have any questions about creating a CME Login ID, please contact Enterprise Application & System Entitlements (EASE).

Installation and Running Sample Files

Installing Optimizer 19

To install CME Optimizer 19 perform the following steps:

1. Download Optimizer 19, refer to the Downloading CME Optimizer 19 section for more information

2. Log onto the system where Optimizer 19 is to be installed. You should log on as an administrative user.

3. Double-click on the Optimizer 19 installer (filename: Optimizer.19.0.61.0.msi), this will start the installation process.

4. Follow the on-screen instructions.


5. You must accept the End-User License Agreement (EULA) to install Optimizer 19.

6. Accept the default installation location or optionally change it:

7. Select Install (admin entitlements required) and wait while program installs.

9. Once installation has completed, it is best practice to reboot the PC on which the software is installed. You can choose to automatically run the Optimizer 19 Samples once the installation completes. 

Troubleshooting

If you run into issues during the installation, please refer to the guidance below. Alternatively, reach out to our posttradeservices@cmegroup.com for further assistance:

  1. Verify that you have the correct privileges to install software on the target system and that security software/policies are not preventing software from being installed

  2. Verify that you have the minimum system requirements for hardware and operating system

  3. Verify that you have installed the software prerequisites and that a system reboot has been performed

  4. If the installer starts, but fails to complete, try running the MSI with logging enable from the command-line e.g. PowerShell:

    .\Optimizer.19.0.61.0.msi /log installer.log


  5. If the installer log does not point to a localized issue, then forward the log to posttradeservices@cmegroup.com for further investigation (see below).

Sending Diagnostics Information to CME for Troubleshooting

If you are requested to send diagnostics information to posttradeservices@cmegroup.com to help them provide troubleshooting assistance, then please provide the following information along with any requested files within a compressed archive i.e. Zip, 7-zip, Tar etc.

  • Operating System + Version

  • MSI version

  • Firm ID

  • Technical and business contact information (where applicable)

  • Description of the issue e.g. Installation Error, Run-time Error

  • Context e.g. installing, running program interactively, running program as an automated task/job

  • Any input, output or configurations files (where applicable) e.g. positions data, market data or configuration files, command-line arguments

  • Any error messages / codes

Opening the Optimizer 19 Program Folder

During the installation process a convenient desktop shortcut is provided to allow you to easily access the Optimizer 19 Program folder. Double-clicking the “CME Optimizer 19 Folder” shortcut icon will launch the Windows Explorer process and navigate into the Program folder path.

 



Running Optimizer 19 Sample Set

CME Optimizer 19 includes a sample data set for the new Optimizer 19 plugin. This can be launched via a desktop shortcut or via the command-line.

Running from Desktop Shortcut

During the installation process a convenient desktop shortcut is provided to allow you to easily launch the  Optimizer 19 plugins with the sample data set. Double-clicking the “Run CME Optimizer 19 Sample” shortcut icon will launch a command-prompt and start running the sample data set.

Running from Command-line

The sample data set can also be run via the command-line. Open a command-prompt using powershell.exe and type the following:

CD "C:\Program Files\CME Group\CME Optimizer 19\Program" .\OptimizerHost.exe --Configuration "..\..\Samples\configuration.json"

 

Note your program installation path may differ.

When the sample optimization completes, the Outputs folder will contain several files, including:

  • Log file

  • Reports – total savings estimate, margin summary and funding impact

  • Transfers in CSV/FIXML format

Running Optimizer via Plugin

Optimizer 19 has been built using a plugin architecture, which allows greater release flexibility and opens the possibility to introduce additional optimization services in the future.

Listing Available Plugins to Run

To list the available plugins, open a command-prompt using powershell.exe and type the following:

CD "C:\Program Files\CME Group\CME Optimizer 19\Program" .\OptimizerHost.exe --list

Note your program installation path may differ. The initial release of CME Optimizer 19 provides the following plugins:

  • Optimizer (aka Optimizer 19)

Futures releases of Optimizer will introduce new plugins that provide enhanced or new functionality. To run a specific plugin, refer to the Running a specific plugin section.

Running a Specific Plugin

By default, CME Optimizer 19 will run the Optimizer plugin (this is Optimizer 19). To run a specific plugin, open a command-prompt using powershell.exe and type the following:

CD "C:\Program Files\CME Group\CME Optimizer 19\Program" .\OptimizerHost.exe --run "Optimizer"

Note your program installation path may differ. CME Optimizer 19 will automatically initialize and start the specified plugin. To determine what plugins are currently available, refer to the List available plugins section. If you enter a plugin name that is either incorrect or does not exist, then a run-time error will occur, and the program will exit.

Optimizer 19 Plugin Command-line Arguments

The Optimizer 19 plugin provides several command-line arguments, these are listed in the table below. Note that some command-line arguments support both short and long-hand argument names:

Name

Argument

Description & Usage

Name

Argument

Description & Usage

Plugin Configuration

--configuration

-c

Optional. Sets the file path of the configuration.json that is used to configure the plugin.



File path can be fully qualified or relative. Note that relative paths are relative to the Optimizer 19 plugin folder.



If not specified, the plugin will attempt to locate the configuration.json file in the program folder.



It is recommended that you create a configuration.json outside of the plugin folder. For more information this and the Optimizer 19 configuration file, please refer to the Optimizer 19 Configuration File section.



.\OptimizerHost.exe --configuration “FILE PATH”



.\OptimizerHost.exe -c “FILE PATH”

Log Verbosity

--verbosity

-v

Optional. Sets the logging verbosity. Default: Normal.



Applicable values:

·         Off

·         Minimal   -or-   M

·         Normal   -or-   N

·         Diagnostic   -or-   D



.\OptimizerHost.exe --verbosity Off

.\OptimizerHost.exe -v N

Disable Parallel Execution

--No-Parallel

Optional. Disables parallelization. Default: Not specified



Parallelization is enabled by default and it is recommended that parallelization is not disabled as execution times may be increased significantly.



This option is useful if Optimizer 19 is installed alongside other production applications or troubleshooting purposes.

Pause Before Exit

--No-Exit

Optional. When the program completes, execution is paused before exiting. Default: Program does not pause.



This switch is useful when running interactive sessions or when running the samples. Note that this switch should not be used in automated environments.

Running Optimizer as a Scheduled Task

Optimizer 19 can be to execute as a scheduled task. To create a new task using Windows Task Scheduler perform the following steps:

  1. From the Start menu, launch Task Scheduler

  2. On the actions pane, click “Create Task”

  3. Set the following task properties
    (Note some properties will be specific to your environment/requirements)


Name

Run Optimizer 19

Name

Run Optimizer 19

Description

(Optional) Recommended that you set a description that describes the Optimizer task and when it is scheduled to execute.

User account

User Account: NT AUTHORITY\LOCAL SYSTEM

 

Note that user accounts and/or gMSA (Global Managed Services Accounts) can be used to execute a scheduled task – additional security policy and/or directory security settings may be required and is beyond the scope of this document.

 

Ensure that the selected account has read/write permissions to the configured inputs/outputs folder paths.

Run with highest privileges

Yes

Triggers

Date/time triggers can be configured as per your firm’s requirements e.g. Once daily between Mon-Fri at 17:45 PM CST.

Actions

Program/script: OptimizerHost.exe


Add arguments: --configuration “<<FILE PATH TO CONFIGURATION FILE>>”


Start in: C:\Program Files\CME Group\CME Optimizer 19\Program

Optimizer Configuration File

Optimizer 19 Plugin Configuration File

The Optimizer 19 plugin requires a mandatory configuration file. By default, this configuration file is called configuration.json. The Optimizer 19 plugin configuration is based upon the JSON (JavaScript Object Notion) format. Unlike prior versions of Optimizer, all configurable settings are located within a single file. A default configuration file can be found within the Optimizer 19 plugin folder:

C:\Program Files\CME Group\CME Optimizer 19\Plugins\Optimizer

 

Note your program installation path may differ. If you run Optimizer 19c plugin, it will (by default) attempt to locate the configuration.json in the plugin folder. If you want to change this, then refer to the Specifying a custom configuration.json file section. If the configuration file is not found a run-time error will occur, and the program will exit.

The following table details each configuration section:

Section Name

Property Name

Type

Default

Value

Description

Section Name

Property Name

Type

Default

Value

Description

Defaults

TransfersByPbAccount

Boolean

true

Indicates if transfers files are broken out by PB Account.

True: Breaks out FIXML and CSV transfers into individual PB Account sub folders within the outputs directory.

False: FIXML and CSV transfers are not broken out.



ShowTransferOrigin

Boolean

true

Describes the transfer reason i.e. Optimizer or Netting.

True: Adds an additional column to the CSV transfer called “Transfer Origin” which indicates if the transfer originated from “Optimizer” or “Netting”.

False: The column is not shown.

Property deprecated with Version 17



ShowTotalSavings

Boolean

true

Indicates if Optimizer should calculate the total savings realized by Portfolio Margining for each portfolio.

True: Optimizer will calculate total savings and output a total savings report file.

False: Optimizer will not perform any additional logic.

Property deprecated with Version 17



BreakOnException

Boolean

false

Indicates if the program should stop if any position/portfolio errors are encountered.

True: Program will exit.

False: Program will discard erroneous portfolios and continue.



MoveDecision

String

LIFO

Transfer Allocation Method. This parameter will determine how to build transfer messages to reach optimal Futures allocation.

LIFO: Last in First Out

FIFO: First in First Out

SNT (single net transfer): Optimizer creates one transfer per contract with today’s trade date and trade price. This should be used for portfolios expressed as net position only (not trade-level).



ExclusionMoveDecision

String

LIFO

The transfer allocation method for transfers that are created when a given position has been excluded e.g. global product exclusion or treasury roll flags.

LIFO: Last in First Out

FIFO: First in First Out

SNT (single net transfer): Optimizer creates one transfer per contract with today’s trade date and trade price. This should be used for portfolios expressed as net position only (not trade-level).



NettingMoveDecision

Please note this should be the same as MoveDecision when used for transfers generated due to netting.

String

LIFO

The transfer allocation method for transfers that are created when a given portfolio is enabled for netting.

LIFO: Last in First Out

FIFO: First in First Out

SNT (single net transfer): Optimizer creates one transfer per contract with today’s trade date and trade price. This should be used for portfolios expressed as net position only (not trade-level).



MaxNumberOfIterations

Number

500

This setting should not be modified without proper evaluation.

Property deprecated with Version 17



Culture

String

en-US

Sets the culture for the program. This setting should not be modified without proper evaluation.



TimeZone

String

Central Standard Time

Governs the date/time zone used when creating transfers.

As FEC requires all trade dates to be in CST, this setting should not be modified without proper evaluation.



FloorSpanForFinalMarginCheck

Boolean

true

Controls net option value capping/SPAN flooring in the Optimizer solution decision.

Inputs

InputDirectory

String

..\\..\\Inputs

Sets the directory path containing all inputs including positions, market data and configuration files. The path can be fully qualified or relative.

Note that relative paths must be relative to the Optimizer 19 plugin directory path.

Note that in JSON format, the backslash character “\” must be escaped e.g. “\\” otherwise the file will be invalid.



PositionsFilename

String

Positions

Indicates the filename prefix for the positions file. Note that the underlying file extension must be “.CSV”



IrsGammaLadderFilename

String

IRSGammaLadder_

Indicates the filename prefix for the IRS Gamma Ladder file. Note that the underlying file extension must be “.CSV”

Property deprecated with Version 17



IrsPnlFilename

String

IRSPNL_

Indicates the filename prefix for the IRS PNL file. Note that the underlying file extension must be “.CSV”



IrsSkewSensitivityFilename

String

IRSSkewSensitivity_

Indicates the filename prefix for the IRS Skew Sensitivity file. Note that the underlying file extension must be “.CSV”

Property deprecated with Version 17



IrsTimeValueFilename

String

IRSTimeValue_

Indicates the filename prefix for the IRS Time Value file. Note that the underlying file extension must be “.CSV”

Property deprecated with Version 17



IrsVegaLadderFilename

String

IRSVegaLadder_

Indicates the filename prefix for the IRS Vega Ladder file. Note that the underlying file extension must be “.CSV”

Property deprecated with Version 17



IrsDeltaLadderFilename

String

IRSDL_

Indicates the filename prefix for the IRS DL file. Note that the underlying file extension must be “.CSV”



SpanIniFilesFolder

String

..\\

Sets the directory path containing the span.ini and orgmast.xml files. Note that these files can be placed within the inputs directory. The path can be fully qualified or relative.

Note that relative paths must be relative to the Optimizer 17 plugin directory path.

Note that in JSON format, the backslash character “\” must be escaped e.g. “\\” otherwise the file will be invalid.

Property deprecated with Version 17



SpanFileNameSuffix

String

cust.spn

Indicates the suffix of the span data file e.g. cust.spn



RiskManagerConfigIsEncoded

Boolean

true

Indicates if the ZIP file is encoded or not.

Property deprecated with Version 17



MarketDataArchiveFilename

String

cme_optimizer_marketdata_*.zip

Defines the filename pattern for the CME Optimizer market data archive (ZIP file)



UseSpanFileInArchive

String

false

Indicates if the SPAN file included within the market data archive should be used.

If true, the SPAN file will be extracted and written to the file system (process will require write privileges).

If false, the program will expect the SPAN file to be on the file system (generally 'Inputs' directory_ prior to execution.

Outputs

OutputDirectory

String

..\\..\\Outputs

Sets the directory path to write all logs, reports and transfers to. The path can be fully qualified or relative.

Note that relative paths must be relative to the Optimizer 19 plugin directory path.

Note that in JSON format, the backslash character “\” must be escaped e.g. “\\” otherwise the file will be invalid.



CsvTransfersFilename

String

csvTransfers.csv

Sets the filename for CSV transfers.



TotalSavingsFilename

String

Total Savings Estimate.csv

Sets the filename for the total savings report.



FundingImpactsFileName

String

FundingImpact.csv

Sets the filename for the funding impact report, which shows the incremental savings pre / post optimization runs.



MarginSummaryFileName

String

MarginSummary.csv

Sets the filename for the margin summary report, which breaks out all margin numbers when optimizer is ran.



FixmlOutputFilename

String

fixmlTransfers.txt



Fixml

FixmlMsgEvtSrc

String

API

Transfer Message Source. Input to the transfer message.



FixmlClOrdIdStatic

String

0

Increment Option for Clearing Order ID.



FixmlClOrdIdStaticId

String

PM001

Static Clearing Order ID tag. If using a static clearing order ID, this tag will be used for each transfer message.

Option to have a static Order ID or an Order ID that gets incremented by 1 for each transfer message created.

0: Use a static value for all transfers vs 1: increment by 1 for each transfer created



SingleSidedReport

Boolean

true

Transfer message format. Indicates if the Optimizer will output Single Sided transfer messages (post FEC+ migration) or Dual Sided transfer messages.

True: Single Sided messages

False: Use PNL Dual Sided messages

FICC*

Enabled

Boolean

false

Determines if RBOE optimization is enabled or not. Default false implies RBOE optimization is not enabled, must be updated by user to enable.



Execution Mode

Enum

BeforeIrsOptimization

Determines where the RBOE optimization occurs within the Optimizer pipeline.



OptimizeMoveDecision

Enum

LIFO

Determines the order of offsets and transfers when optimizing RBOE positions.

Must match MoveDecision in Defaults above if using Optimizer for both RBOE and IRS Optimization.

LIFO: Last in First Out

FIFO: First in First Out

SNT (single net transfer): Optimizer creates one transfer per contract with today’s trade date and trade price. This should be used for portfolios expressed as net position only (not trade-level).



UseBackMonthContracts

Boolean

true

Allows Optimizer to select positions from back month in same contract if target future allocation cannot be met by front month contract.



FiccPositionsFilename

String

FICCPositions_

Filename prefix for the FICC positions file. Default filename is recommended to ensure that it is not misinterpreted with the standard positions filename prefix i.e. "Positions_"



FiccEquivalentPositionsFilename

String

*XMFICCPOSN_*.csv

Filename pattern for the Equivalent positions files. Note that the filename in NR may be prefixed with "NR_".

Exclusions

IncludeBaselineInOptimalState

Boolean

false

Allows user to define whether the 'baseline' margin case will be used during Optimizer's solution decision. Baseline margin can be impacted by exclusions for FICC processing and may become less meaningful. This config is false by default to capture this edge condition.



Early Exercise

Section

see below

Defines if early exercise exclusions are enabled. See exclusions for more information.



PBAccount

Section

see below

Defines if PBAccount-based exclusions are enabled. See exclusions for more information.



FiccPbAccount

Section 

see below

Defines if FiccPbAccount-based exclusions are enabled. See exclusions for more information.



Exchange

Section

see below

Defines if Exchange-based exclusions are enabled. See exclusions for more information.



Product

Section

see below

Defines if Product-based exclusions are enabled. See exclusions for more information.



TradeEvents (please see in more detail below)

Section

see below

Defined if Trade Life-cycle Events-based exclusions are enabled. See exclusions below for more information.

FICC section new for the RBOE workflow, released with version 19. Please see RBOE user guide for more information: https://www.cmegroup.com/confluence/display/EPICSANDBOX/Treasury+Rules-based+Offset+Engine.

Note that the JSON specification has some basic structural rules, some key considerations are listed below, but you can read more information on the JSON specification at https://www.json.org/:

  • For string values that represent file and/or directory paths, the backslash character “\” must be escaped using two backslash characters e.g. “\\”

  • Boolean values must be in lower case i.e. true or false. Specifying any other type of casing cause a run-time error.

  • Strings (text) must be enclosed in double-quotes

Exclusions

With Optimizer 19, users can utilize enhanced exclusion features. This section describes how to use and configure exclusions. Updated to reflect changes to default configurations with version 19. 

configuration.json

Section / Type Definition

Property

Data Type

Required?

Default

Comments

Section / Type Definition

Property

Data Type

Required?

Default

Comments













PBAccount

-

-

No

-

Allows firms to exclude one or more Performance Bond Accounts (aka PB Account or PBA).

If the section is not specified, Optimizer will assume there are no PBA-based exclusions to be applied.



Enabled

Boolean

No

false

Controls if PBA exclusions are enabled. Useful if firm wants to temporarily prevent such exclusions, without removing configuration. Supersedes "PBAccountExclusion," see type definition below.



Exclusions

Array of PBAccountExclusion

No

Empty

Refer to "PBAccountExclusion" below for type definition.













Exchange

-

-

No

-

Allows firms to exclude one, more or all products under a specified exchange.

If section is not specified, Optimizer will assume there are no exchange exclusions to be applied.



Enabled

Boolean

No

false

Controls if exchange exclusions are enabled. Useful if firm wants to temporarily prevent such exclusions, without removing configuration. Supersedes "ExchangeExclusion," see type definition below.



Exclusions

Array of ExchangeExclusion

No



Refer to "ExchangeExclusion" below for type definition.













Product

-

-

No

-

Allows firms to exclude one, more or all products given a specified product type/exchange pairing.

If section is not specified, Optimizer will assume there are no product exclusions to be applied.



Enabled

Boolean

No

false

Controls if product exclusions are enabled. Useful if firm wants to temporarily prevent such exclusions, without removing configuration. Supersedes "ProductExclusion," see type definition below.



Exclusions

Array of ProductExclusion

No

Empty

Refer to "ProductExclusion" below for type definition













EarlyExercise

-

-

No

-

Allows firms to exclude based upon contracts that appear within the daily POS699 file (option exception summary report).

If section is not specified, Optimizer will assume there are no early exercise exclusions to be applied.

Note section is provided for future enhancements.



Enabled

Boolean

No

false

Controls if early exercise exclusions are enabled. Useful if firm wants to temporarily prevent such exclusions, without removing configuration.













TradeEvents

-

-

No

-

Allows firms to exclude one or more products based upon trade events.

If section is not specified, Optimizer will assume there are no trade event-based exclusions to be applied.



Enabled

Boolean

No

false

Controls if trade event-based exclusions are enabled. Useful if firm wants to temporarily prevent such exclusions, without removing configuration. Supersedes "TradeEventExclusion," see type definition below.



Events

Array of TradeEventExclusion

No

Empty

Refer to "TradeEventExclusion" below for type definition













PBAccount

(type definition)

Type

String

Yes

-

Defines product type e.g. FUT, OOF, etc.

Expected use: OOF only.



Enabled

Boolean

No

true

Controls if PBAccountExclusion exclusion(s) are enabled. Useful if firm wants to temporarily prevent such exclusions, without removing configuration. Implicit from the "PBAccount" enabled property if not included at this level.



Accounts

Array of String

Yes

Empty

Defines a PB Account identifier. Must match account ID as defined in the positions.csv input file (PBAccount ID field).













FICCPBAccount

(type definition)

Type

String

Yes

-

Defines product type e.g. FUT, OOF, etc.

Expected use: FUT only.



Enabled

Boolean

No

true

Controls if FiccPbAccountExclusion exclusion(s) are enabled. Useful if firm wants to temporarily prevent such exclusions, without removing configuration. Implicit from the "PBAccount" enabled property if not included at this level.



Accounts

Array of String

Yes

Empty

Defines a FICC PB Account identifier. Must match account ID as defined in the FICCPositions.csv input file (FiccPbAccountId field).













Exchange

(type definition)

Type

String

Yes

-

Defines product type e.g. FUT, OOF, etc.



Enabled

Boolean

No

true

Controls if ExchangeExclusion exclusion(s) are enabled. Useful if firm wants to temporarily prevent such exclusions, without removing configuration. Implicit from "Exchange" enabled property if not included at this level.



Exchange

String

Yes

-

Defines exchange e.g. CME, CBT, etc.













Product

(type definition)

Type

String

Yes

-

Defines product type e.g. FUT, OOF, etc.



Enabled

Boolean

No

true

Controls if ProductExclusion exclusion(s) are enabled. Useful if firm wants to temporarily prevent such exclusions, without removing configuration. Implicit from "Product" enabled property if not included at this level.



Exchange

String

Yes

-

Defines exchange e.g. CME, CBT, etc.



Codes

Array of String

Yes

Empty

Defines product codes related to the type/exchange.

If an empty array is provided, then all products for the type/exchange pairing will be excluded.













TradeEventExclusion

(type definition)

Name

String

Yes

-

Friendly name for the event e.g. Treasury Rolls, My Events etc.

Must be unique



Enabled

Boolean

No

true

Controls if TradeEventExclusion exclusion(s) are enabled. Useful if firm wants to temporarily prevent such exclusions, without removing configuration. Implicit from "TradeEvents" enabled property if not included at this level.



Type

String

Yes

-

Defines product type



Exchange

String

Yes

-

Defines exchange



Codes

Array of String

No

Empty

Defines product codes related to the type/exchange.

If an empty array is provided, then all products for the type/exchange pairing will be excluded.



BeginEventType

EventTyp

Yes

See example above

Defines the start date for the event. This is based upon CME's product reference data files, specifically the FIXML EventTyp enumeration type.

Enumeration values:

5 = Activation or First Day of Trading
7 = Last Eligible Trade Date
19 = Position Removal Date
15 = Initial Inventory Due Date
18 = Last Intent Date
13 = First Delivery Date
14 = Last Delivery Date
17 = First Intent Date
16 = Final Inventory Due Date
19 = Position Removal Date

23 = First Notice Date

24 = Last Notice Date

999 = Option Expiration Date



EndEventType

EventTyp

No

See example above

Defines the end date for the event. This is based upon CME's product reference data files, specifically the FIXML EventTyp enumeration type.

Enumeration values:

5 = Activation or First Day of Trading
7 = Last Eligible Trade Date
19 = Position Removal Date
15 = Initial Inventory Due Date
18 = Last Intent Date
13 = First Delivery Date
14 = Last Delivery Date
17 = First Intent Date
16 = Final Inventory Due Date
19 = Position Removal Date

23 = First Notice Date

24 = Last Notice Date

999 = Option Expiration Date



DaysBefore

Integer

No

See example above

Defines how many days to offset the event start date into the past i.e. Start Date - Offset.

Note that the USNY calendar and weekends will be taken into account when offsetting.

Non-negative integer



DaysAfter

Integer

No

See example above

Defines how many days to offset the event end date into the future i.e. End Date + Offset.

Note that the USNY calendar and weekends will be taken into account when offsetting.

Non-negative integer

Example configuration.json File

Creating a Custom configuration.json File

It is recommended users create a specific configuration.json file. Most firms prefer this approach as it allows them to place the configuration file in a non-application specific directory e.g. D:\<firm>\apps\data\... To create a new configuration.json file, open a text editor (an editor that supports JSON syntax and validation is recommended). Copy the example configuration.json in this user guide or copy the contents of the configuration.json file in the Optimizer directory. Once you have the configuration outline in an appropriate editor, you can change any settings as required. Save the file as configuration.json to your desired location. Note that it is possible to change the configuration.json filename, refer to the Changing the configuration.json filename section.

Specifying a Custom Configuration File

The Optimizer plugin folder includes a default configuration.json which can be overridden. This is done by specifying the --configuration <filename> argument and providing a file path, for example: -



Note your program installation path may differ.

 

Changing the Default Configuration Filename

If you are creating a custom configuration.json file, you are not restricted to using the “configuration.json” filename. You can change the existing the filename to valid filename, but it is recommended that you maintain the .JSON file extension. If you change the configuration filename, then you must use the Optimizer 19 --configuration argument, for example: -



 

Optimizer Data Files 

Optimizer 19 Data Files

Optimizer 19 requires several data files to perform portfolio optimization. Note the Optimizer Market Data Archive file is a zipped file containing many other files. This file was created to limit the number of inputs required to run Optimizer. Optimizer unzips this file during initialization.

  • Positions CSV file

  • FICCPositions CSV file†*

  • Equivalent Position Report*

  • Configuration file i.e. configuration.json

  • IRS DL

  • IRS PNL

  • Span risk parameter file (i.e. cust.spn, note must be unzipped prior to run)

  • Optimizer Market Data Archive (ZIP file)

† A positions file is generated by a firm

††† Files in the New Release test environment as published to the same location with a .nr file name extension.

The default configuration expects all data files to reside within an Inputs folder which is located within the installation directory. However, it is recommended that you create your own configuration and data folder outside of the installation directory, refer to the Creating Custom Input/Output Folders section below for more information.

*Optional unless using RBOE feature introduced with version 19. Please see RBOE user guide for more details: https://www.cmegroup.com/confluence/display/EPICSANDBOX/Treasury+Rules-based+Offset+Engine

Changing the Input/Output folder locations

By default, the configuration file will point to default input/output folder locations that typically reside within the installation folder. If you run the tree command within the program installation folder you can see these folders: -

In addition to create a custom configuration, you can change the directory paths by opening the configuration file and updating the following configuration properties:

  

Creating Custom Input/Output Folders

With CME Optimizer 19, you are not limited to a single input/output folder. You can create multiple folders for a variety of situations such as (but not limited to): per-firm folders, splitting daily runs into date-folders, running different positions file inputs, splitting-up large portfolios, analyzing configuration variations or troubleshooting.

 As a best practice, it recommended that you create a folder outside of the installation directory that will contain all data and configuration. There are a number of benefits to this approach, including (but not limited to): - separation of concerns (program installation folder vs. input/outputs data folder), security (security permissions can be easily applied to a non-installation directory) and maintainability (i.e. application upgrades) .

Example Scenario #1: Per-firm Folders

If you run optimization on-behalf of two or more firms, then you can create folders and configurations on a per-firm basis.  Depending on your available system resources, you can run more than a single instance of CME Optimizer 19, provided each instance is targeting a different configuration file and different input/output folders. For example, assuming we have a “ManagedFirm” folder, this folder can contain sub-folders for Firm A, Firm B and Firm C. Each folder has its own isolated data and configuration. The configuration file for Firm A is called firma-configuration.json and this configuration file specifically points to the Firm A folder path for inputs and outputs. Note that the input folder for Firm A contains all data (positions, IRS, span etc.) required to run Optimizer. When running Optimizer for Firm A, the following command would be used:

Example Configuration File for Firm A

Example Configuration File for Firm B

Equivalent Command-line for Firm B:

Example Configuration File for Firm C



Equivalent Command-line for Firm C:



Common Optimizer Log Errors

This section describes many, but not all, Optimizer log errors. See Recommended Remediation below for additional guidance.

Error Type

Error Text

Description

Error Status/Result

Recommended Remediation

Error Type

Error Text

Description

Error Status/Result

Recommended Remediation

Failed to run

Failure to initialize

If configuration.json is not present in specified location, optimizer will not initiate, no error log is produced

Fail

Review configuration file location, rerun

Missing Input files

Could not find one or more required input files: File not found: (local install location)\ABCFILE

Input file missing from the input directory

Fail

Review Input files to ensure completeness, rerun

Issues inside supplied input data

[Files listed here] detected a header row only in [files listed as specified in config *.csv].

Input file passed as empty

Success: Swaptions input files (IRSVega, IRSGamma, IRSkew, IRSTimeValue)
Fail: all other files

Review Input files to ensure completeness, rerun

The following portfolios are not found in the IRS DL file and have been removed: XXX, XXXX 

Positions file contains PBA that is not present in IRS input files file

Fail for impacted account(s)
Success unless all accounts impacted

N/A

[Files listed here] detected a header row only in [files listed as specified in config *.csv].

Input file passed as empty

Success: Swaptions input files (IRSVega, IRSGamma, IRSkew, IRSTimeValue)
Fail: all other files

Review Input files to ensure completeness, rerun

Unexpected error calculator initialization (global): Could not initialize global calc: RL minor version(XX) does not match RL config minor version(XX).
Optimizer.Optimization.Abstractions.CalculationException: Could not initialize global calc: RL minor version(XX) does not match RL config minor version(XX).

Optimizer market data incompatible with Optimizer software version

Fail

Please see CME about compatible CME market data

Exception occurred whilst parsing line * Line does not contain any data
Removing invalid positions from portfolio: [account listed here]

Position row contains too few columns

Fail for impacted account(s)
Success unless all accounts impacted

Review positions file for required info, rerun

Exception occurred whilst parsing line * Line contains too many columns
Removing invalid positions from portfolio: [account listed here]

Position row contains too many columns

Fail for impacted account(s)
Success unless all accounts impacted

Review positions file for required info, rerun

Found Portfolio with invalid mix of Origin
Removing invalid positions from portfolio: [account listed here]

Position file contains an origin mismatch within the same account

Fail for impacted account(s)
Success unless all accounts impacted

Review positions file for required info, rerun

Found Portfolio with invalid mix of AccountTypes (SEG/NSEG).
Removing invalid positions from portfolio: [account listed here]

Position file contains an account  type mismatch within the same account

Fail for impacted account(s)
Success unless all accounts impacted

Review positions file for required info, rerun

Handling parsing exception for portfolio 'ABC' on line #X: System.Exception: By-passing line #X: ineligible future expiration "" detected
Removing invalid positions from portfolio: [account listed here]

Positions file contains invalid future period code 

Fail for impacted account(s)
Success unless all accounts impacted

Review positions file for required info, rerun

Handling parsing exception for portfolio 'ABC' on line #X: System.Exception: By-passing line #X: ineligible option expiration "" detected
Removing invalid positions from portfolio: [account listed here]

Positions file contains invalid options period code 

Fail for impacted account(s)
Success unless all accounts impacted

Review positions file for required info, rerun

Handling parsing exception for portfolio 'ABC' on line #X: System.Exception: By-passing line #X: ineligible call/put "" detected
Removing invalid positions from portfolio: [account listed here]

Positions file contains invalid options put/call indicator

Fail for impacted account(s)
Success unless all accounts impacted

Review positions file for required info, rerun

Handling parsing exception for portfolio 'ABC' on line #X: System.Exception: By-passing line #X: ineligible contract detected: XX|XXX|XXX|XXXXX||
Removing invalid positions from portfolio: [account listed here]

Positions file contains invalid product code, product type or ineligible contract in PM account

Fail for impacted account(s)
Fail (if invalid contracts in PM account)
Success (if invalid contract in SEG/NSEG account)
Success unless all accounts impacted

Review positions file for required info, rerun

Exception occurred whilst parsing (invalid line dexcribed): Invalid trade date format detected: '<invalid>'. Expected 'yyyyMMdd or MM/dd/yyyy or M/d/yyyy'

Positions file TradeDate field in improper date format. Formats expected: yyyymmdd, mm/dd/yyyy, or m/d/yyyy

Fail for impacted account(s)
Success unless all accounts impacted

Review positions file for required info, rerun

Issues with configuration.json file

Unexpected error executing exclusion operation

Errors found in exclusion section of configuration.json file

Success
Optimizer bypasses exclusion logic

Review exclusions section of config file and rerun

Post-processing Errors

Optimizer has encountered an error has occurred and will exit. There are no portfolios to optimize.

Optimizer experienced issues in processing (see above errors) and there were no valid porfolios to optimize

Fail

Review above errors, turn log verbosity to -v (verbose) if necessary to produce additional errors

Legal

Click-through Agreement

Prior to downloading/installing the software, CME Optimizer users must review and agree to the the End User License Agreement (EULA). 

To obtain the software to review, please contact CME Group Post Trade Services.

Open Source Software

Please see deployable margin software Open Source Software here: Open Source Software.




How was your Client Systems Wiki Experience? Submit Feedback

Copyright © 2024 CME Group Inc. All rights reserved.