chart config tweak
This commit is contained in:
@@ -18,8 +18,9 @@ export class OrderShapes {
|
||||
this.status = orderStatus
|
||||
this.trancheShapes = []
|
||||
const maxAllocation = Math.max(...orderStatus.order.tranches.map((ts)=>ts.fraction)) / MAX_FRACTION
|
||||
for (let i = 0; i < orderStatus.trancheStatus.length; i++)
|
||||
this.trancheShapes.push(new TrancheShapes(this.symbol, this.status, i, maxAllocation));
|
||||
if (orderStatus.trancheStatus !== undefined)
|
||||
for (let i = 0; i < orderStatus.trancheStatus.length; i++)
|
||||
this.trancheShapes.push(new TrancheShapes(this.symbol, this.status, i, maxAllocation));
|
||||
}
|
||||
|
||||
show() {for (const t of this.trancheShapes) t.show();}
|
||||
|
||||
Reference in New Issue
Block a user