Add GTL price-traffic chart diagnostic
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
import apiClient from './client';
|
||||
import type { SRLevelResponse } from '../lib/types';
|
||||
import type { GateTargetLadderResponse, SRLevelResponse } from '../lib/types';
|
||||
|
||||
export function getLevels(symbol: string) {
|
||||
return apiClient
|
||||
.get<SRLevelResponse>(`sr-levels/${symbol}`)
|
||||
.then((r) => r.data);
|
||||
}
|
||||
|
||||
export function getGateTargetLadder(symbol: string) {
|
||||
return apiClient
|
||||
.get<GateTargetLadderResponse>(`gate-target-ladder/${symbol}`)
|
||||
.then((r) => r.data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user