程序包 xyz.redtorch.pb
类 CoreField.PositionField
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
xyz.redtorch.pb.CoreField.PositionField
- 所有已实现的接口:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,CoreField.PositionFieldOrBuilder
- 封闭类:
- CoreField
public static final class CoreField.PositionField
extends com.google.protobuf.GeneratedMessageV3
implements CoreField.PositionFieldOrBuilder
持仓Protobuf type
xyz.redtorch.pb.PositionField- 另请参阅:
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter 从类继承的嵌套类/接口 com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
字段概要
字段修饰符和类型字段说明static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int从类继承的字段 com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields从类继承的字段 com.google.protobuf.AbstractMessage
memoizedSize从类继承的字段 com.google.protobuf.AbstractMessageLite
memoizedHashCode -
方法概要
修饰符和类型方法说明boolean账户IDcom.google.protobuf.ByteString账户ID合约合约double最新合约价值static CoreField.PositionFieldstatic final com.google.protobuf.Descriptors.Descriptordouble交易所的保证金int冻结数量网关IDcom.google.protobuf.ByteString网关ID投机套保标识int投机套保标识double计算盈亏使用的行情最后价格double开仓盈亏double开仓盈亏率double开仓均价double开仓价格差com.google.protobuf.Parser<CoreField.PositionField>int持仓量持仓方向int持仓方向持仓在系统中的唯一代码,通常是<合约代码@交易所代码@产品类型@方向@投机套保标志@账户@币种@网关>com.google.protobuf.ByteString持仓在系统中的唯一代码,通常是<合约代码@交易所代码@产品类型@方向@投机套保标志@账户@币种@网关>double持仓盈亏double持仓盈亏率doublegetPrice()持仓均价double持仓价格差intint冻结数量int今持仓final com.google.protobuf.UnknownFieldSetdouble占用的保证金int冻结数量int昨持仓boolean合约inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(CoreField.PositionField prototype) protected CoreField.PositionField.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static CoreField.PositionFieldparseDelimitedFrom(InputStream input) static CoreField.PositionFieldparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CoreField.PositionFieldparseFrom(byte[] data) static CoreField.PositionFieldparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CoreField.PositionFieldparseFrom(com.google.protobuf.ByteString data) static CoreField.PositionFieldparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CoreField.PositionFieldparseFrom(com.google.protobuf.CodedInputStream input) static CoreField.PositionFieldparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CoreField.PositionFieldparseFrom(InputStream input) static CoreField.PositionFieldparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CoreField.PositionFieldparseFrom(ByteBuffer data) static CoreField.PositionFieldparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CoreField.PositionField>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) 从类继承的方法 com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag从类继承的方法 com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString从类继承的方法 com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo从接口继承的方法 com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
字段详细资料
-
POSITIONID_FIELD_NUMBER
public static final int POSITIONID_FIELD_NUMBER- 另请参阅:
-
ACCOUNTID_FIELD_NUMBER
public static final int ACCOUNTID_FIELD_NUMBER- 另请参阅:
-
POSITIONDIRECTION_FIELD_NUMBER
public static final int POSITIONDIRECTION_FIELD_NUMBER- 另请参阅:
-
POSITION_FIELD_NUMBER
public static final int POSITION_FIELD_NUMBER- 另请参阅:
-
FROZEN_FIELD_NUMBER
public static final int FROZEN_FIELD_NUMBER- 另请参阅:
-
YDPOSITION_FIELD_NUMBER
public static final int YDPOSITION_FIELD_NUMBER- 另请参阅:
-
YDFROZEN_FIELD_NUMBER
public static final int YDFROZEN_FIELD_NUMBER- 另请参阅:
-
TDPOSITION_FIELD_NUMBER
public static final int TDPOSITION_FIELD_NUMBER- 另请参阅:
-
TDFROZEN_FIELD_NUMBER
public static final int TDFROZEN_FIELD_NUMBER- 另请参阅:
-
LASTPRICE_FIELD_NUMBER
public static final int LASTPRICE_FIELD_NUMBER- 另请参阅:
-
PRICE_FIELD_NUMBER
public static final int PRICE_FIELD_NUMBER- 另请参阅:
-
PRICEDIFF_FIELD_NUMBER
public static final int PRICEDIFF_FIELD_NUMBER- 另请参阅:
-
OPENPRICE_FIELD_NUMBER
public static final int OPENPRICE_FIELD_NUMBER- 另请参阅:
-
OPENPRICEDIFF_FIELD_NUMBER
public static final int OPENPRICEDIFF_FIELD_NUMBER- 另请参阅:
-
POSITIONPROFIT_FIELD_NUMBER
public static final int POSITIONPROFIT_FIELD_NUMBER- 另请参阅:
-
POSITIONPROFITRATIO_FIELD_NUMBER
public static final int POSITIONPROFITRATIO_FIELD_NUMBER- 另请参阅:
-
OPENPOSITIONPROFIT_FIELD_NUMBER
public static final int OPENPOSITIONPROFIT_FIELD_NUMBER- 另请参阅:
-
OPENPOSITIONPROFITRATIO_FIELD_NUMBER
public static final int OPENPOSITIONPROFITRATIO_FIELD_NUMBER- 另请参阅:
-
USEMARGIN_FIELD_NUMBER
public static final int USEMARGIN_FIELD_NUMBER- 另请参阅:
-
EXCHANGEMARGIN_FIELD_NUMBER
public static final int EXCHANGEMARGIN_FIELD_NUMBER- 另请参阅:
-
CONTRACTVALUE_FIELD_NUMBER
public static final int CONTRACTVALUE_FIELD_NUMBER- 另请参阅:
-
HEDGEFLAG_FIELD_NUMBER
public static final int HEDGEFLAG_FIELD_NUMBER- 另请参阅:
-
CONTRACT_FIELD_NUMBER
public static final int CONTRACT_FIELD_NUMBER- 另请参阅:
-
GATEWAYID_FIELD_NUMBER
public static final int GATEWAYID_FIELD_NUMBER- 另请参阅:
-
-
方法详细资料
-
newInstance
- 覆盖:
newInstance在类中com.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- 指定者:
getUnknownFields在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getUnknownFields在类中com.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3
-
getPositionId
持仓在系统中的唯一代码,通常是<合约代码@交易所代码@产品类型@方向@投机套保标志@账户@币种@网关>
string positionId = 1;- 指定者:
getPositionId在接口中CoreField.PositionFieldOrBuilder- 返回:
- The positionId.
-
getPositionIdBytes
public com.google.protobuf.ByteString getPositionIdBytes()持仓在系统中的唯一代码,通常是<合约代码@交易所代码@产品类型@方向@投机套保标志@账户@币种@网关>
string positionId = 1;- 指定者:
getPositionIdBytes在接口中CoreField.PositionFieldOrBuilder- 返回:
- The bytes for positionId.
-
getAccountId
账户ID
string accountId = 2;- 指定者:
getAccountId在接口中CoreField.PositionFieldOrBuilder- 返回:
- The accountId.
-
getAccountIdBytes
public com.google.protobuf.ByteString getAccountIdBytes()账户ID
string accountId = 2;- 指定者:
getAccountIdBytes在接口中CoreField.PositionFieldOrBuilder- 返回:
- The bytes for accountId.
-
getPositionDirectionValue
public int getPositionDirectionValue()持仓方向
.xyz.redtorch.pb.PositionDirectionEnum positionDirection = 3;- 指定者:
getPositionDirectionValue在接口中CoreField.PositionFieldOrBuilder- 返回:
- The enum numeric value on the wire for positionDirection.
-
getPositionDirection
持仓方向
.xyz.redtorch.pb.PositionDirectionEnum positionDirection = 3;- 指定者:
getPositionDirection在接口中CoreField.PositionFieldOrBuilder- 返回:
- The positionDirection.
-
getPosition
public int getPosition()持仓量
fixed32 position = 4;- 指定者:
getPosition在接口中CoreField.PositionFieldOrBuilder- 返回:
- The position.
-
getFrozen
public int getFrozen()冻结数量
fixed32 frozen = 5;- 指定者:
getFrozen在接口中CoreField.PositionFieldOrBuilder- 返回:
- The frozen.
-
getYdPosition
public int getYdPosition()昨持仓
fixed32 ydPosition = 6;- 指定者:
getYdPosition在接口中CoreField.PositionFieldOrBuilder- 返回:
- The ydPosition.
-
getYdFrozen
public int getYdFrozen()冻结数量
fixed32 ydFrozen = 7;- 指定者:
getYdFrozen在接口中CoreField.PositionFieldOrBuilder- 返回:
- The ydFrozen.
-
getTdPosition
public int getTdPosition()今持仓
fixed32 tdPosition = 8;- 指定者:
getTdPosition在接口中CoreField.PositionFieldOrBuilder- 返回:
- The tdPosition.
-
getTdFrozen
public int getTdFrozen()冻结数量
fixed32 tdFrozen = 9;- 指定者:
getTdFrozen在接口中CoreField.PositionFieldOrBuilder- 返回:
- The tdFrozen.
-
getLastPrice
public double getLastPrice()计算盈亏使用的行情最后价格
double lastPrice = 10;- 指定者:
getLastPrice在接口中CoreField.PositionFieldOrBuilder- 返回:
- The lastPrice.
-
getPrice
public double getPrice()持仓均价
double price = 11;- 指定者:
getPrice在接口中CoreField.PositionFieldOrBuilder- 返回:
- The price.
-
getPriceDiff
public double getPriceDiff()持仓价格差
double priceDiff = 12;- 指定者:
getPriceDiff在接口中CoreField.PositionFieldOrBuilder- 返回:
- The priceDiff.
-
getOpenPrice
public double getOpenPrice()开仓均价
double openPrice = 13;- 指定者:
getOpenPrice在接口中CoreField.PositionFieldOrBuilder- 返回:
- The openPrice.
-
getOpenPriceDiff
public double getOpenPriceDiff()开仓价格差
double openPriceDiff = 14;- 指定者:
getOpenPriceDiff在接口中CoreField.PositionFieldOrBuilder- 返回:
- The openPriceDiff.
-
getPositionProfit
public double getPositionProfit()持仓盈亏
double positionProfit = 15;- 指定者:
getPositionProfit在接口中CoreField.PositionFieldOrBuilder- 返回:
- The positionProfit.
-
getPositionProfitRatio
public double getPositionProfitRatio()持仓盈亏率
double positionProfitRatio = 16;- 指定者:
getPositionProfitRatio在接口中CoreField.PositionFieldOrBuilder- 返回:
- The positionProfitRatio.
-
getOpenPositionProfit
public double getOpenPositionProfit()开仓盈亏
double openPositionProfit = 17;- 指定者:
getOpenPositionProfit在接口中CoreField.PositionFieldOrBuilder- 返回:
- The openPositionProfit.
-
getOpenPositionProfitRatio
public double getOpenPositionProfitRatio()开仓盈亏率
double openPositionProfitRatio = 18;- 指定者:
getOpenPositionProfitRatio在接口中CoreField.PositionFieldOrBuilder- 返回:
- The openPositionProfitRatio.
-
getUseMargin
public double getUseMargin()占用的保证金
double useMargin = 19;- 指定者:
getUseMargin在接口中CoreField.PositionFieldOrBuilder- 返回:
- The useMargin.
-
getExchangeMargin
public double getExchangeMargin()交易所的保证金
double exchangeMargin = 20;- 指定者:
getExchangeMargin在接口中CoreField.PositionFieldOrBuilder- 返回:
- The exchangeMargin.
-
getContractValue
public double getContractValue()最新合约价值
double contractValue = 21;- 指定者:
getContractValue在接口中CoreField.PositionFieldOrBuilder- 返回:
- The contractValue.
-
getHedgeFlagValue
public int getHedgeFlagValue()投机套保标识
.xyz.redtorch.pb.HedgeFlagEnum hedgeFlag = 22;- 指定者:
getHedgeFlagValue在接口中CoreField.PositionFieldOrBuilder- 返回:
- The enum numeric value on the wire for hedgeFlag.
-
getHedgeFlag
投机套保标识
.xyz.redtorch.pb.HedgeFlagEnum hedgeFlag = 22;- 指定者:
getHedgeFlag在接口中CoreField.PositionFieldOrBuilder- 返回:
- The hedgeFlag.
-
hasContract
public boolean hasContract()合约
.xyz.redtorch.pb.ContractField contract = 23;- 指定者:
hasContract在接口中CoreField.PositionFieldOrBuilder- 返回:
- Whether the contract field is set.
-
getContract
合约
.xyz.redtorch.pb.ContractField contract = 23;- 指定者:
getContract在接口中CoreField.PositionFieldOrBuilder- 返回:
- The contract.
-
getContractOrBuilder
合约
.xyz.redtorch.pb.ContractField contract = 23; -
getGatewayId
网关ID
string gatewayId = 24;- 指定者:
getGatewayId在接口中CoreField.PositionFieldOrBuilder- 返回:
- The gatewayId.
-
getGatewayIdBytes
public com.google.protobuf.ByteString getGatewayIdBytes()网关ID
string gatewayId = 24;- 指定者:
getGatewayIdBytes在接口中CoreField.PositionFieldOrBuilder- 返回:
- The bytes for gatewayId.
-
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3
-
writeTo
- 指定者:
writeTo在接口中com.google.protobuf.MessageLite- 覆盖:
writeTo在类中com.google.protobuf.GeneratedMessageV3- 抛出:
IOException
-
getSerializedSize
public int getSerializedSize()- 指定者:
getSerializedSize在接口中com.google.protobuf.MessageLite- 覆盖:
getSerializedSize在类中com.google.protobuf.GeneratedMessageV3
-
equals
- 指定者:
equals在接口中com.google.protobuf.Message- 覆盖:
equals在类中com.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- 指定者:
hashCode在接口中com.google.protobuf.Message- 覆盖:
hashCode在类中com.google.protobuf.AbstractMessage
-
parseFrom
public static CoreField.PositionField parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CoreField.PositionField parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CoreField.PositionField parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CoreField.PositionField parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CoreField.PositionField parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CoreField.PositionField parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- 抛出:
IOException
-
parseFrom
public static CoreField.PositionField parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - 抛出:
IOException
-
parseDelimitedFrom
- 抛出:
IOException
-
parseDelimitedFrom
public static CoreField.PositionField parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - 抛出:
IOException
-
parseFrom
public static CoreField.PositionField parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - 抛出:
IOException
-
parseFrom
public static CoreField.PositionField parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - 抛出:
IOException
-
newBuilderForType
- 指定者:
newBuilderForType在接口中com.google.protobuf.Message- 指定者:
newBuilderForType在接口中com.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- 指定者:
toBuilder在接口中com.google.protobuf.Message- 指定者:
toBuilder在接口中com.google.protobuf.MessageLite
-
newBuilderForType
protected CoreField.PositionField.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - 指定者:
newBuilderForType在类中com.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- 指定者:
getParserForType在接口中com.google.protobuf.Message- 指定者:
getParserForType在接口中com.google.protobuf.MessageLite- 覆盖:
getParserForType在类中com.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-