Package velox.api.layer1.data
Class Layer1ApiProviderSupportedFeatures
java.lang.Object
velox.api.layer1.data.Layer1ApiProviderSupportedFeatures
Key differences between providers should be described by this
class.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFeatures that are implemented on the client side.static final recordstatic enumstatic final recordSupported limit and stop durations for instrument. -
Field Summary
FieldsModifier and TypeFieldDescriptionSpecial time source.final booleanfinal booleanList of features that are emulated on client side.final booleanfinal booleanProvides depth data.final booleanDetermines if user can enter exchange when subscribingfinal HistoricalDataInfoIf not null, describes how historical data can be retrieved for particular instrumentBookmap will provide you with an instrument for which it wants to fetch history.final booleanfinal booleanIf data is delayedfinal booleanBy default, Bookmap will aggregate historical data, by setting this flag to true you can disable this functionality.final booleanIndicates if the trading subscription can be supported, usually it is needed on cross trading.final List<SubscribeInfo>List of instruments to be automatically added to subscription dialogfinal LookupInfofinal booleanfinal booleanProvides MBO data.final booleanWhether multi-account trading is supported by the provider.final booleanIf this is set to false then stop-limit orders can only be sent with positive or zero offsetfinal booleanfinal booleanIndicates whether the provider sends order updates reliably for instruments that are not explicitly subscribed.final booleanfinal Function<SubscribeInfo,DefaultAndList<Double>> If set, it will be called to determine what are the possible pips values for selected instrumentfinal booleanIndicates if the provider wants to receive a message when cross-trading starts/stops on one of its instruments.final Function<SubscribeInfo,DefaultAndList<Double>> If set, it will be called to determine what are the possible size multiplier values for selected instrumentfinal booleanIndicates whether the provider sends status updates reliably for instruments that are not explicitly subscribed.final Function<SubscribeInfo,String> Provides a short text block to be displayed in subscription dialog.final List<OrderDuration>Set of supported OCO features.final Function<Layer1ApiProviderSupportedFeatures.OrderDurationRequestParameters,Layer1ApiProviderSupportedFeatures.SupportedOrderDurationsBundle> Function that provides supported durations for given instrument.final List<OrderDuration>Bookmap will provide you a list of the known representations of this instrument (for different platforms).final booleanBasic trading capabilitiesDeprecated.final booleanIf set it means that provider has a way to know when trading day starts for the instrumentDeprecated.final booleanfinal booleanfinal booleanDetermines if user can set type when subscribing -
Method Summary
-
Field Details
-
trading
public final boolean tradingBasic trading capabilities -
multiAccountTrading
public final boolean multiAccountTradingWhether multi-account trading is supported by the provider.- See Also:
-
tradingVia
Deprecated.UsesymbolsMappingFunctioninstead. -
tradingFrom
Deprecated.UsesymbolsMappingFunctioninstead. -
oco
public final boolean oco -
oso
public final boolean oso -
depth
public final boolean depthProvides depth data. This is what most providers should do. Enabled in builder by default. Eitherdepthormbomust 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 mboProvides 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
-
supportedStopDurations
-
supportedStopOrders
-
negativeStopLimitOffset
public final boolean negativeStopLimitOffsetIf 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 tradingStartKnownIf set it means that provider has a way to know when trading day starts for the instrument -
knownInstruments
List of instruments to be automatically added to subscription dialog -
exchangeUsedForSubscription
public final boolean exchangeUsedForSubscriptionDetermines if user can enter exchange when subscribing -
typeUsedForSubscription
public final boolean typeUsedForSubscriptionDetermines if user can set type when subscribing -
pipsFunction
If set, it will be called to determine what are the possible pips values for selected instrument -
sizeMultiplierFunction
If set, it will be called to determine what are the possible size multiplier values for selected instrument -
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 ofSubscribeInfo, so make sure to ignore unknown types and return something reasonable likenull. Also keep in mind, that even if your adapter does require pips and size multiplier, you still might getSubscribeInfoinstead ofSubscribeInfoCryptowhenever those two are not defined yet (e.g. while waiting forpipsFunction) -
historicalDataInfo
If not null, describes how historical data can be retrieved for particular instrument -
lookupInfo
-
isDelayed
public final boolean isDelayedIf data is delayed -
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 isTradingSubscriptionSupportedIndicates if the trading subscription can be supported, usually it is needed on cross trading.- See Also:
-
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 receiveCrossTradingStatusMessageIndicates if the provider wants to receive a message when cross-trading starts/stops on one of its instruments. -
isHistoricalAggregationDisabled
public final boolean isHistoricalAggregationDisabledBy default, Bookmap will aggregate historical data, by setting this flag to true you can disable this functionality. -
statusWithoutSubscription
public final boolean statusWithoutSubscriptionIndicates whether the provider sends status updates reliably for instruments that are not explicitly subscribed. False by default, but the provider still can send status when the value is false. -
ordersWithoutSubscription
public final boolean ordersWithoutSubscriptionIndicates whether the provider sends order updates reliably for instruments that are not explicitly subscribed. False by default, but the provider still can send orders when the value is false. -
supportedOcoFeatures
Set of supported OCO features. In case if the OCO order is rejected, the list of supported OCO features will be shown. By default, if the provider supports OCO, it considered that it supports all the OCO features -
additionalTimeSource
Special time source. Should provide current provider time in nanoseconds. If provider can't currently give time it must reply with -1. Currently only usage is in embedded (Provides time for replay instruments) -
historyInstrumentOverrideFunction
Bookmap will provide you with an instrument for which it wants to fetch history. Provider must respond with an instrument which history should be used instead. If the provided instrument should be used, the provider should return it as is (or null). -
supportedOrderDurationsFunction
public final Function<Layer1ApiProviderSupportedFeatures.OrderDurationRequestParameters,Layer1ApiProviderSupportedFeatures.SupportedOrderDurationsBundle> supportedOrderDurationsFunctionFunction that provides supported durations for given instrument. ReturnedsupportedLimitDurationsandsupportedStopDurationspreferably should be subset ofsupportedLimitDurationsandsupportedStopDurationsrespectively. Can be null.
-
-
Method Details
-
getCopyWithAppliedTradingParams
public Layer1ApiProviderSupportedFeatures getCopyWithAppliedTradingParams(Layer1ApiProviderSupportedFeatures other) - Parameters:
other-- Returns:
- copy of this supported features with all trading params from other
-
toBuilder
-
toString
-