Package ru.tinkoff.piapi.contract.v1
Interface PostOrderRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PostOrderRequest,PostOrderRequest.Builder
public interface PostOrderRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionНомер счёта.com.google.protobuf.ByteStringНомер счёта.Направление операции.intНаправление операции.getFigi()Figi-идентификатор инструмента.com.google.protobuf.ByteStringFigi-идентификатор инструмента.Идентификатор инструмента, принимает значения Figi или Instrument_uid.com.google.protobuf.ByteStringИдентификатор инструмента, принимает значения Figi или Instrument_uid.Идентификатор запроса выставления поручения для целей идемпотентности.com.google.protobuf.ByteStringИдентификатор запроса выставления поручения для целей идемпотентности.Тип заявки.intТип заявки.getPrice()Цена за 1 инструмент.Цена за 1 инструмент.longКоличество лотов.booleanhasPrice()Цена за 1 инструмент.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getFigi
String getFigi()Figi-идентификатор инструмента.
string figi = 1;- Returns:
- The figi.
-
getFigiBytes
com.google.protobuf.ByteString getFigiBytes()Figi-идентификатор инструмента.
string figi = 1;- Returns:
- The bytes for figi.
-
getQuantity
long getQuantity()Количество лотов.
int64 quantity = 2;- Returns:
- The quantity.
-
hasPrice
boolean hasPrice()Цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Игнорируется для рыночных поручений.
.tinkoff.public.invest.api.contract.v1.Quotation price = 3;- Returns:
- Whether the price field is set.
-
getPrice
Quotation getPrice()Цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Игнорируется для рыночных поручений.
.tinkoff.public.invest.api.contract.v1.Quotation price = 3;- Returns:
- The price.
-
getPriceOrBuilder
QuotationOrBuilder getPriceOrBuilder()Цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Игнорируется для рыночных поручений.
.tinkoff.public.invest.api.contract.v1.Quotation price = 3; -
getDirectionValue
int getDirectionValue()Направление операции.
.tinkoff.public.invest.api.contract.v1.OrderDirection direction = 4;- Returns:
- The enum numeric value on the wire for direction.
-
getDirection
OrderDirection getDirection()Направление операции.
.tinkoff.public.invest.api.contract.v1.OrderDirection direction = 4;- Returns:
- The direction.
-
getAccountId
String getAccountId()Номер счёта.
string account_id = 5;- Returns:
- The accountId.
-
getAccountIdBytes
com.google.protobuf.ByteString getAccountIdBytes()Номер счёта.
string account_id = 5;- Returns:
- The bytes for accountId.
-
getOrderTypeValue
int getOrderTypeValue()Тип заявки.
.tinkoff.public.invest.api.contract.v1.OrderType order_type = 6;- Returns:
- The enum numeric value on the wire for orderType.
-
getOrderType
OrderType getOrderType()Тип заявки.
.tinkoff.public.invest.api.contract.v1.OrderType order_type = 6;- Returns:
- The orderType.
-
getOrderId
String getOrderId()Идентификатор запроса выставления поручения для целей идемпотентности. Максимальная длина 36 символов.
string order_id = 7;- Returns:
- The orderId.
-
getOrderIdBytes
com.google.protobuf.ByteString getOrderIdBytes()Идентификатор запроса выставления поручения для целей идемпотентности. Максимальная длина 36 символов.
string order_id = 7;- Returns:
- The bytes for orderId.
-
getInstrumentId
String getInstrumentId()Идентификатор инструмента, принимает значения Figi или Instrument_uid.
string instrument_id = 8;- Returns:
- The instrumentId.
-
getInstrumentIdBytes
com.google.protobuf.ByteString getInstrumentIdBytes()Идентификатор инструмента, принимает значения Figi или Instrument_uid.
string instrument_id = 8;- Returns:
- The bytes for instrumentId.
-