Condition format

Condition format

The condition consists of several parts separated by a colon. The number and meaning of condition parts are unique to each entity. Each condition part is either a simple expression (described below) or not set.

Condition operators

Operator Meaning
= Value should be equal to the provided constant
! Value should not equal to the provided constant
> Value should be greater than the provided constant
< Value should be less than the provided constant

Entity Condition Format

Entity Format
Market
  • sportCondition: example =H::: Condition is matched if sport (event schema) is Hockey (=H)
  • tradingTypeCondition: example :1::: Condition is matched if trading type is 1 (=1)
  • periodCondition: example ::2:: Condition is matched if period is 2 (=2)
  • value1Condition: example :::>4: Condition is matched if market value is greater than 4 (>4)
  • marketParameter2: example ::::>4 Condition is matched if market value is greater than 4 (>4)
Outcome
  • sportCondition: example =H:::: Condition is matched if sport is Hockey (=H)
  • marketTypeCondition: example :1::: Condition is matched if market type is 1 (=1)
  • marketValue1Condition: example ::>4" Condition is matched if market value is greater than 4 (>4)
  • outcomeValue1Condition: example , :::=2: Condition is matched if outcome parameter value is 2 (=2)
  • outcomeValuesCountCondition: example :::::=1 Condition is matched if outcome parameters count is 1 (=1)
Period
  • periodCondition: example =1:: Condition is matched if period is 1 (=1)
  • subPeriodCondition: example :1:: Condition is matched if subPeriod is 1 (=1)
  • periodsCountCondition: example ::=1 Periods count is calculated based on whether subPeriod is null.
TradingType Conditions are not used
Prompt
  • sportCondition: example =H::: Condition is matched if sport is Hockey (=H)
  • tradingTypeCondition: example :1:: Condition is matched if trading type is 1 (=1)
  • periodCondition: example ::2: Condition is matched if period is 2 (=2)
  • subPeriodCondition: example :::=1 Condition is matched if subPeriod is 1 (=1)
  • Example condition: "=CK:=1::!null", need to work with "null" for subPeriod.