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`, {
|
const response = await fetch(`${API_URL}/bots/${botId}/backtest`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: getAuthHeaders(),
|
headers: getAuthHeaders(),
|
||||||
body: JSON.stringify(config)
|
body: JSON.stringify({ ...config, chain: 'bsc' })
|
||||||
});
|
});
|
||||||
return handleResponse<Backtest>(response);
|
return handleResponse<Backtest>(response);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ export interface Backtest {
|
|||||||
|
|
||||||
export interface BacktestConfig {
|
export interface BacktestConfig {
|
||||||
token: string;
|
token: string;
|
||||||
|
chain: string;
|
||||||
timeframe: string;
|
timeframe: string;
|
||||||
start_date: string;
|
start_date: string;
|
||||||
end_date: string;
|
end_date: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user