UNPKG

kucoin-universal-sdk

Version:
226 lines (225 loc) 4.2 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 a \'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; /** * Trading fee */ fee: string; /** * Currency used to calculate trading fee */ feeCurrency: string; /** * [Self Trade Prevention](https://www.kucoin.com/docs-new/doc-338146) is divided into these strategies: CN, CO, CB , and DC */ stp?: GetOpenOrdersData.StpEnum; /** * */ stop?: string; /** * */ stopTriggered: boolean; /** * */ stopPrice: string; /** * Time in force */ timeInForce: GetOpenOrdersData.TimeInForceEnum; /** * Whether it’s a postOnly order. */ postOnly: boolean; /** * Whether it’s a hidden order. */ hidden: boolean; /** * Whether it’s 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: do 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 have this field */ tax: string; /** * Order status: true-The status of the order is active; 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 } }