import {UserCryptoExecution} from "./UserCryptoExecution"; import {BaseMessage} from "../BaseMessage"; import {EnumValue} from "../../enums/EnumValue"; /** * Represents information of Crypto order. * @param {{model: Object, keys: Object, creationType: Number}} [args] */ export interface CryptoOrderStatusInfo extends UserCryptoExecution, BaseMessage { /** * Status of ordering. * @type {EnumValue} */ OrderStatus: EnumValue; /** * Order identifier for client. * @type {string} */ ClientOrderId: string; /** * Identifier that client set to order identifier for client. * @type {string} */ OriginalClientOrderId: string; /** * Match number of current canceled. * @type {number} */ MatchNo: number; /** * Unique number per one cancel message from canceling order to canceled order or canceling reject. * @type {number} */ CancelTicketNo: number; /** * TicketNo of correspond trade. * @type {number} */ ReferenceTicketNo: number; /** * Number of reject. * @type {number} */ RejectNo: number; /** * Name of correspond account. * @type {string} */ ReferenceAccountName: string; /** * Abbreviation for stock name. * @type {string} */ Symbol: string; /** * Market exchange. * @type {string} */ Exchange: string; /** * Count of shares that was entered by client. * @type {number} */ EntryShares: number; /** * Count of shares that was executed. * @type {number} */ ExecShares: number; /** * Count of shares that remain for execution. * @type {number} */ RemainShares: number; /** * Count of shares that were canceled. * @type {number} */ CanceledShares: number; /** * Count of rejected shares. * @type {number} */ RejectShares: number; /** * Price that was entered by client. * @type {number} */ Price: number; /** * Stop limit price. * @type {number} */ StopPrice: number; /** * Price which pending was executed on. * @type {number} */ ExecPrice: number; /** * Earnings for current trade. * @type {number} */ Pnl: number; /** * Reason of cancellation. * @type {string} */ CancelReason: string; /** * Reason of cancel order failed execution.. * @type {string} */ RejectReason: string; /** * Side of the order. * @type {EnumValue} */ Side: EnumValue; /** * Type of the order. * @type {EnumValue} */ OrderType: EnumValue; /** * Period of time of order topicality before execution or canceling. * @type {EnumValue} */ TimeInForce: EnumValue; /** * Message which indicating that order was received with some invalid parameter. * @type {string} */ ErrorMessage: string; }