Skip to main content

Layer1ApiGetAliasMessage

Package: velox.api.layer1.messages

Type: Class

Inheritance: java.lang.Object รขโ€ โ€™ Layer1ApiGetAliasMessage

Descriptionโ€‹

Request for alias generation based on symbol, exchange, type.

A provider should respond with what is the unique alias for an instrument with this symbol/exchange/type.

If a provider doesn't recognize this instrument, it can respond with null, or return a unique value that could be an alias for the instrument if it would exist: e.g. if your alias is always in <symbol>.<exchange> format, then you can generate it in the same way. In this case, the provider should also be able to handle subsequent requests related to this symbol, like order executions during cross-trading - i.e. gracefully reject an attempt to send orders for such non-existent instrument.

Return String alias or null

Fieldsโ€‹

symbolโ€‹

public final String symbol

exchangeโ€‹

public final String exchange

typeโ€‹

public final String type

Constructorsโ€‹

Layer1ApiGetAliasMessageโ€‹

public Layer1ApiGetAliasMessage(String symbol, String exchange, String type)

Layer1ApiGetAliasMessageโ€‹

public Layer1ApiGetAliasMessage(InstrumentCoreInfo instrumentInfo)