CryptoCortex

Risk/Hedge Screen

On the Risk/Hedge screen, you can configure max exposure limits and/or auto-hedge logic at the currency/asset level.

Operational Commands

Add Currency

Use this command to add/configure new risk limits and/or auto-hedging logic. The risk rule scope could be:

  • currency/asset: global limit for Deltix MM instance running on the server.
  • currency x exchange: per exchange limit.
  • currency x algo id: per trading bot limit.

Delete Currency

Use this command to delete the existing risk limit/auto-hedge logic rule.

General Settings

  • Account Currency: Use this field to specify default currency of the C2MM application.
  • Auto Cutoff checkbox: When it is ON, the system artificially "rollovers" all positions and snapshots up-to-date trading statistics at specified cutoff time. Upon system restart (e.g., maintenance period or manual restart), it is sufficient for the system to look back to the recent cutoff point and to all trades after cutoff to correctly recover bot's trading state. The following values are reset on CutOff: Quoter Net Qty, Hedger Net Qty, and Daily PnL.
  • Cutoff Time: End time of the current day trading session. All day risk statistics is provided for the current trading day.

The position rollover flag supports rollover of the current position of the bot to the next trading session using synthetic RO orders (closing RO order and opening RO order).

Configuration

Currency

In this section, you can specify the currency and the scope of risk/auto-hedge rules.

To create a new rule:

  1. Click Add Currency. 2, In a new row, specify the currency the risk rule will be applied to, and (optionally) an exchange name or a trading bot algo id to restrict the rule scope.
  2. Click Save button to save the results.
Currency Parameters
ParameterDescription
CurrencyCurrency/Asset Name.
Exchange/Algo IdThe risk rule scope.
If left blank - the scope is the whole C2 Market Maker application.
If exchange is entered, the scope is limited by the exchange.
If algo id is entered, the scope is limited by trading bot limits.
Advanced Features
  • Exchange/Algo Id property has special syntax to limit the scope of the risk rule by Quoter and Hedger of trading bots. Suffixes 'H' (Hedger) and 'Q' (Quoter) are supported and can be used as described in the samples below.
Examples

These examples demonstrate a currency/asset risk rules defined at a global C2 Market Maker level, per Exchange level, per trading bot level, per Quoter/Hedger level.

In Sample D, the currency risk rule is defined for Quoter of bots 1 and 10 and for Hedger of bots 1 and 5, Sample E defines the same behavior. In Sample F, the currency risk rule is defined for bot 1, for Hedger of bot 5 and Exchange.

NOTE

Trades related to a specific risk rule affect the position of the bot only if the scope of the risk rule is defined on the bot's level.

ParameterSample ASample BSample CSample DSample ESample F
CurrencyLTCLTCLTCLTCLTCLTC
Exchange/Algo IdBITTREX2451Q 1H 5H 10Q1 5H 10Q1 5H BITTREX

Hedger

Use parameters in this section to specify hedge triggering condition and execution parameters of the hedging algorithm.

INFO

Refer to Bot Configuration to learn more.

ParameterDescription
Position Max/Normal SizeWhitespace separated pair of numbers: max and normal currency balance. When the balance hits max threshold and hedger is turned on, hedging algorithm will start working on balance reduction to the normal level.
Hedge InstrumentHedge Instrument. If not specified, the hedging instrument will be formed from the given currency (base) and account currency (term).
Hedge StrategyAvailable options: LIMIT (default), SOR (default) or a custom algo.
Execution PriceOptions available: LEAN, PASSIVE, RESTING, IMPROVE, CROSS_MARKET
LEAN: hedger will place child orders at best marketable price. If more than one venue is specified, the hedger will route the order to the exchange which offers a best market price adjusted with taker fees.
PASSIVE: child orders will be placed at one tick distance from the best marketable price (LEAN price).
RESTING: place a resting bid to buy at the lowest price venue (after fees) and place a resting offer to sell at the highest offer to sell (after fees)
IMPROVE: place BUY order at RESTING bid + one tick on the lowest bid venue; place SELL order at RESTING - one tick on the highest offer venue.
CROSS_MARKET: hedge orders will be placed with an aggressive offset to the LEAN price at the child order sent time: LEAN + Max Offset for buy orders, LEAN - Max Offset for sell orders.
Venues ListComma or whitespace separated list of exchanges to execute hedge order.
Max Order SizeHedger will not place to the market the orders with size exceeding this value. If hedged size is greater than max order size, it will be divided on separate clips of the max order size.
Resend Time (ms)Hedger will place a new order or replace existing one after the time interval defined by this parameter.
Max OffsetThis parameter allows a user to control worst limit price (WLP) for the hedging algorithm for all Execution Price modes except CROSS_MARKET. Max Offset can be specified in either abs. units or in basis points. WLP calculation:
WLP = lean price of the first child order +/- Max Offset (in abs. units)
WLP = lean price of the first child order * (1 +/- Max Offset bps / 10000).
For CROSS_MARKET the MaxOffset value used as an aggressive margin for hedge order price.
Max Bid (optional)Specifies the worst price the hedging algorithm can buy on the market. If calculated bid price for hedge order is above the limit, the order will be placed at Max Bid price.
Min Ask (optional)Specifies the worst price the hedging algorithm can sell on the market. If calculated ask price for hedge order is below the limit, the order will be placed at Min Ask price.

Risk Limits

Use parameters in this section to specify max long and max short exposure for the currency/asset.

INFO

Refer to Bot Configuration to learn more.

Examples
Algo_idInstrumentExchangeOpen Buy Qty
Algo 1BTCUSDBITTREX5 BTC
Algo 2ETHBTCKRAKEN3 ETH
ParameterSample ASample BSample C
CurrencyBTCBTCBTC
Exchange/Algo IdBITTREX2
Open Buy/Sell Qty5(buy)/0(sell)5(buy)/0(sell)0(buy)/0(sell)
Open Buy/Sell Amount0(buy)/3 ETH * Price (sell)0(buy)/0(sell)0(buy)/3 ETH * Price (sell)
Max Long/Short Exposure6/66/62/2
Max Long Exposure Validation0 + 5 BTC + 0 BTC <= 60 + 5 BTC + 0 BTC <= 60 + 0 BTC + 0 BTC <= 2
Max Short Exposure Validation0 + 0 BTC + 0.075 BTC <= 60 + 0 BTC + 0 BTC <= 60 + 0 BTC + 0.075 BTC <= 2
EPAM Systems all rights reserved, 2025