Gmx V2 Prices (#8)

* Update prices api

* Update worker services in Program.cs
This commit is contained in:
Oda
2025-02-03 16:33:41 +07:00
committed by GitHub
parent 17114ac787
commit ff0433c349
9 changed files with 126 additions and 36 deletions

View File

@@ -157,8 +157,7 @@ const BacktestModal: React.FC<BacktestModalProps> = ({
enabled: !!selectedAccount && !!selectedTimeframe,
queryFn: () => {
if (selectedAccount && selectedTimeframe) {
// return dataClient.data_GetTickers(selectedAccount, selectedTimeframe)
return [Ticker.BTC]
return dataClient.data_GetTickers(selectedAccount, selectedTimeframe)
}
},
queryKey: ['tickers', selectedAccount, selectedTimeframe],
@@ -262,25 +261,27 @@ const BacktestModal: React.FC<BacktestModalProps> = ({
</FormInput>
<FormInput label="Days" htmlFor="days">
<Slider
<input
id="days"
type="number"
value={days}
onChange={(e: any) => setDays(e.target.value)}
step="1"
min="-360"
max="-1"
></Slider>
></input>
</FormInput>
<FormInput label="Balance" htmlFor="balance">
<Slider
<input
id="balance"
type='number'
value={balance}
onChange={(e: any) => setBalance(e.target.value)}
step="1000"
min="1000"
max="100000"
></Slider>
></input>
</FormInput>
<FormInput label="Scenario" htmlFor="scenarioName">