orderbuild fixes; tranche table work; ordershapes still broken

This commit is contained in:
tim
2024-09-20 04:12:23 -04:00
parent ce54b943ea
commit e5d5c9c0d8
10 changed files with 111 additions and 48 deletions

View File

@@ -70,7 +70,7 @@ class TrancheShapes {
// console.log('price', price)
const channel = buy?'low':'high';
const text = (buy ? 'Buy ' : 'Sell ') + allocationText(null, f.filled, '')
const s = createShape(buy?'arrow_up':'arrow_down', {time, price}, {channel,text})
const s = createShape(buy?'arrow_up':'arrow_down', {time, price}, {channel,text,lock:true})
console.log('created fill shape at', time, price)
this.fills.push(s)
}
@@ -90,7 +90,7 @@ class TrancheShapes {
price: intercept * scale,
color,
// todo allocation maxAllocation amount amountSymbol
})
}, null, null, null, true)
this.shapes.push(s)
} else {
// diagonal line
@@ -103,7 +103,7 @@ class TrancheShapes {
extendRight: t.endTime === DISTANT_FUTURE,
color,
// todo allocation maxAllocation amount amountSymbol
})
}, null, null, null, true)
this.shapes.push(s)
}
}