kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
132 lines (131 loc) • 2.61 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;
/**
* Tax Rate, Users in some regions need query this field
*/
taxRate: string;
/**
* Users in some regions need query this field
*/
tax: string;
/**
* Specify if the order is an \'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
}
}