mirror of
https://git.hmsn.ink/coin/bot.git
synced 2026-03-20 00:02:16 +09:00
first
This commit is contained in:
14
strategy.js
14
strategy.js
@@ -102,9 +102,13 @@ export async function aiSignal(bars) {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
console.log(Date.now())
|
try {
|
||||||
const msg = completion.choices[0].message.content
|
console.log(Date.now())
|
||||||
logger.debug(msg);
|
const msg = completion.choices[0].message.content
|
||||||
const sig = JSON.parse(msg)
|
logger.debug(msg);
|
||||||
return sig;
|
const sig = JSON.parse(msg)
|
||||||
|
return sig;
|
||||||
|
} catch(e) {
|
||||||
|
return {side : 'HOLD'}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user