UNPKG

kucoin-universal-sdk

Version:
216 lines (215 loc) 4.29 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class GetTradeHistoryItems implements Serializable { /** * Symbol of the contract. Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220) */ symbol: string; /** * Trade ID */ tradeId: string; /** * Order ID */ orderId: string; /** * Transaction side */ side: GetTradeHistoryItems.SideEnum; /** * Liquidity-taker or -maker */ liquidity: GetTradeHistoryItems.LiquidityEnum; /** * Whether to force processing as a taker */ forceTaker: boolean; /** * Filled price */ price: string; /** * Filled amount */ size: number; /** * Order value */ value: string; /** * Opening transaction fee */ openFeePay: string; /** * Closing transaction fee */ closeFeePay: string; /** * A mark to the stop order type */ stop: GetTradeHistoryItems.StopEnum; /** * Fee Rate */ feeRate: string; /** * Fixed fees (Deprecated field, no actual use of the value field) */ fixFee: string; /** * Charging currency */ feeCurrency: string; /** * Trade time in nanoseconds */ tradeTime: number; /** * Deprecated field, no actual use of the value field */ subTradeType: string; /** * Margin mode: ISOLATED (isolated), CROSS (cross margin). */ marginMode: GetTradeHistoryItems.MarginModeEnum; /** * Settle currency */ settleCurrency: string; /** * Order type */ displayType: GetTradeHistoryItems.DisplayTypeEnum; /** * Trading fee */ fee: string; /** * Order type */ orderType: GetTradeHistoryItems.OrderTypeEnum; /** * Trade type (trade, liquid, adl or settlement) */ tradeType: GetTradeHistoryItems.TradeTypeEnum; /** * Order creation time */ createdAt: number; /** * Opening tax fee (Only KYC users in some regions have this parameter) */ openFeeTaxPay: string; /** * Close tax fee (Only KYC users in some regions have this parameter) */ closeFeeTaxPay: string; /** * 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): GetTradeHistoryItems; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): GetTradeHistoryItems; } export declare namespace GetTradeHistoryItems { enum SideEnum { /** * buy */ BUY, /** * sell */ SELL } enum LiquidityEnum { /** * taker */ TAKER, /** * maker */ MAKER } enum StopEnum { /** * Triggers when the price reaches or goes below the stopPrice. */ DOWN, /** * Triggers when the price reaches or goes above the stopPrice. */ UP, /** * Not a stop order */ NONE } enum MarginModeEnum { /** * Isolated margin */ ISOLATED, /** * Cross margin */ CROSS } enum DisplayTypeEnum { /** * limit order */ LIMIT, /** * market order */ MARKET, /** * stop limit order */ LIMIT_STOP, /** * stop market order */ MARKET_STOP } enum OrderTypeEnum { /** * market */ MARKET, /** * limit */ LIMIT } enum TradeTypeEnum { /** * trade */ TRADE, /** * liquid */ LIQUID, /** * adl */ ADL, /** * settlement */ SETTLEMENT } }