UNPKG

kucoin-universal-sdk

Version:
214 lines (213 loc) 4.05 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class GetOpenOrdersData implements Serializable { /** * The unique order id generated by the trading system */ id: string; /** * symbol */ symbol: string; /** * */ opType: string; /** * Specify if the order is an \'limit\' order or \'market\' order. */ type: GetOpenOrdersData.TypeEnum; /** * Buy or sell */ side: GetOpenOrdersData.SideEnum; /** * Order price */ price: string; /** * Order size */ size: string; /** * Order Funds */ funds: string; /** * Number of filled transactions */ dealSize: string; /** * Funds of filled transactions */ dealFunds: string; /** * [Handling fees](https://www.kucoin.com/docs-new/api-5327739) */ fee: string; /** * currency used to calculate trading fee */ feeCurrency: string; /** * [Self Trade Prevention](https://www.kucoin.com/docs-new/api-5176570) */ stp?: GetOpenOrdersData.StpEnum; /** * Time in force */ timeInForce: GetOpenOrdersData.TimeInForceEnum; /** * Whether its a postOnly order. */ postOnly: boolean; /** * Whether its a hidden order. */ hidden: boolean; /** * Whether its a iceberg order. */ iceberg: boolean; /** * Visible size of iceberg order in order book. */ visibleSize: string; /** * A GTT timeInForce that expires in n seconds */ cancelAfter: number; /** * */ channel: string; /** * Client Order Id,unique identifier created by the user */ clientOid: string; /** * Order placement remarks */ remark?: string; /** * Order tag */ tags?: string; /** * Whether there is a cancellation record for the order. */ cancelExist: boolean; /** * */ createdAt: number; /** * */ lastUpdatedAt: number; /** * Trade type, redundancy param */ tradeType: string; /** * Whether to enter the orderbook: true: enter the orderbook; false: not enter the orderbook */ inOrderBook: boolean; /** * Number of canceled transactions */ cancelledSize: string; /** * Funds of canceled transactions */ cancelledFunds: string; /** * Number of remain transactions */ remainSize: string; /** * Funds of remain transactions */ remainFunds: string; /** * Users in some regions need query this field */ tax: string; /** * Order status: true-The status of the order isactive; false-The status of the order is done */ active: boolean; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): GetOpenOrdersData; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): GetOpenOrdersData; } export declare namespace GetOpenOrdersData { enum TypeEnum { /** * */ LIMIT, /** * */ MARKET } enum SideEnum { /** * */ BUY, /** * */ SELL } enum StpEnum { /** * */ DC, /** * */ CO, /** * */ CN, /** * */ CB } enum TimeInForceEnum { /** * */ GTC, /** * */ GTT, /** * */ IOC, /** * */ FOK } }