UNPKG

crypto-janitor

Version:

The Crypto Janitor provides a simple interface for fetching and cleaning crypto account data.

29 lines (28 loc) 1.03 kB
import { CcxtConnection, Transaction } from "../target.types"; /** * A Kucoin Implementation of ccxtConnection */ export default class Kucoin extends CcxtConnection { /** * @description Create Kucoin instance * @param {any} creds - Kucoin API creds */ constructor(creds: any); /** * HELPER: Format transaction * * @override ccxtConnection._formatTransaction * @param {any} transaction - Unformatted cctx unified transaction * @param {string} forceType - Override tx type * @return {Transaction} Formatted transaction */ _formatTransaction(transaction: any, forceType?: string): Transaction; /** * @description Fetch kucoin account orders * @override ccxtConnection.getOrders * @param {string} symbol Currency symbol (will always be undefined) * @param {number} since (Optional) Timestamp to get transactions since * @return {Array<any>} Array of withdrawal objects */ getOrders(symbol?: string, since?: number): Promise<any>; }