mirror of
https://github.com/evraz-hack/frontend.git
synced 2025-10-29 22:07:25 +03:00
11 lines
399 B
TypeScript
11 lines
399 B
TypeScript
import axios from 'axios'
|
|
import { origin } from '../config'
|
|
|
|
export const getChartData = async (fromDate: Date, toDate: Date, interval: number, signals: string[]) => {
|
|
return await axios.post(origin + 'exgausters/approximation', {
|
|
"approximation": 10,
|
|
"time_from": "2023-01-19T00:00:42.444Z",
|
|
"time_until": "2023-02-19T00:00:42.444Z",
|
|
"signals": signals
|
|
})
|
|
} |