public class Layer1ApiProviderSupportedFeatures
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Layer1ApiProviderSupportedFeatures.ClientSideFeature
Features that are implemented on the client side.
|
Modifier and Type | Field and Description |
---|---|
boolean |
brackets |
java.util.Set<Layer1ApiProviderSupportedFeatures.ClientSideFeature> |
clientSideFeatures
List of features that are emulated on client side.
|
boolean |
convertOrderToMkt |
boolean |
depth
Provides depth data.
|
boolean |
exchangeUsedForSubscription
Determines if user can enter exchange when subscribing
|
HistoricalDataInfo |
historicalDataInfo
If not null, describes how historical data can be retrieved for particular instrument
|
boolean |
isBalanceSupported |
boolean |
isDelayed
If data is delayed
|
java.util.List<SubscribeInfo> |
knownInstruments
List of instruments to be automatically added to subscription dialog
|
LookupInfo |
lookupInfo |
boolean |
marketMode |
boolean |
mbo
Provides MBO data.
|
boolean |
negativeStopLimitOffset
If this is set to false then stop-limit orders can only be sent with positive or zero offset
|
boolean |
oco |
boolean |
oso |
java.util.function.Function<SubscribeInfo,DefaultAndList<java.lang.Double>> |
pipsFunction
If set, it will be called to determine what are the possible pips values for selected instrument
|
java.util.function.Function<SubscribeInfo,DefaultAndList<java.lang.Double>> |
sizeMultiplierFunction
If set, it will be called to determine what are the possible size multiplier values for selected instrument
|
java.util.List<OrderDuration> |
supportedLimitDurations |
java.util.List<OrderDuration> |
supportedStopDurations |
java.util.List<OrderType> |
supportedStopOrders |
boolean |
trading
Basic trading capabilities
|
java.util.List<java.lang.String> |
tradingFrom
Provider can declare that it can be used to trade from other source
|
boolean |
tradingStartKnown
If set it means that provider has a way to know when trading day starts for the instrument
|
java.util.List<java.lang.String> |
tradingVia
If not null, this is provider that is used to do trading (e.g.
|
boolean |
trailingStopsAsBracketChildren |
boolean |
trailingStopsAsIndependentOrders |
boolean |
typeUsedForSubscription
Determines if user can set type when subscribing
|
Constructor and Description |
---|
Layer1ApiProviderSupportedFeatures(boolean trading,
java.util.List<java.lang.String> tradingVia,
java.util.List<java.lang.String> tradingFrom,
boolean oco,
boolean oso,
boolean depth,
boolean mbo,
boolean trailingStopsAsIndependentOrders,
boolean trailingStopsAsBracketChildren,
boolean brackets,
boolean convertOrderToMkt,
boolean marketMode,
java.util.List<OrderDuration> supportedLimitDurations,
java.util.List<OrderDuration> supportedStopDurations,
java.util.List<OrderType> supportedStopOrders,
boolean negativeStopLimitOffset,
boolean isBalanceSupported,
boolean tradingStartKnown,
java.util.List<SubscribeInfo> knownInstruments,
boolean exchangeUsedForSubscription,
boolean typeUsedForSubscription,
java.util.function.Function<SubscribeInfo,DefaultAndList<java.lang.Double>> pipsFunction,
java.util.function.Function<SubscribeInfo,DefaultAndList<java.lang.Double>> sizeMultiplierFunction,
HistoricalDataInfo historicalDataInfo,
LookupInfo lookupInfo,
boolean isDelayed,
java.util.Set<Layer1ApiProviderSupportedFeatures.ClientSideFeature> clientSideFeatures)
Don't use this directly - use
Layer1ApiProviderSupportedFeaturesBuilder instead. |
Modifier and Type | Method and Description |
---|---|
Layer1ApiProviderSupportedFeatures |
getCopyWithAppliedTradingParams(Layer1ApiProviderSupportedFeatures other) |
Layer1ApiProviderSupportedFeaturesBuilder |
toBuilder() |
java.lang.String |
toString() |
public final boolean trading
public java.util.List<java.lang.String> tradingVia
tradingVia
will be IB)public java.util.List<java.lang.String> tradingFrom
public final boolean oco
public final boolean oso
public final boolean depth
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.public final boolean mbo
public final boolean trailingStopsAsIndependentOrders
public final boolean trailingStopsAsBracketChildren
public final boolean brackets
public final boolean convertOrderToMkt
public final java.util.List<OrderDuration> supportedLimitDurations
public final java.util.List<OrderDuration> supportedStopDurations
public final java.util.List<OrderType> supportedStopOrders
public final boolean negativeStopLimitOffset
public final boolean marketMode
public final boolean isBalanceSupported
public final boolean tradingStartKnown
public final java.util.List<SubscribeInfo> knownInstruments
public final boolean exchangeUsedForSubscription
public final boolean typeUsedForSubscription
public final java.util.function.Function<SubscribeInfo,DefaultAndList<java.lang.Double>> pipsFunction
public final java.util.function.Function<SubscribeInfo,DefaultAndList<java.lang.Double>> sizeMultiplierFunction
public final HistoricalDataInfo historicalDataInfo
public final LookupInfo lookupInfo
public final boolean isDelayed
public final java.util.Set<Layer1ApiProviderSupportedFeatures.ClientSideFeature> clientSideFeatures
public Layer1ApiProviderSupportedFeatures(boolean trading, java.util.List<java.lang.String> tradingVia, java.util.List<java.lang.String> tradingFrom, boolean oco, boolean oso, boolean depth, boolean mbo, boolean trailingStopsAsIndependentOrders, boolean trailingStopsAsBracketChildren, boolean brackets, boolean convertOrderToMkt, boolean marketMode, java.util.List<OrderDuration> supportedLimitDurations, java.util.List<OrderDuration> supportedStopDurations, java.util.List<OrderType> supportedStopOrders, boolean negativeStopLimitOffset, boolean isBalanceSupported, boolean tradingStartKnown, java.util.List<SubscribeInfo> knownInstruments, boolean exchangeUsedForSubscription, boolean typeUsedForSubscription, java.util.function.Function<SubscribeInfo,DefaultAndList<java.lang.Double>> pipsFunction, java.util.function.Function<SubscribeInfo,DefaultAndList<java.lang.Double>> sizeMultiplierFunction, HistoricalDataInfo historicalDataInfo, LookupInfo lookupInfo, boolean isDelayed, java.util.Set<Layer1ApiProviderSupportedFeatures.ClientSideFeature> clientSideFeatures)
Layer1ApiProviderSupportedFeaturesBuilder
instead.public Layer1ApiProviderSupportedFeatures getCopyWithAppliedTradingParams(Layer1ApiProviderSupportedFeatures other)
other
- public Layer1ApiProviderSupportedFeaturesBuilder toBuilder()
public java.lang.String toString()
toString
in class java.lang.Object