Skip to content

Commit

Permalink
๐Ÿ”ง fix: ์ฐจํŠธ ๋ฐ์ดํ„ฐ ์š”์ฒญ body ์ˆ˜์ •. #192
Browse files Browse the repository at this point in the history
  • Loading branch information
dannysir committed Nov 28, 2024
1 parent ab7f9a5 commit 19ca1aa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions FE/src/service/stocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@ export async function getStocksByCode(code: string): Promise<StockDetailType> {
export async function getStocksChartDataByCode(
code: string,
peroid: TiemCategory = 'D',
start: string = '',
end: string = '',
count: number = 50,
): Promise<StockChartUnit[]> {
return fetch(`${import.meta.env.VITE_API_URL}/stocks/detail/${code}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
fid_input_date_1: start,
fid_input_date_2: end,
fid_period_div_code: peroid,
count: count,
}),
}).then((res) => res.json());
}
Expand Down

0 comments on commit 19ca1aa

Please sign in to comment.