Gmx V2 Prices (#8)
* Update prices api * Update worker services in Program.cs
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user