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:
co-authored by
Claude Opus 4.6
parent
23bb74127c
commit
9a89efb071
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user