orderbuild fixes; tranche table work; ordershapes still broken
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user