UNPKG

kucoin-universal-sdk

Version:
134 lines (133 loc) 2.8 kB
import { RestResponse } from '../../../model/common'; import { Response } from '../../../internal/interfaces/serializable'; export declare class GetTransferHistoryResp implements Response<RestResponse> { /** * Transfer Order ID */ orderId: string; /** * Currency */ currency: string; /** * Transfer Amount */ amount: string; /** * UID of the user transferring out */ fromUid: number; /** * From Account Type: Account Type: MAIN, TRADE, CONTRACT, MARGIN, ISOLATED */ fromAccountType: GetTransferHistoryResp.FromAccountTypeEnum; /** * Trading pair (required if the account type is ISOLATED), e.g., BTC-USDT */ fromAccountTag: string; /** * UID of the user transferring in */ toUid: number; /** * Account Type: Account Type: MAIN, TRADE, CONTRACT, MARGIN, ISOLATED */ toAccountType: GetTransferHistoryResp.ToAccountTypeEnum; /** * To Trading pair (required if the account type is ISOLATED), e.g., BTC-USDT */ toAccountTag: string; /** * Status: PROCESSING (processing), SUCCESS (successful), FAILURE (failed) */ status: GetTransferHistoryResp.StatusEnum; /** * Failure Reason */ reason: string; /** * Creation Time (Unix timestamp in milliseconds) */ createdAt: number; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * common response */ commonResponse?: RestResponse; setCommonResponse(response: RestResponse): void; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): GetTransferHistoryResp; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): GetTransferHistoryResp; } export declare namespace GetTransferHistoryResp { enum FromAccountTypeEnum { /** * */ MAIN, /** * */ TRADE, /** * */ CONTRACT, /** * */ MARGIN, /** * */ ISOLATED } enum ToAccountTypeEnum { /** * */ MAIN, /** * */ TRADE, /** * */ CONTRACT, /** * */ MARGIN, /** * */ ISOLATED } enum StatusEnum { /** * */ PROCESSING, /** * */ SUCCESS, /** * */ FAILURE } }