This commit is contained in:
2025-08-31 06:33:26 +09:00
parent 04e4986374
commit 67328c9ec4

View File

@@ -102,9 +102,13 @@ export async function aiSignal(bars) {
},
],
});
try {
console.log(Date.now())
const msg = completion.choices[0].message.content
logger.debug(msg);
const sig = JSON.parse(msg)
return sig;
} catch(e) {
return {side : 'HOLD'}
}
}