kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
132 lines (131 loc) • 2.6 kB
TypeScript
import { Serializable } from '../../../internal/interfaces/serializable';
export declare class GetTradeHistoryItems implements Serializable {
/**
* ID of transaction detail
*/
id: number;
/**
* symbol
*/
symbol: string;
/**
* Trade ID, symbol latitude increment
*/
tradeId: number;
/**
* The unique order id generated by the trading system
*/
orderId: string;
/**
* Counterparty order ID
*/
counterOrderId: string;
/**
* Buy or sell
*/
side: GetTradeHistoryItems.SideEnum;
/**
* Liquidity type: taker or maker
*/
liquidity: GetTradeHistoryItems.LiquidityEnum;
/**
*
*/
forceTaker: boolean;
/**
* Order Price
*/
price: string;
/**
* Order Size
*/
size: string;
/**
* Order Funds
*/
funds: string;
/**
* [Handling fees](https://www.kucoin.com/docs-new/api-5327739)
*/
fee: string;
/**
* Fee rate
*/
feeRate: string;
/**
* Currency used to calculate trading fee
*/
feeCurrency: string;
/**
* Take Profit and Stop Loss type, currently HFT does not support the Take Profit and Stop Loss type, so it is empty
*/
stop: string;
/**
* Trade type, redundancy param
*/
tradeType: string;
/**
* Users in some regions have this field
*/
tax: string;
/**
* Tax Rate: Users in some regions must query this field
*/
taxRate: string;
/**
* Specify if the order is a \'limit\' order or \'market\' order.
*/
type: GetTradeHistoryItems.TypeEnum;
/**
*
*/
createdAt: number;
/**
* 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,
/**
*
*/
SELL
}
enum LiquidityEnum {
/**
*
*/
TAKER,
/**
*
*/
MAKER
}
enum TypeEnum {
/**
*
*/
LIMIT,
/**
*
*/
MARKET
}
}