public class TradingHaltRule implements Market.MarketEvent, Market.OrderEvent
Market#isRunning() = false when the price changed beyond the prespecified threshold range.| Modifier and Type | Field and Description |
|---|---|
Long |
activationCount |
Long |
haltingTimeLength |
Long |
haltingTimeStarted |
Long |
referenceMarketId |
Double |
referencePrice |
Set<Long> |
targetMarketIds |
Double |
triggerChangeRate |
| Constructor and Description |
|---|
TradingHaltRule() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTargetMarket(Market market) |
void |
addTargetMarkets(List<Market> markets) |
void |
setReferencePrice(Double referencePrice) |
void |
update(Market market) |
void |
update(Market market,
Order order)
(The order will be ignored.)
|
updateupdatepublic Long referenceMarketId
public Double referencePrice
public Double triggerChangeRate
public Long haltingTimeLength
public Long haltingTimeStarted
public Long activationCount
public Set<Long> targetMarketIds