Files
polymarket-reverse-arbitrag…/src/index.ts
T
2026-06-28 23:29:56 +08:00

19 lines
455 B
TypeScript

import { ReverseBot } from "./bot.js";
import { loadConfig, validateTradingConfig } from "./config.js";
import { logError } from "./logger.js";
import { Trader } from "./trader.js";
async function main(): Promise<void> {
const config = loadConfig();
validateTradingConfig(config);
const bot = new ReverseBot(config, new Trader(config));
await bot.init();
await bot.run();
}
main().catch((error) => {
logError(error);
process.exit(1);
});