import { Balances, Market } from "ccxt"; import Bot from "../Bot"; export interface AlgorithmCommonParams { bot: Bot; markets: Market[]; balances: Balances; logWarnings: boolean; } export default class Algorithm { onRun: (params: any) => Promise = () => new Promise(() => false); run = async (params?: any): Promise => { return await this.onRun(params); } }