Layer1ApiProviderSupportedFeatures
Package: velox.api.layer1.data
Type: Class
Inheritance: java.lang.Object → velox.api.layer1.data.Layer1ApiProviderSupportedFeatures
Description​
Key differences between providers should be described by this class.
Nested Classes​
Layer1ApiProviderSupportedFeatures.ClientSideFeature​
Type: enum
Features that are implemented on the client side.
Fields​
trading​
public final boolean trading
Basic trading capabilities
multiAccountTrading​
public final boolean multiAccountTrading
Whether multi-account trading is supported by the provider.
See Also:
Layer1ApiTradingListenerTradingAccountsInfoMessageLayer1MultiAccountTradingSupported
tradingVia​
@Deprecated
public List<String> tradingVia
Deprecated. Use symbolsMappingFunction instead.
tradingFrom​
@Deprecated
public List<String> tradingFrom
Deprecated. Use symbolsMappingFunction instead.
oco​
public final boolean oco
oso​
public final boolean oso
depth​
public final boolean depth
Provides depth data. This is what most providers should do. Enabled in builder by default. Either depth or mbo must be enabled for any provider. Provider that generates MBO data (mbo) can still generate depth data if there is a reason to believe provider can do it better than deriving from MBO directly.
mbo​
public final boolean mbo
Provides MBO data.
trailingStopsAsIndependentOrders​
public final boolean trailingStopsAsIndependentOrders
trailingStopsAsBracketChildren​
public final boolean trailingStopsAsBracketChildren
brackets​
public final boolean brackets
bracketTiers​
public final boolean bracketTiers
convertOrderToMkt​
public final boolean convertOrderToMkt
supportedLimitDurations​
public final List<OrderDuration> supportedLimitDurations
supportedStopDurations​
public final List<OrderDuration> supportedStopDurations
supportedStopOrders​
public final List<OrderType> supportedStopOrders
negativeStopLimitOffset​
public final boolean negativeStopLimitOffset
If this is set to false then stop-limit orders can only be sent with positive or zero offset
marketMode​
public final boolean marketMode
isBalanceSupported​
public final boolean isBalanceSupported
tradingStartKnown​
public final boolean tradingStartKnown
If set it means that provider has a way to know when trading day starts for the instrument
knownInstruments​
public final List<SubscribeInfo> knownInstruments
List of instruments to be automatically added to subscription dialog
exchangeUsedForSubscription​
public final boolean exchangeUsedForSubscription
Determines if user can enter exchange when subscribing
typeUsedForSubscription​
public final boolean typeUsedForSubscription
Determines if user can set type when subscribing
pipsFunction​
public final Function<SubscribeInfo, DefaultAndList<Double>> pipsFunction
If set, it will be called to determine what are the possible pips values for selected instrument
sizeMultiplierFunction​
public final Function<SubscribeInfo, DefaultAndList<Double>> sizeMultiplierFunction
If set, it will be called to determine what are the possible size multiplier values for selected instrument
subscriptionInfoFunction​
public final Function<SubscribeInfo, String> subscriptionInfoFunction
Provides a short text block to be displayed in subscription dialog. Might be something informational (like what this instrument is) or a warning (i.e. that selected pips is too small to be meaningful for most users). Note that you might get any subclass of SubscribeInfo, so make sure to ignore unknown types and return something reasonable like null. Also keep in mind, that even if your adapter does require pips and size multiplier, you still might get SubscribeInfo instead of SubscribeInfoCrypto whenever those two are not defined yet (e.g. while waiting for pipsFunction)
historicalDataInfo​
public final HistoricalDataInfo historicalDataInfo
If not null, describes how historical data can be retrieved for particular instrument
lookupInfo​
public final LookupInfo lookupInfo
isDelayed​
public final boolean isDelayed
If data is delayed
clientSideFeatures​
public final Set<Layer1ApiProviderSupportedFeatures.ClientSideFeature> clientSideFeatures
List of features that are emulated on client side. Adapter will typically leave that empty. For example if adapter tells that brackets are not supported Bookmap will activate client-side replacement, but it will be less reliable (e.g. won't work if Bookmap is closed, will be slower due to network latency, etc)
isTradingSubscriptionSupported​
public final boolean isTradingSubscriptionSupported
Indicates if the trading subscription can be supported, usually it is needed on cross trading.
symbolsMappingFunction​
public final Function<Set<InstrumentCoreInfo>, SymbolMappingInfo> symbolsMappingFunction
Bookmap will provide you a list of the known representations of this instrument (for different platforms). If you don't recognize the instrument - return null. Bookmap might ask you again once it has more data (i.e. from other providers)
receiveCrossTradingStatusMessage​
public final boolean receiveCrossTradingStatusMessage
Indicates if the provider wants to receive a message when cross-trading starts/stops on one of its instruments.
isHistoricalAggregationDisabled​
public final boolean isHistoricalAggregationDisabled
By default, Bookmap will aggregate historical data, by setting this flag to true you can disable this functionality.
Methods​
getCopyWithAppliedTradingParams​
public Layer1ApiProviderSupportedFeatures getCopyWithAppliedTradingParams(Layer1ApiProviderSupportedFeatures other)
Parameters:
other-
Returns: copy of this supported features with all trading params from other
toBuilder​
public Layer1ApiProviderSupportedFeaturesBuilder toBuilder()
toString​
public String toString()
Overrides: toString in class Object