frontend/src/client/chart/post.ts
2023-02-19 10:01:08 +03:00

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
})
}