public final class PositionData extends com.google.protobuf.GeneratedMessageV3 implements PositionDataOrBuilder
com.tigerbrokers.stock.openapi.client.socket.data.pb.PositionData| 限定符和类型 | 类和说明 |
|---|---|
static class |
PositionData.Builder
Protobuf type
com.tigerbrokers.stock.openapi.client.socket.data.pb.PositionData |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ACCOUNT_FIELD_NUMBER |
static int |
AVERAGECOST_FIELD_NUMBER |
static int |
CURRENCY_FIELD_NUMBER |
static int |
EXPIRY_FIELD_NUMBER |
static int |
IDENTIFIER_FIELD_NUMBER |
static int |
LATESTPRICE_FIELD_NUMBER |
static int |
MARKET_FIELD_NUMBER |
static int |
MARKETVALUE_FIELD_NUMBER |
static int |
MULTIPLIER_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
POSITION_FIELD_NUMBER |
static int |
POSITIONQTY_FIELD_NUMBER |
static int |
POSITIONSCALE_FIELD_NUMBER |
static int |
RIGHT_FIELD_NUMBER |
static int |
SALABLEQTY_FIELD_NUMBER |
static int |
SALEABLE_FIELD_NUMBER |
static int |
SECTYPE_FIELD_NUMBER |
static int |
SEGTYPE_FIELD_NUMBER |
static int |
STRIKE_FIELD_NUMBER |
static int |
SYMBOL_FIELD_NUMBER |
static int |
TIMESTAMP_FIELD_NUMBER |
static int |
UNREALIZEDPNL_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
String |
getAccount()
user account
string account = 1; |
com.google.protobuf.ByteString |
getAccountBytes()
user account
string account = 1; |
double |
getAverageCost()
average holding cost
double averageCost = 14; |
String |
getCurrency()
currency.
|
com.google.protobuf.ByteString |
getCurrencyBytes()
currency.
|
static PositionData |
getDefaultInstance() |
PositionData |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getExpiry()
for options
string expiry = 3; |
com.google.protobuf.ByteString |
getExpiryBytes()
for options
string expiry = 3; |
String |
getIdentifier()
string identifier = 6; |
com.google.protobuf.ByteString |
getIdentifierBytes()
string identifier = 6; |
double |
getLatestPrice()
last price of the asset
double latestPrice = 15; |
String |
getMarket()
market.
|
com.google.protobuf.ByteString |
getMarketBytes()
market.
|
double |
getMarketValue()
market value of the asset
double marketValue = 16; |
int |
getMultiplier()
multiplier for futures, options, warrants and CBBC
uint32 multiplier = 7; |
String |
getName()
symbol name
string name = 18; |
com.google.protobuf.ByteString |
getNameBytes()
symbol name
string name = 18; |
com.google.protobuf.Parser<PositionData> |
getParserForType() |
long |
getPosition()
total position
sint64 position = 12; |
double |
getPositionQty()
total position quantity
double positionQty = 21; |
int |
getPositionScale()
total position scale
sint32 positionScale = 13; |
String |
getRight()
for options
string right = 5; |
com.google.protobuf.ByteString |
getRightBytes()
for options
string right = 5; |
double |
getSalableQty()
saleable quantity
double salableQty = 22; |
long |
getSaleable()
saleable quantity for Chinese A-share market stocks
optional sint64 saleable = 20; |
String |
getSecType()
STK Stocks, OPT Options, WAR Warrants, IOPT CBBC, CASH FOREX, FUT Futures, FOP Future Options
string secType = 11; |
com.google.protobuf.ByteString |
getSecTypeBytes()
STK Stocks, OPT Options, WAR Warrants, IOPT CBBC, CASH FOREX, FUT Futures, FOP Future Options
string secType = 11; |
String |
getSegType()
Securities Category C: (Commodities Futures), S: (Securities Stocks)
string segType = 10; |
com.google.protobuf.ByteString |
getSegTypeBytes()
Securities Category C: (Commodities Futures), S: (Securities Stocks)
string segType = 10; |
int |
getSerializedSize() |
String |
getStrike()
for options
string strike = 4; |
com.google.protobuf.ByteString |
getStrikeBytes()
for options
string strike = 4; |
String |
getSymbol()
string symbol = 2; |
com.google.protobuf.ByteString |
getSymbolBytes()
string symbol = 2; |
long |
getTimestamp()
uint64 timestamp = 19; |
double |
getUnrealizedPnl()
unrealized profit and loss
double unrealizedPnl = 17; |
int |
hashCode() |
boolean |
hasSaleable()
saleable quantity for Chinese A-share market stocks
optional sint64 saleable = 20; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static PositionData.Builder |
newBuilder() |
static PositionData.Builder |
newBuilder(PositionData prototype) |
PositionData.Builder |
newBuilderForType() |
protected PositionData.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static PositionData |
parseDelimitedFrom(InputStream input) |
static PositionData |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PositionData |
parseFrom(byte[] data) |
static PositionData |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PositionData |
parseFrom(ByteBuffer data) |
static PositionData |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PositionData |
parseFrom(com.google.protobuf.ByteString data) |
static PositionData |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PositionData |
parseFrom(com.google.protobuf.CodedInputStream input) |
static PositionData |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PositionData |
parseFrom(InputStream input) |
static PositionData |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<PositionData> |
parser() |
PositionData.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int ACCOUNT_FIELD_NUMBER
public static final int SYMBOL_FIELD_NUMBER
public static final int EXPIRY_FIELD_NUMBER
public static final int STRIKE_FIELD_NUMBER
public static final int RIGHT_FIELD_NUMBER
public static final int IDENTIFIER_FIELD_NUMBER
public static final int MULTIPLIER_FIELD_NUMBER
public static final int MARKET_FIELD_NUMBER
public static final int CURRENCY_FIELD_NUMBER
public static final int SEGTYPE_FIELD_NUMBER
public static final int SECTYPE_FIELD_NUMBER
public static final int POSITION_FIELD_NUMBER
public static final int POSITIONSCALE_FIELD_NUMBER
public static final int AVERAGECOST_FIELD_NUMBER
public static final int LATESTPRICE_FIELD_NUMBER
public static final int MARKETVALUE_FIELD_NUMBER
public static final int UNREALIZEDPNL_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
public static final int SALEABLE_FIELD_NUMBER
public static final int POSITIONQTY_FIELD_NUMBER
public static final int SALABLEQTY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3public String getAccount()
user account
string account = 1;getAccount 在接口中 PositionDataOrBuilderpublic com.google.protobuf.ByteString getAccountBytes()
user account
string account = 1;getAccountBytes 在接口中 PositionDataOrBuilderpublic String getSymbol()
string symbol = 2;getSymbol 在接口中 PositionDataOrBuilderpublic com.google.protobuf.ByteString getSymbolBytes()
string symbol = 2;getSymbolBytes 在接口中 PositionDataOrBuilderpublic String getExpiry()
for options
string expiry = 3;getExpiry 在接口中 PositionDataOrBuilderpublic com.google.protobuf.ByteString getExpiryBytes()
for options
string expiry = 3;getExpiryBytes 在接口中 PositionDataOrBuilderpublic String getStrike()
for options
string strike = 4;getStrike 在接口中 PositionDataOrBuilderpublic com.google.protobuf.ByteString getStrikeBytes()
for options
string strike = 4;getStrikeBytes 在接口中 PositionDataOrBuilderpublic String getRight()
for options
string right = 5;getRight 在接口中 PositionDataOrBuilderpublic com.google.protobuf.ByteString getRightBytes()
for options
string right = 5;getRightBytes 在接口中 PositionDataOrBuilderpublic String getIdentifier()
string identifier = 6;getIdentifier 在接口中 PositionDataOrBuilderpublic com.google.protobuf.ByteString getIdentifierBytes()
string identifier = 6;getIdentifierBytes 在接口中 PositionDataOrBuilderpublic int getMultiplier()
multiplier for futures, options, warrants and CBBC
uint32 multiplier = 7;getMultiplier 在接口中 PositionDataOrBuilderpublic String getMarket()
market. US, HK, etc.
string market = 8;getMarket 在接口中 PositionDataOrBuilderpublic com.google.protobuf.ByteString getMarketBytes()
market. US, HK, etc.
string market = 8;getMarketBytes 在接口中 PositionDataOrBuilderpublic String getCurrency()
currency. USD, HKD, etc.
string currency = 9;getCurrency 在接口中 PositionDataOrBuilderpublic com.google.protobuf.ByteString getCurrencyBytes()
currency. USD, HKD, etc.
string currency = 9;getCurrencyBytes 在接口中 PositionDataOrBuilderpublic String getSegType()
Securities Category C: (Commodities Futures), S: (Securities Stocks)
string segType = 10;getSegType 在接口中 PositionDataOrBuilderpublic com.google.protobuf.ByteString getSegTypeBytes()
Securities Category C: (Commodities Futures), S: (Securities Stocks)
string segType = 10;getSegTypeBytes 在接口中 PositionDataOrBuilderpublic String getSecType()
STK Stocks, OPT Options, WAR Warrants, IOPT CBBC, CASH FOREX, FUT Futures, FOP Future Options
string secType = 11;getSecType 在接口中 PositionDataOrBuilderpublic com.google.protobuf.ByteString getSecTypeBytes()
STK Stocks, OPT Options, WAR Warrants, IOPT CBBC, CASH FOREX, FUT Futures, FOP Future Options
string secType = 11;getSecTypeBytes 在接口中 PositionDataOrBuilderpublic long getPosition()
total position
sint64 position = 12;getPosition 在接口中 PositionDataOrBuilderpublic int getPositionScale()
total position scale
sint32 positionScale = 13;getPositionScale 在接口中 PositionDataOrBuilderpublic double getAverageCost()
average holding cost
double averageCost = 14;getAverageCost 在接口中 PositionDataOrBuilderpublic double getLatestPrice()
last price of the asset
double latestPrice = 15;getLatestPrice 在接口中 PositionDataOrBuilderpublic double getMarketValue()
market value of the asset
double marketValue = 16;getMarketValue 在接口中 PositionDataOrBuilderpublic double getUnrealizedPnl()
unrealized profit and loss
double unrealizedPnl = 17;getUnrealizedPnl 在接口中 PositionDataOrBuilderpublic String getName()
symbol name
string name = 18;getName 在接口中 PositionDataOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
symbol name
string name = 18;getNameBytes 在接口中 PositionDataOrBuilderpublic long getTimestamp()
uint64 timestamp = 19;getTimestamp 在接口中 PositionDataOrBuilderpublic boolean hasSaleable()
saleable quantity for Chinese A-share market stocks
optional sint64 saleable = 20;hasSaleable 在接口中 PositionDataOrBuilderpublic long getSaleable()
saleable quantity for Chinese A-share market stocks
optional sint64 saleable = 20;getSaleable 在接口中 PositionDataOrBuilderpublic double getPositionQty()
total position quantity
double positionQty = 21;getPositionQty 在接口中 PositionDataOrBuilderpublic double getSalableQty()
saleable quantity
double salableQty = 22;getSalableQty 在接口中 PositionDataOrBuilderpublic final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static PositionData parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PositionData parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PositionData parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PositionData parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PositionData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PositionData parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PositionData parseFrom(InputStream input) throws IOException
IOExceptionpublic static PositionData parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PositionData parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static PositionData parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PositionData parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static PositionData parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic PositionData.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static PositionData.Builder newBuilder()
public static PositionData.Builder newBuilder(PositionData prototype)
public PositionData.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected PositionData.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static PositionData getDefaultInstance()
public static com.google.protobuf.Parser<PositionData> parser()
public com.google.protobuf.Parser<PositionData> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public PositionData getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2025. All rights reserved.