UNPKG

kucoin-api

Version:

Complete & robust Node.js SDK for Kucoin's REST APIs and WebSockets, with TypeScript & strong end to end tests.

52 lines (51 loc) 1.19 kB
/** * * EARN * */ export interface SubscribeEarnFixedIncomeRequest { productId: string; amount: string; accountType: 'MAIN' | 'TRADE'; } export interface InitiateRedemptionRequest { orderId: string; amount: string; fromAccountType?: 'MAIN' | 'TRADE'; confirmPunishRedeem?: '1'; } export interface GetEarnRedeemPreviewRequest { orderId: string; fromAccountType?: 'MAIN' | 'TRADE'; } export interface GetEarnFixedIncomeHoldAssetsRequest { currentPage?: number; pageSize?: number; productId?: string; productCategory?: string; currency?: string; } /** * * STRUCTURED EARN - DUAL * */ export interface StructuredProductPurchaseRequest { productId: string; investCurrency: string; investAmount: string; accountType: 'MAIN' | 'TRADE'; } export interface GetDualInvestmentProductsRequest { category: 'DUAL_CLASSIC' | 'DUAL_BOOSTER' | 'DUAL_EXTRA'; strikeCurrency?: string; investCurrency?: string; side?: 'CALL' | 'PUT'; } export interface GetStructuredProductOrdersRequest { categories: string; orderId?: string; investCurrency?: string; currentPage?: number; pageSize?: number; }