Package ru.tinkoff.piapi.contract.v1
Interface TradeOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Trade,Trade.Builder
public interface TradeOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionНаправление сделки.intНаправление сделки.getFigi()Figi-идентификатор инструмента.com.google.protobuf.ByteStringFigi-идентификатор инструмента.Uid инструментаcom.google.protobuf.ByteStringUid инструментаgetPrice()Цена за 1 инструмент.Цена за 1 инструмент.longКоличество лотов.com.google.protobuf.TimestampgetTime()Время сделки в часовом поясе UTC по времени биржи.com.google.protobuf.TimestampOrBuilderВремя сделки в часовом поясе UTC по времени биржи.booleanhasPrice()Цена за 1 инструмент.booleanhasTime()Время сделки в часовом поясе UTC по времени биржи.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.
-
getDirectionValue
int getDirectionValue()Направление сделки.
.tinkoff.public.invest.api.contract.v1.TradeDirection direction = 2;- Returns:
- The enum numeric value on the wire for direction.
-
getDirection
TradeDirection getDirection()Направление сделки.
.tinkoff.public.invest.api.contract.v1.TradeDirection direction = 2;- Returns:
- The direction.
-
hasPrice
boolean hasPrice()Цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://tinkoff.github.io/investAPI/faq_marketdata/)
.tinkoff.public.invest.api.contract.v1.Quotation price = 3;- Returns:
- Whether the price field is set.
-
getPrice
Quotation getPrice()Цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://tinkoff.github.io/investAPI/faq_marketdata/)
.tinkoff.public.invest.api.contract.v1.Quotation price = 3;- Returns:
- The price.
-
getPriceOrBuilder
QuotationOrBuilder getPriceOrBuilder()Цена за 1 инструмент. Для получения стоимости лота требуется умножить на лотность инструмента. Для перевод цен в валюту рекомендуем использовать [информацию со страницы](https://tinkoff.github.io/investAPI/faq_marketdata/)
.tinkoff.public.invest.api.contract.v1.Quotation price = 3; -
getQuantity
long getQuantity()Количество лотов.
int64 quantity = 4;- Returns:
- The quantity.
-
hasTime
boolean hasTime()Время сделки в часовом поясе UTC по времени биржи.
.google.protobuf.Timestamp time = 5;- Returns:
- Whether the time field is set.
-
getTime
com.google.protobuf.Timestamp getTime()Время сделки в часовом поясе UTC по времени биржи.
.google.protobuf.Timestamp time = 5;- Returns:
- The time.
-
getTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getTimeOrBuilder()Время сделки в часовом поясе UTC по времени биржи.
.google.protobuf.Timestamp time = 5; -
getInstrumentUid
String getInstrumentUid()Uid инструмента
string instrument_uid = 6;- Returns:
- The instrumentUid.
-
getInstrumentUidBytes
com.google.protobuf.ByteString getInstrumentUidBytes()Uid инструмента
string instrument_uid = 6;- Returns:
- The bytes for instrumentUid.
-