com.dxfeed.api.event
Class MarketEventSymbols
java.lang.Object
com.dxfeed.api.event.MarketEventSymbols
public class MarketEventSymbols
- extends java.lang.Object
Helper class to compose and parse symbols for market events.
Regional symbols
Regional symbol subscription receives events only from a designated exchange, marketplace, or venue
instead of receiving composite events from all venues (by default). Regional symbol is composed from a
base symbol, ampersand character ('&'), and an exchange code character. For example,
- "SPY" is the symbol for composite events for SPDR S&P 500 ETF from all exchanges,
- "SPY&N" is the symbol for event for SPDR S&P 500 ETF that originate only from NYSE marketplace.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hasExchangeCode
public static boolean hasExchangeCode(java.lang.String symbol)
getExchangeCode
public static char getExchangeCode(java.lang.String symbol)
changeExchangeCode
public static java.lang.String changeExchangeCode(java.lang.String symbol,
char exchangeCode)
getBaseSymbol
public static java.lang.String getBaseSymbol(java.lang.String symbol)
changeBaseSymbol
public static java.lang.String changeBaseSymbol(java.lang.String symbol,
java.lang.String baseSymbol)