mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 04:55:15 +00:00
Stake_amount should be a string
This commit is contained in:
parent
dcee28e01c
commit
04b3cd3397
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user