Bot & Automation
Treding Forex Ai
/root/hermes-projects/Treding Forex Ai
dist/src/smoke.js
text
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const app_1 = require("./app");
async function main() {
const tradingService = (0, app_1.createTradingService)();
const result = await tradingService.createSignal({
chatId: 1,
userId: 1,
symbolCode: "XAUUSD",
mode: "intraday"
});
console.log(JSON.stringify({
symbol: result.signal.symbol.code,
action: result.signal.action,
confidence: result.signal.confidence,
orderPreview: Boolean(result.orderIntent),
riskNotes: result.riskNotes
}, null, 2));
}
main().catch((error) => {
const message = error instanceof Error ? error.message : "Unknown smoke error";
console.error(message);
process.exitCode = 1;
});