UNPKG

kucoin-universal-sdk

Version:
216 lines (215 loc) 4.12 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class GetClosedOrdersItems 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: GetClosedOrdersItems.TypeEnum; /** * Buy or sell */ side: string; /** * 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/doc-338146) is divided into these strategies: CN, CO, CB , and DC */ stp?: GetClosedOrdersItems.StpEnum; /** * */ stop?: string; /** * */ stopTriggered: boolean; /** * */ stopPrice: string; /** * Time in force */ timeInForce: GetClosedOrdersItems.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): GetClosedOrdersItems; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): GetClosedOrdersItems; } export declare namespace GetClosedOrdersItems { enum TypeEnum { /** * */ LIMIT, /** * */ MARKET } enum StpEnum { /** * */ DC, /** * */ CO, /** * */ CN, /** * */ CB } enum TimeInForceEnum { /** * */ GTC, /** * */ GTT, /** * */ IOC, /** * */ FOK } }