Stake_amount should be a string

This commit is contained in:
Matthias 2022-02-16 07:06:00 +01:00
parent dcee28e01c
commit 04b3cd3397
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ export interface BacktestPayload {
timeframe_detail?: string;
max_open_trades?: number;
// TODO: Should be number or unlimited
stake_amount?: number | string;
stake_amount?: string;
dry_run_wallet?: number;
enable_protections?: boolean;
}

View File

@ -429,7 +429,7 @@ export default class Backtesting extends Vue {
const stakeAmount = Number(this.stakeAmount);
if (stakeAmount) {
// eslint-disable-next-line @typescript-eslint/camelcase
btPayload.stake_amount = stakeAmount;
btPayload.stake_amount = stakeAmount.toString();
}
}