fix: add required chain field (bsc) to backtest request

This commit is contained in:
shokollm
2026-04-10 10:28:16 +00:00
parent 3a7d3a3732
commit bb40193fc3
2 changed files with 2 additions and 1 deletions

View File

@@ -140,7 +140,7 @@ export const api = {
const response = await fetch(`${API_URL}/bots/${botId}/backtest`, {
method: 'POST',
headers: getAuthHeaders(),
body: JSON.stringify(config)
body: JSON.stringify({ ...config, chain: 'bsc' })
});
return handleResponse<Backtest>(response);
},

View File

@@ -69,6 +69,7 @@ export interface Backtest {
export interface BacktestConfig {
token: string;
chain: string;
timeframe: string;
start_date: string;
end_date: string;