# Trading System: stop()

Stops the trading system.

  • Interface
class MidaTradingSystem {
    stop (): Promise<void>;
}
  • Example
import { SuperTradingSystem } from "./SuperTradingSystem.js";

const system = new SuperTradingSystem({ tradingAccount: myAccount, });

await system.start();

// Stops the trading system after 10 minutes
setTimeout(async () => {
    await system.stop();
}, 60000 * 10);