| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import http from '@/services/http'
- import { RequestConfig } from '@/services/http/types'
- /**
- * 实时行情
- */
- export function quoteSubscribe(config: RequestConfig<Model.QuoteSubscribeReq> = {}) {
- return http.goRequest({
- method: 'post',
- url: '/Quote/QuoteSubscribe',
- data: config.data,
- })
- }
- /**
- * 查询行情历史数据
- */
- export function queryHistoryDatas(config: RequestConfig<Model.HistoryDatasReq> = {}) {
- return http.commonRequest<Model.HistoryDatasRsp[]>({
- url: '/Quote/QueryHistoryDatas',
- params: config.data,
- })
- }
- /**
- * 分时图数据查询
- */
- export function queryTSData(config: RequestConfig<Model.TSDataReq> = {}) {
- return http.commonRequest<Model.TSDataRsp>({
- url: '/Quote/QueryTSData',
- params: config.data,
- })
- }
- /**
- * 查询行情Tik数据
- */
- export function queryHistoryTikDatas(config: RequestConfig<Model.HistoryTikDatasReq> = {}) {
- return http.commonRequest<Model.HistoryTikDatasRsp[]>({
- url: '/Quote/QueryHistoryTikDatas',
- params: config.data,
- })
- }
|