rate limit DCA
This commit is contained in:
@@ -40,7 +40,7 @@ export const ShapeType = {
|
||||
}
|
||||
|
||||
|
||||
export function allocationText(buy, weight, amount, baseSymbol, amountSymbol = null, separator = ' ') {
|
||||
export function allocationText(buy, weight, amount, baseSymbol, amountSymbol = null, parts = 1, separator = ' ') {
|
||||
const hasAmount = amount !== null && amount !== undefined && amount > 0
|
||||
if (hasAmount)
|
||||
amount = Number(amount)
|
||||
@@ -59,9 +59,12 @@ export function allocationText(buy, weight, amount, baseSymbol, amountSymbol = n
|
||||
else
|
||||
text += `${toPrecision(amount,3)} ${baseSymbol}`
|
||||
}
|
||||
if (parts > 1)
|
||||
text += separator + `in ${Math.round(parts)} parts`
|
||||
return text
|
||||
}
|
||||
|
||||
|
||||
export class Shape {
|
||||
|
||||
constructor(type, onModel=null, onDelete=null, props=null, readonly=false, overrides={}) {
|
||||
|
||||
Reference in New Issue
Block a user