kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
120 lines (119 loc) • 2.5 kB
TypeScript
import { Serializable } from '../../../internal/interfaces/serializable';
export declare class GetPositionsHistoryItems implements Serializable {
/**
* Close ID
*/
closeId: string;
/**
* User ID
*/
userId: string;
/**
* Symbol of the contract, Please refer to [Get Symbol endpoint: symbol](https://www.kucoin.com/docs-new/api-3470220)
*/
symbol: string;
/**
* Currency used to settle trades
*/
settleCurrency: string;
/**
* Leverage applied to the order
*/
leverage: string;
/**
* Type of closure
*/
type: string;
/**
* Net profit and loss (after deducting fees and funding costs)
*/
pnl: string;
/**
* Accumulated realised gross profit value
*/
realisedGrossCost: string;
/**
* Accumulated realised profit withdrawn from the position
*/
withdrawPnl: string;
/**
* Accumulated trading fees
*/
tradeFee: string;
/**
* Accumulated funding fees
*/
fundingFee: string;
/**
* Time when the position was opened
*/
openTime: number;
/**
* Time when the position was closed (default sorted in descending order)
*/
closeTime: number;
/**
* Opening price of the position
*/
openPrice: string;
/**
* Closing price of the position
*/
closePrice: string;
/**
* Margin Mode: CROSS,ISOLATED
*/
marginMode: GetPositionsHistoryItems.MarginModeEnum;
/**
*
*/
realisedGrossCostNew: string;
/**
* Tax
*/
tax: string;
/**
*
*/
roe?: string;
/**
*
*/
liquidAmount: string;
/**
*
*/
liquidPrice: string;
/**
* Position side
*/
side: 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): GetPositionsHistoryItems;
/**
* Create an object from Js Object.
*/
static fromObject(jsonObject: Object): GetPositionsHistoryItems;
}
export declare namespace GetPositionsHistoryItems {
enum MarginModeEnum {
/**
* cross margin
*/
CROSS,
/**
* isolated margin
*/
ISOLATED
}
}