import * as _m0 from 'protobufjs/minimal'; import { PriceType, ResultSubscriptionStatus, Ping, Quotation, MoneyValue, ResponseMetadata, ErrorDetail } from './common'; export declare const protobufPackage = "tinkoff.public.invest.api.contract.v1"; export declare enum OrderDirection { ORDER_DIRECTION_UNSPECIFIED = 0, ORDER_DIRECTION_BUY = 1, ORDER_DIRECTION_SELL = 2, UNRECOGNIZED = -1 } export declare function orderDirectionFromJSON(object: any): OrderDirection; export declare function orderDirectionToJSON(object: OrderDirection): string; export declare enum OrderType { ORDER_TYPE_UNSPECIFIED = 0, ORDER_TYPE_LIMIT = 1, ORDER_TYPE_MARKET = 2, ORDER_TYPE_BESTPRICE = 3, UNRECOGNIZED = -1 } export declare function orderTypeFromJSON(object: any): OrderType; export declare function orderTypeToJSON(object: OrderType): string; export declare enum OrderExecutionReportStatus { EXECUTION_REPORT_STATUS_UNSPECIFIED = 0, EXECUTION_REPORT_STATUS_FILL = 1, EXECUTION_REPORT_STATUS_REJECTED = 2, EXECUTION_REPORT_STATUS_CANCELLED = 3, EXECUTION_REPORT_STATUS_NEW = 4, EXECUTION_REPORT_STATUS_PARTIALLYFILL = 5, UNRECOGNIZED = -1 } export declare function orderExecutionReportStatusFromJSON(object: any): OrderExecutionReportStatus; export declare function orderExecutionReportStatusToJSON(object: OrderExecutionReportStatus): string; export declare enum TimeInForceType { TIME_IN_FORCE_UNSPECIFIED = 0, TIME_IN_FORCE_DAY = 1, TIME_IN_FORCE_FILL_AND_KILL = 2, TIME_IN_FORCE_FILL_OR_KILL = 3, UNRECOGNIZED = -1 } export declare function timeInForceTypeFromJSON(object: any): TimeInForceType; export declare function timeInForceTypeToJSON(object: TimeInForceType): string; export declare enum OrderIdType { ORDER_ID_TYPE_UNSPECIFIED = 0, ORDER_ID_TYPE_EXCHANGE = 1, ORDER_ID_TYPE_REQUEST = 2, UNRECOGNIZED = -1 } export declare function orderIdTypeFromJSON(object: any): OrderIdType; export declare function orderIdTypeToJSON(object: OrderIdType): string; export interface TradesStreamRequest { accounts: string[]; pingDelayMs?: number | undefined; } export interface TradesStreamResponse { orderTrades: OrderTrades | undefined; ping: Ping | undefined; subscription: SubscriptionResponse | undefined; } export interface OrderTrades { orderId: string; createdAt: Date | undefined; direction: OrderDirection; figi: string; trades: OrderTrade[]; accountId: string; instrumentUid: string; } export interface OrderTrade { dateTime: Date | undefined; price: Quotation | undefined; quantity: number; tradeId: string; } export interface PostOrderRequest { figi?: string | undefined; quantity: number; price?: Quotation | undefined; direction: OrderDirection; accountId: string; orderType: OrderType; orderId: string; instrumentId: string; timeInForce: TimeInForceType; priceType: PriceType; confirmMarginTrade: boolean; } export interface PostOrderResponse { orderId: string; executionReportStatus: OrderExecutionReportStatus; lotsRequested: number; lotsExecuted: number; initialOrderPrice: MoneyValue | undefined; executedOrderPrice: MoneyValue | undefined; totalOrderAmount: MoneyValue | undefined; initialCommission: MoneyValue | undefined; executedCommission: MoneyValue | undefined; aciValue: MoneyValue | undefined; figi: string; direction: OrderDirection; initialSecurityPrice: MoneyValue | undefined; orderType: OrderType; message: string; initialOrderPricePt: Quotation | undefined; instrumentUid: string; ticker: string; classCode: string; orderRequestId: string; responseMetadata: ResponseMetadata | undefined; } export interface PostOrderAsyncRequest { instrumentId: string; quantity: number; price?: Quotation | undefined; direction: OrderDirection; accountId: string; orderType: OrderType; orderId: string; timeInForce?: TimeInForceType | undefined; priceType?: PriceType | undefined; confirmMarginTrade: boolean; } export interface PostOrderAsyncResponse { orderRequestId: string; executionReportStatus: OrderExecutionReportStatus; tradeIntentId?: string | undefined; } export interface CancelOrderRequest { accountId: string; orderId: string; orderIdType?: OrderIdType | undefined; } export interface CancelOrderResponse { time: Date | undefined; responseMetadata: ResponseMetadata | undefined; } export interface GetOrderStateRequest { accountId: string; orderId: string; priceType: PriceType; orderIdType?: OrderIdType | undefined; } export interface GetOrdersRequest { accountId: string; advancedFilters?: GetOrdersRequest_GetOrdersRequestFilters | undefined; } export interface GetOrdersRequest_GetOrdersRequestFilters { from?: Date | undefined; to?: Date | undefined; executionStatus: OrderExecutionReportStatus[]; } export interface GetOrdersResponse { orders: OrderState[]; } export interface OrderState { orderId: string; executionReportStatus: OrderExecutionReportStatus; lotsRequested: number; lotsExecuted: number; initialOrderPrice: MoneyValue | undefined; executedOrderPrice: MoneyValue | undefined; totalOrderAmount: MoneyValue | undefined; averagePositionPrice: MoneyValue | undefined; initialCommission: MoneyValue | undefined; executedCommission: MoneyValue | undefined; figi: string; direction: OrderDirection; initialSecurityPrice: MoneyValue | undefined; stages: OrderStage[]; serviceCommission: MoneyValue | undefined; currency: string; orderType: OrderType; orderDate: Date | undefined; instrumentUid: string; orderRequestId: string; ticker: string; classCode: string; } export interface OrderStage { price: MoneyValue | undefined; quantity: number; tradeId: string; executionTime: Date | undefined; } export interface ReplaceOrderRequest { accountId: string; orderIdType?: OrderIdType | undefined; orderId: string; idempotencyKey: string; quantity: number; price?: Quotation | undefined; priceType?: PriceType | undefined; confirmMarginTrade: boolean; } export interface GetMaxLotsRequest { accountId: string; instrumentId: string; price?: Quotation | undefined; } export interface GetMaxLotsResponse { currency: string; buyLimits: GetMaxLotsResponse_BuyLimitsView | undefined; buyMarginLimits: GetMaxLotsResponse_BuyLimitsView | undefined; sellLimits: GetMaxLotsResponse_SellLimitsView | undefined; sellMarginLimits: GetMaxLotsResponse_SellLimitsView | undefined; } export interface GetMaxLotsResponse_BuyLimitsView { buyMoneyAmount: Quotation | undefined; buyMaxLots: number; buyMaxMarketLots: number; } export interface GetMaxLotsResponse_SellLimitsView { sellMaxLots: number; } export interface GetOrderPriceRequest { accountId: string; instrumentId: string; price: Quotation | undefined; direction: OrderDirection; quantity: number; } export interface GetOrderPriceResponse { totalOrderAmount: MoneyValue | undefined; initialOrderAmount: MoneyValue | undefined; lotsRequested: number; executedCommission: MoneyValue | undefined; executedCommissionRub: MoneyValue | undefined; serviceCommission: MoneyValue | undefined; dealCommission: MoneyValue | undefined; extraBond: GetOrderPriceResponse_ExtraBond | undefined; extraFuture: GetOrderPriceResponse_ExtraFuture | undefined; } export interface GetOrderPriceResponse_ExtraBond { aciValue: MoneyValue | undefined; nominalConversionRate: Quotation | undefined; } export interface GetOrderPriceResponse_ExtraFuture { initialMargin: MoneyValue | undefined; } export interface OrderStateStreamRequest { accounts: string[]; pingDelayMillis?: number | undefined; } export interface SubscriptionResponse { trackingId: string; status: ResultSubscriptionStatus; streamId: string; accounts: string[]; error?: ErrorDetail | undefined; } export interface OrderStateStreamResponse { orderState: OrderStateStreamResponse_OrderState | undefined; ping: Ping | undefined; subscription: SubscriptionResponse | undefined; } export declare enum OrderStateStreamResponse_MarkerType { MARKER_UNKNOWN = 0, MARKER_BROKER = 1, MARKER_CHAT = 2, MARKER_PAPER = 3, MARKER_MARGIN = 4, MARKER_TKBNM = 5, MARKER_SHORT = 6, MARKER_SPECMM = 7, MARKER_PO = 8, UNRECOGNIZED = -1 } export declare function orderStateStreamResponse_MarkerTypeFromJSON(object: any): OrderStateStreamResponse_MarkerType; export declare function orderStateStreamResponse_MarkerTypeToJSON(object: OrderStateStreamResponse_MarkerType): string; export declare enum OrderStateStreamResponse_StatusCauseInfo { CAUSE_UNSPECIFIED = 0, CAUSE_CANCELLED_BY_CLIENT = 15, CAUSE_CANCELLED_BY_EXCHANGE = 1, CAUSE_CANCELLED_NOT_ENOUGH_POSITION = 2, CAUSE_CANCELLED_BY_CLIENT_BLOCK = 3, CAUSE_REJECTED_BY_BROKER = 4, CAUSE_REJECTED_BY_EXCHANGE = 5, CAUSE_CANCELLED_BY_BROKER = 6, UNRECOGNIZED = -1 } export declare function orderStateStreamResponse_StatusCauseInfoFromJSON(object: any): OrderStateStreamResponse_StatusCauseInfo; export declare function orderStateStreamResponse_StatusCauseInfoToJSON(object: OrderStateStreamResponse_StatusCauseInfo): string; export interface OrderStateStreamResponse_OrderState { orderId: string; orderRequestId?: string | undefined; clientCode: string; createdAt: Date | undefined; executionReportStatus: OrderExecutionReportStatus; statusInfo?: OrderStateStreamResponse_StatusCauseInfo | undefined; ticker: string; classCode: string; lotSize: number; direction: OrderDirection; timeInForce: TimeInForceType; orderType: OrderType; accountId: string; tradeOrderId: string; initialOrderPrice: MoneyValue | undefined; orderPrice: MoneyValue | undefined; amount?: MoneyValue | undefined; executedOrderPrice: MoneyValue | undefined; currency: string; lotsRequested: number; lotsExecuted: number; lotsLeft: number; lotsCancelled: number; marker?: OrderStateStreamResponse_MarkerType | undefined; trades: OrderTrade[]; completionTime: Date | undefined; exchange: string; instrumentUid: string; } export declare const TradesStreamRequest: { encode(message: TradesStreamRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TradesStreamRequest; fromJSON(object: any): TradesStreamRequest; toJSON(message: TradesStreamRequest): unknown; fromPartial(object: DeepPartial): TradesStreamRequest; }; export declare const TradesStreamResponse: { encode(message: TradesStreamResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TradesStreamResponse; fromJSON(object: any): TradesStreamResponse; toJSON(message: TradesStreamResponse): unknown; fromPartial(object: DeepPartial): TradesStreamResponse; }; export declare const OrderTrades: { encode(message: OrderTrades, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OrderTrades; fromJSON(object: any): OrderTrades; toJSON(message: OrderTrades): unknown; fromPartial(object: DeepPartial): OrderTrades; }; export declare const OrderTrade: { encode(message: OrderTrade, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OrderTrade; fromJSON(object: any): OrderTrade; toJSON(message: OrderTrade): unknown; fromPartial(object: DeepPartial): OrderTrade; }; export declare const PostOrderRequest: { encode(message: PostOrderRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PostOrderRequest; fromJSON(object: any): PostOrderRequest; toJSON(message: PostOrderRequest): unknown; fromPartial(object: DeepPartial): PostOrderRequest; }; export declare const PostOrderResponse: { encode(message: PostOrderResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PostOrderResponse; fromJSON(object: any): PostOrderResponse; toJSON(message: PostOrderResponse): unknown; fromPartial(object: DeepPartial): PostOrderResponse; }; export declare const PostOrderAsyncRequest: { encode(message: PostOrderAsyncRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PostOrderAsyncRequest; fromJSON(object: any): PostOrderAsyncRequest; toJSON(message: PostOrderAsyncRequest): unknown; fromPartial(object: DeepPartial): PostOrderAsyncRequest; }; export declare const PostOrderAsyncResponse: { encode(message: PostOrderAsyncResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PostOrderAsyncResponse; fromJSON(object: any): PostOrderAsyncResponse; toJSON(message: PostOrderAsyncResponse): unknown; fromPartial(object: DeepPartial): PostOrderAsyncResponse; }; export declare const CancelOrderRequest: { encode(message: CancelOrderRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CancelOrderRequest; fromJSON(object: any): CancelOrderRequest; toJSON(message: CancelOrderRequest): unknown; fromPartial(object: DeepPartial): CancelOrderRequest; }; export declare const CancelOrderResponse: { encode(message: CancelOrderResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CancelOrderResponse; fromJSON(object: any): CancelOrderResponse; toJSON(message: CancelOrderResponse): unknown; fromPartial(object: DeepPartial): CancelOrderResponse; }; export declare const GetOrderStateRequest: { encode(message: GetOrderStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOrderStateRequest; fromJSON(object: any): GetOrderStateRequest; toJSON(message: GetOrderStateRequest): unknown; fromPartial(object: DeepPartial): GetOrderStateRequest; }; export declare const GetOrdersRequest: { encode(message: GetOrdersRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOrdersRequest; fromJSON(object: any): GetOrdersRequest; toJSON(message: GetOrdersRequest): unknown; fromPartial(object: DeepPartial): GetOrdersRequest; }; export declare const GetOrdersRequest_GetOrdersRequestFilters: { encode(message: GetOrdersRequest_GetOrdersRequestFilters, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOrdersRequest_GetOrdersRequestFilters; fromJSON(object: any): GetOrdersRequest_GetOrdersRequestFilters; toJSON(message: GetOrdersRequest_GetOrdersRequestFilters): unknown; fromPartial(object: DeepPartial): GetOrdersRequest_GetOrdersRequestFilters; }; export declare const GetOrdersResponse: { encode(message: GetOrdersResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOrdersResponse; fromJSON(object: any): GetOrdersResponse; toJSON(message: GetOrdersResponse): unknown; fromPartial(object: DeepPartial): GetOrdersResponse; }; export declare const OrderState: { encode(message: OrderState, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OrderState; fromJSON(object: any): OrderState; toJSON(message: OrderState): unknown; fromPartial(object: DeepPartial): OrderState; }; export declare const OrderStage: { encode(message: OrderStage, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OrderStage; fromJSON(object: any): OrderStage; toJSON(message: OrderStage): unknown; fromPartial(object: DeepPartial): OrderStage; }; export declare const ReplaceOrderRequest: { encode(message: ReplaceOrderRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ReplaceOrderRequest; fromJSON(object: any): ReplaceOrderRequest; toJSON(message: ReplaceOrderRequest): unknown; fromPartial(object: DeepPartial): ReplaceOrderRequest; }; export declare const GetMaxLotsRequest: { encode(message: GetMaxLotsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetMaxLotsRequest; fromJSON(object: any): GetMaxLotsRequest; toJSON(message: GetMaxLotsRequest): unknown; fromPartial(object: DeepPartial): GetMaxLotsRequest; }; export declare const GetMaxLotsResponse: { encode(message: GetMaxLotsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetMaxLotsResponse; fromJSON(object: any): GetMaxLotsResponse; toJSON(message: GetMaxLotsResponse): unknown; fromPartial(object: DeepPartial): GetMaxLotsResponse; }; export declare const GetMaxLotsResponse_BuyLimitsView: { encode(message: GetMaxLotsResponse_BuyLimitsView, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetMaxLotsResponse_BuyLimitsView; fromJSON(object: any): GetMaxLotsResponse_BuyLimitsView; toJSON(message: GetMaxLotsResponse_BuyLimitsView): unknown; fromPartial(object: DeepPartial): GetMaxLotsResponse_BuyLimitsView; }; export declare const GetMaxLotsResponse_SellLimitsView: { encode(message: GetMaxLotsResponse_SellLimitsView, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetMaxLotsResponse_SellLimitsView; fromJSON(object: any): GetMaxLotsResponse_SellLimitsView; toJSON(message: GetMaxLotsResponse_SellLimitsView): unknown; fromPartial(object: DeepPartial): GetMaxLotsResponse_SellLimitsView; }; export declare const GetOrderPriceRequest: { encode(message: GetOrderPriceRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOrderPriceRequest; fromJSON(object: any): GetOrderPriceRequest; toJSON(message: GetOrderPriceRequest): unknown; fromPartial(object: DeepPartial): GetOrderPriceRequest; }; export declare const GetOrderPriceResponse: { encode(message: GetOrderPriceResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOrderPriceResponse; fromJSON(object: any): GetOrderPriceResponse; toJSON(message: GetOrderPriceResponse): unknown; fromPartial(object: DeepPartial): GetOrderPriceResponse; }; export declare const GetOrderPriceResponse_ExtraBond: { encode(message: GetOrderPriceResponse_ExtraBond, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOrderPriceResponse_ExtraBond; fromJSON(object: any): GetOrderPriceResponse_ExtraBond; toJSON(message: GetOrderPriceResponse_ExtraBond): unknown; fromPartial(object: DeepPartial): GetOrderPriceResponse_ExtraBond; }; export declare const GetOrderPriceResponse_ExtraFuture: { encode(message: GetOrderPriceResponse_ExtraFuture, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOrderPriceResponse_ExtraFuture; fromJSON(object: any): GetOrderPriceResponse_ExtraFuture; toJSON(message: GetOrderPriceResponse_ExtraFuture): unknown; fromPartial(object: DeepPartial): GetOrderPriceResponse_ExtraFuture; }; export declare const OrderStateStreamRequest: { encode(message: OrderStateStreamRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OrderStateStreamRequest; fromJSON(object: any): OrderStateStreamRequest; toJSON(message: OrderStateStreamRequest): unknown; fromPartial(object: DeepPartial): OrderStateStreamRequest; }; export declare const SubscriptionResponse: { encode(message: SubscriptionResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SubscriptionResponse; fromJSON(object: any): SubscriptionResponse; toJSON(message: SubscriptionResponse): unknown; fromPartial(object: DeepPartial): SubscriptionResponse; }; export declare const OrderStateStreamResponse: { encode(message: OrderStateStreamResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OrderStateStreamResponse; fromJSON(object: any): OrderStateStreamResponse; toJSON(message: OrderStateStreamResponse): unknown; fromPartial(object: DeepPartial): OrderStateStreamResponse; }; export declare const OrderStateStreamResponse_OrderState: { encode(message: OrderStateStreamResponse_OrderState, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OrderStateStreamResponse_OrderState; fromJSON(object: any): OrderStateStreamResponse_OrderState; toJSON(message: OrderStateStreamResponse_OrderState): unknown; fromPartial(object: DeepPartial): OrderStateStreamResponse_OrderState; }; export type OrdersStreamServiceDefinition = typeof OrdersStreamServiceDefinition; export declare const OrdersStreamServiceDefinition: { readonly name: "OrdersStreamService"; readonly fullName: "tinkoff.public.invest.api.contract.v1.OrdersStreamService"; readonly methods: { readonly tradesStream: { readonly name: "TradesStream"; readonly requestType: { encode(message: TradesStreamRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TradesStreamRequest; fromJSON(object: any): TradesStreamRequest; toJSON(message: TradesStreamRequest): unknown; fromPartial(object: DeepPartial): TradesStreamRequest; }; readonly requestStream: false; readonly responseType: { encode(message: TradesStreamResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TradesStreamResponse; fromJSON(object: any): TradesStreamResponse; toJSON(message: TradesStreamResponse): unknown; fromPartial(object: DeepPartial): TradesStreamResponse; }; readonly responseStream: true; readonly options: {}; }; readonly orderStateStream: { readonly name: "OrderStateStream"; readonly requestType: { encode(message: OrderStateStreamRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OrderStateStreamRequest; fromJSON(object: any): OrderStateStreamRequest; toJSON(message: OrderStateStreamRequest): unknown; fromPartial(object: DeepPartial): OrderStateStreamRequest; }; readonly requestStream: false; readonly responseType: { encode(message: OrderStateStreamResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OrderStateStreamResponse; fromJSON(object: any): OrderStateStreamResponse; toJSON(message: OrderStateStreamResponse): unknown; fromPartial(object: DeepPartial): OrderStateStreamResponse; }; readonly responseStream: true; readonly options: {}; }; }; }; export type OrdersServiceDefinition = typeof OrdersServiceDefinition; export declare const OrdersServiceDefinition: { readonly name: "OrdersService"; readonly fullName: "tinkoff.public.invest.api.contract.v1.OrdersService"; readonly methods: { readonly postOrder: { readonly name: "PostOrder"; readonly requestType: { encode(message: PostOrderRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PostOrderRequest; fromJSON(object: any): PostOrderRequest; toJSON(message: PostOrderRequest): unknown; fromPartial(object: DeepPartial): PostOrderRequest; }; readonly requestStream: false; readonly responseType: { encode(message: PostOrderResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PostOrderResponse; fromJSON(object: any): PostOrderResponse; toJSON(message: PostOrderResponse): unknown; fromPartial(object: DeepPartial): PostOrderResponse; }; readonly responseStream: false; readonly options: {}; }; readonly postOrderAsync: { readonly name: "PostOrderAsync"; readonly requestType: { encode(message: PostOrderAsyncRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PostOrderAsyncRequest; fromJSON(object: any): PostOrderAsyncRequest; toJSON(message: PostOrderAsyncRequest): unknown; fromPartial(object: DeepPartial): PostOrderAsyncRequest; }; readonly requestStream: false; readonly responseType: { encode(message: PostOrderAsyncResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PostOrderAsyncResponse; fromJSON(object: any): PostOrderAsyncResponse; toJSON(message: PostOrderAsyncResponse): unknown; fromPartial(object: DeepPartial): PostOrderAsyncResponse; }; readonly responseStream: false; readonly options: {}; }; readonly cancelOrder: { readonly name: "CancelOrder"; readonly requestType: { encode(message: CancelOrderRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CancelOrderRequest; fromJSON(object: any): CancelOrderRequest; toJSON(message: CancelOrderRequest): unknown; fromPartial(object: DeepPartial): CancelOrderRequest; }; readonly requestStream: false; readonly responseType: { encode(message: CancelOrderResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CancelOrderResponse; fromJSON(object: any): CancelOrderResponse; toJSON(message: CancelOrderResponse): unknown; fromPartial(object: DeepPartial): CancelOrderResponse; }; readonly responseStream: false; readonly options: {}; }; readonly getOrderState: { readonly name: "GetOrderState"; readonly requestType: { encode(message: GetOrderStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOrderStateRequest; fromJSON(object: any): GetOrderStateRequest; toJSON(message: GetOrderStateRequest): unknown; fromPartial(object: DeepPartial): GetOrderStateRequest; }; readonly requestStream: false; readonly responseType: { encode(message: OrderState, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OrderState; fromJSON(object: any): OrderState; toJSON(message: OrderState): unknown; fromPartial(object: DeepPartial): OrderState; }; readonly responseStream: false; readonly options: {}; }; readonly getOrders: { readonly name: "GetOrders"; readonly requestType: { encode(message: GetOrdersRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOrdersRequest; fromJSON(object: any): GetOrdersRequest; toJSON(message: GetOrdersRequest): unknown; fromPartial(object: DeepPartial): GetOrdersRequest; }; readonly requestStream: false; readonly responseType: { encode(message: GetOrdersResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOrdersResponse; fromJSON(object: any): GetOrdersResponse; toJSON(message: GetOrdersResponse): unknown; fromPartial(object: DeepPartial): GetOrdersResponse; }; readonly responseStream: false; readonly options: {}; }; readonly replaceOrder: { readonly name: "ReplaceOrder"; readonly requestType: { encode(message: ReplaceOrderRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ReplaceOrderRequest; fromJSON(object: any): ReplaceOrderRequest; toJSON(message: ReplaceOrderRequest): unknown; fromPartial(object: DeepPartial): ReplaceOrderRequest; }; readonly requestStream: false; readonly responseType: { encode(message: PostOrderResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PostOrderResponse; fromJSON(object: any): PostOrderResponse; toJSON(message: PostOrderResponse): unknown; fromPartial(object: DeepPartial): PostOrderResponse; }; readonly responseStream: false; readonly options: {}; }; readonly getMaxLots: { readonly name: "GetMaxLots"; readonly requestType: { encode(message: GetMaxLotsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetMaxLotsRequest; fromJSON(object: any): GetMaxLotsRequest; toJSON(message: GetMaxLotsRequest): unknown; fromPartial(object: DeepPartial): GetMaxLotsRequest; }; readonly requestStream: false; readonly responseType: { encode(message: GetMaxLotsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetMaxLotsResponse; fromJSON(object: any): GetMaxLotsResponse; toJSON(message: GetMaxLotsResponse): unknown; fromPartial(object: DeepPartial): GetMaxLotsResponse; }; readonly responseStream: false; readonly options: {}; }; readonly getOrderPrice: { readonly name: "GetOrderPrice"; readonly requestType: { encode(message: GetOrderPriceRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOrderPriceRequest; fromJSON(object: any): GetOrderPriceRequest; toJSON(message: GetOrderPriceRequest): unknown; fromPartial(object: DeepPartial): GetOrderPriceRequest; }; readonly requestStream: false; readonly responseType: { encode(message: GetOrderPriceResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOrderPriceResponse; fromJSON(object: any): GetOrderPriceResponse; toJSON(message: GetOrderPriceResponse): unknown; fromPartial(object: DeepPartial): GetOrderPriceResponse; }; readonly responseStream: false; readonly options: {}; }; }; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};