fix: add required chain field (bsc) to backtest request
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
@@ -69,6 +69,7 @@ export interface Backtest {
|
||||
|
||||
export interface BacktestConfig {
|
||||
token: string;
|
||||
chain: string;
|
||||
timeframe: string;
|
||||
start_date: string;
|
||||
end_date: string;
|
||||
|
||||
Reference in New Issue
Block a user