fix: remove cut-loss from maker strategy — hold to resolution

No cut-loss needed: worst case is losing buy cost (2c/share) which
resolves on-chain. If on winning side, payout is $1/share.
Removed marketSell, cutLossSells, and makerCutLossTime config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
direkturcrypto
2026-03-06 16:59:58 +07:00
co-authored by Claude Opus 4.6
parent 23bb74127c
commit 9a89efb071
5 changed files with 32 additions and 93 deletions
+2 -2
View File
@@ -78,7 +78,7 @@ async function buildStatusContent() {
lines.push(` Size : ${config.makerTradeSize} shares/side`);
lines.push(` Cost/side: $${(config.makerTradeSize * config.makerBuyPrice).toFixed(2)}`);
lines.push(` Profit : $${((config.makerSellPrice - config.makerBuyPrice) * config.makerTradeSize).toFixed(2)}/cycle`);
lines.push(` Cut loss : ${config.makerCutLossTime}s before close`);
lines.push(` No CL : hold to resolution if sell unfilled`);
lines.push('');
// Active positions
@@ -204,7 +204,7 @@ async function runStrategy(market) {
const endMs = new Date(queued.endTime).getTime();
const secsLeft = Math.round((endMs - Date.now()) / 1000);
if (secsLeft > config.makerCutLossTime) {
if (secsLeft > 30) {
logger.success(`MAKER[${market.asset?.toUpperCase()}]: executing queued market (${secsLeft}s left)`);
runStrategy(queued);
} else {