추세검색 설정 수정

This commit is contained in:
Macbook
2026-05-27 02:10:00 +09:00
parent 2e08c6b16f
commit fc06a16184
27 changed files with 1262 additions and 147 deletions
+10
View File
@@ -1256,6 +1256,12 @@ export const DEFAULT_TREND_SEARCH_REQUEST: TrendSearchRequest = {
export const TREND_TIMEFRAMES = ['1m', '3m', '5m', '10m', '15m', '30m', '1h', '4h', '1d', '1w', '1M'] as const;
export interface TrendSearchResultsResponse {
results: TrendSearchResultDto[];
timeframe?: string;
scannedAt?: string;
}
export async function scanTrendSearch(body: TrendSearchRequest): Promise<TrendSearchResultDto[]> {
return (await request<TrendSearchResultDto[]>('/trend-search/scan', {
method: 'POST',
@@ -1263,6 +1269,10 @@ export async function scanTrendSearch(body: TrendSearchRequest): Promise<TrendSe
})) ?? [];
}
export async function fetchTrendSearchResults(): Promise<TrendSearchResultsResponse> {
return (await request<TrendSearchResultsResponse>('/trend-search/results')) ?? { results: [] };
}
export async function fetchTrendSearchDetail(
market: string,
timeframe?: string,