kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
212 lines (211 loc) • 4.21 kB
TypeScript
import { Serializable } from '../../../internal/interfaces/serializable';
export declare class GetRecentTradeHistoryData 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: GetRecentTradeHistoryData.SideEnum;
/**
* Liquidity-taker or -maker
*/
liquidity: GetRecentTradeHistoryData.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: GetRecentTradeHistoryData.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: GetRecentTradeHistoryData.MarginModeEnum;
/**
* Order Type
*/
displayType: GetRecentTradeHistoryData.DisplayTypeEnum;
/**
* Transaction fee
*/
fee: string;
/**
* Settle Currency
*/
settleCurrency: string;
/**
* Order type
*/
orderType: GetRecentTradeHistoryData.OrderTypeEnum;
/**
* Trade type (trade, liquid, cancel, adl or settlement)
*/
tradeType: GetRecentTradeHistoryData.TradeTypeEnum;
/**
* Order creation time
*/
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): GetRecentTradeHistoryData;
/**
* Create an object from Js Object.
*/
static fromObject(jsonObject: Object): GetRecentTradeHistoryData;
}
export declare namespace GetRecentTradeHistoryData {
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,
/**
* Partially filled and canceled orders
*/
CANCEL,
/**
* liquid
*/
LIQUID,
/**
* adl
*/
ADL,
/**
* settlement
*/
SETTLEMENT
}
}