public class OrderBookCorrector extends Object
Constructor and Description |
---|
OrderBookCorrector(DXFeed feed)
Creates new model with default parameters and attaches it to specified data feed.
|
OrderBookCorrector(DXFeed feed,
long keepTTL,
long flipTTL)
Creates new model with specified parameters and attaches it to specified data feed.
|
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(DXFeedEventListener<Order> listener)
Adds listener for events.
|
void |
close()
Closes this model and makes it permanently detached from data feed.
|
void |
removeEventListener(DXFeedEventListener<Order> listener)
Removes listener for events.
|
void |
setSymbols(Collection<String> symbols)
Changes the set of subscribed symbols so that it contains just the symbols from the specified collection.
|
void |
setSymbols(String... symbols)
Changes the set of subscribed symbols so that it contains just the symbols from the specified array.
|
public OrderBookCorrector(DXFeed feed)
public OrderBookCorrector(DXFeed feed, long keepTTL, long flipTTL)
public void close()
public void setSymbols(Collection<String> symbols)
symbols
- the collection of symbols.public void setSymbols(String... symbols)
symbols
- the array of symbols.public void addEventListener(DXFeedEventListener<Order> listener)
listener
- the event listener.NullPointerException
- if listener is null.public void removeEventListener(DXFeedEventListener<Order> listener)
listener
- the event listener.NullPointerException
- if listener is null.Copyright © 2002–2023 Devexperts LLC. All rights reserved.