Send freqAI model as part of request

This commit is contained in:
Matthias 2023-05-02 20:03:46 +02:00
parent 8b92567319
commit 9d3f44946e
4 changed files with 6 additions and 0 deletions

View File

@ -111,6 +111,7 @@ const props = defineProps({
timerange: { required: false, default: '', type: String },
/** Only required if historicView is true */
strategy: { required: false, default: '', type: String },
freqaiModel: { required: false, default: undefined, type: String },
sliderPosition: {
required: false,
type: Object as () => ChartSliderPosition,
@ -176,6 +177,7 @@ const refresh = () => {
timeframe: props.timeframe,
timerange: props.timerange,
strategy: props.strategy,
freqaimodel: props.freqaiModel,
});
} else {
botStore.activeBot.getPairCandles({

View File

@ -37,6 +37,7 @@
showRightBar ? 'col-md-8' : 'col-md-10'
} candle-chart-container px-0 h-100 align-self-stretch`"
:slider-position="sliderPosition"
:freqai-model="freqaiModel"
>
</CandleChartContainer>
<TradeListNav
@ -65,6 +66,7 @@ import { ChartSliderPosition, Trade } from '@/types';
defineProps({
timeframe: { required: true, type: String },
strategy: { required: true, type: String },
freqaiModel: { required: false, default: undefined, type: String },
timerange: { required: true, type: String },
pairlist: { required: true, type: Array as () => string[] },
trades: { required: true, type: Array as () => Trade[] },

View File

@ -203,6 +203,7 @@ export interface PairHistoryPayload {
timeframe: string;
timerange: string;
strategy: string;
freqaimodel?: string;
}
export interface PairHistory {

View File

@ -316,6 +316,7 @@
:timerange="timerange"
:pairlist="botStore.activeBot.selectedBacktestResult.pairlist"
:trades="botStore.activeBot.selectedBacktestResult.trades"
:freqai-model="freqAI.enabled ? freqAI.model : undefined"
/>
</div>
</div>