From 3bfb649c8056e5a12b5ebfd6f3fb1e2c1a4e411e Mon Sep 17 00:00:00 2001 From: JIN Date: Mon, 2 Dec 2024 16:37:20 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9C=85=20test:=20topfive=20=EB=A1=9C?= =?UTF-8?q?=EC=A7=81=20=ED=85=8C=EC=8A=A4=ED=8A=B8=EB=A5=BC=20=EC=9C=84?= =?UTF-8?q?=ED=95=9C=20=EB=AA=A9=EB=8D=B0=EC=9D=B4=ED=84=B0=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=20=EB=B0=8F=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=A7=84?= =?UTF-8?q?=ED=96=89#237?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../topfive/stock-topfive-high.mock-data.ts | 787 ++++++++++++++++++ .../topfive/stock-topfive-low.mock-data.ts | 787 ++++++++++++++++++ BE/src/stock/topfive/stock-topfive.spec.ts | 48 ++ 3 files changed, 1622 insertions(+) create mode 100644 BE/src/stock/topfive/stock-topfive-high.mock-data.ts create mode 100644 BE/src/stock/topfive/stock-topfive-low.mock-data.ts create mode 100644 BE/src/stock/topfive/stock-topfive.spec.ts diff --git a/BE/src/stock/topfive/stock-topfive-high.mock-data.ts b/BE/src/stock/topfive/stock-topfive-high.mock-data.ts new file mode 100644 index 00000000..528c9cf7 --- /dev/null +++ b/BE/src/stock/topfive/stock-topfive-high.mock-data.ts @@ -0,0 +1,787 @@ +export const STOCK_TOP_FIVE_HIGH_MOCK = { + output: [ + { + stck_shrn_iscd: '298000', + data_rank: '1', + hts_kor_isnm: '효성화학', + stck_prpr: '37500', + prdy_vrss: '8650', + prdy_vrss_sign: '1', + prdy_ctrt: '29.98', + acml_vol: '211979', + stck_hgpr: '37500', + hgpr_hour: '090336', + acml_hgpr_date: '20241202', + stck_lwpr: '29100', + lwpr_hour: '090018', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '28.87', + dsgt_date_clpr_vrss_prpr_rate: '29.98', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '0.00', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '321370', + data_rank: '2', + hts_kor_isnm: '센서뷰', + stck_prpr: '1943', + prdy_vrss: '448', + prdy_vrss_sign: '1', + prdy_ctrt: '29.97', + acml_vol: '9466785', + stck_hgpr: '1943', + hgpr_hour: '110318', + acml_hgpr_date: '20241202', + stck_lwpr: '1420', + lwpr_hour: '093635', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '36.83', + dsgt_date_clpr_vrss_prpr_rate: '29.97', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '0.00', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '002995', + data_rank: '3', + hts_kor_isnm: '금호건설우', + stck_prpr: '17480', + prdy_vrss: '4030', + prdy_vrss_sign: '1', + prdy_ctrt: '29.96', + acml_vol: '22768', + stck_hgpr: '17480', + hgpr_hour: '093009', + acml_hgpr_date: '20241202', + stck_lwpr: '16650', + lwpr_hour: '090013', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '4.98', + dsgt_date_clpr_vrss_prpr_rate: '29.96', + cnnt_ascn_dynu: '2', + hgpr_vrss_prpr_rate: '0.00', + cnnt_down_dynu: '0', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '031860', + data_rank: '4', + hts_kor_isnm: '에스유홀딩스', + stck_prpr: '1211', + prdy_vrss: '279', + prdy_vrss_sign: '1', + prdy_ctrt: '29.94', + acml_vol: '1336451', + stck_hgpr: '1211', + hgpr_hour: '151828', + acml_hgpr_date: '20241202', + stck_lwpr: '932', + lwpr_hour: '090030', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '29.94', + dsgt_date_clpr_vrss_prpr_rate: '29.94', + cnnt_ascn_dynu: '5', + hgpr_vrss_prpr_rate: '0.00', + cnnt_down_dynu: '0', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '005965', + data_rank: '5', + hts_kor_isnm: '동부건설우', + stck_prpr: '26100', + prdy_vrss: '6000', + prdy_vrss_sign: '1', + prdy_ctrt: '29.85', + acml_vol: '35862', + stck_hgpr: '26100', + hgpr_hour: '150000', + acml_hgpr_date: '20241202', + stck_lwpr: '20500', + lwpr_hour: '090030', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '27.32', + dsgt_date_clpr_vrss_prpr_rate: '29.85', + cnnt_ascn_dynu: '2', + hgpr_vrss_prpr_rate: '0.00', + cnnt_down_dynu: '0', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '223310', + data_rank: '6', + hts_kor_isnm: '딥마인드', + stck_prpr: '2635', + prdy_vrss: '605', + prdy_vrss_sign: '1', + prdy_ctrt: '29.80', + acml_vol: '1476038', + stck_hgpr: '2635', + hgpr_hour: '102351', + acml_hgpr_date: '20241202', + stck_lwpr: '2005', + lwpr_hour: '091222', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '31.42', + dsgt_date_clpr_vrss_prpr_rate: '29.80', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '0.00', + cnnt_down_dynu: '0', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '396470', + data_rank: '7', + hts_kor_isnm: '워트', + stck_prpr: '8230', + prdy_vrss: '1580', + prdy_vrss_sign: '2', + prdy_ctrt: '23.76', + acml_vol: '6083212', + stck_hgpr: '8640', + hgpr_hour: '144834', + acml_hgpr_date: '20241202', + stck_lwpr: '6470', + lwpr_hour: '125727', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '27.20', + dsgt_date_clpr_vrss_prpr_rate: '23.76', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-4.75', + cnnt_down_dynu: '4', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '466410', + data_rank: '8', + hts_kor_isnm: '사이냅소프트', + stck_prpr: '22950', + prdy_vrss: '4170', + prdy_vrss_sign: '2', + prdy_ctrt: '22.20', + acml_vol: '3836463', + stck_hgpr: '24400', + hgpr_hour: '135233', + acml_hgpr_date: '20241202', + stck_lwpr: '18300', + lwpr_hour: '091709', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '25.41', + dsgt_date_clpr_vrss_prpr_rate: '22.20', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-5.94', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '008830', + data_rank: '9', + hts_kor_isnm: '대동기어', + stck_prpr: '13630', + prdy_vrss: '2420', + prdy_vrss_sign: '2', + prdy_ctrt: '21.59', + acml_vol: '10130076', + stck_hgpr: '14270', + hgpr_hour: '122758', + acml_hgpr_date: '20241202', + stck_lwpr: '11250', + lwpr_hour: '090031', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '21.16', + dsgt_date_clpr_vrss_prpr_rate: '21.59', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-4.48', + cnnt_down_dynu: '2', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '010130', + data_rank: '10', + hts_kor_isnm: '고려아연', + stck_prpr: '1411000', + prdy_vrss: '231000', + prdy_vrss_sign: '2', + prdy_ctrt: '19.58', + acml_vol: '133354', + stck_hgpr: '1534000', + hgpr_hour: '094011', + acml_hgpr_date: '20241202', + stck_lwpr: '1228000', + lwpr_hour: '090005', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '14.90', + dsgt_date_clpr_vrss_prpr_rate: '19.58', + cnnt_ascn_dynu: '5', + hgpr_vrss_prpr_rate: '-8.02', + cnnt_down_dynu: '0', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '370090', + data_rank: '11', + hts_kor_isnm: '퓨런티어', + stck_prpr: '27800', + prdy_vrss: '3950', + prdy_vrss_sign: '2', + prdy_ctrt: '16.56', + acml_vol: '2128218', + stck_hgpr: '28050', + hgpr_hour: '151930', + acml_hgpr_date: '20241202', + stck_lwpr: '24550', + lwpr_hour: '090044', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '13.24', + dsgt_date_clpr_vrss_prpr_rate: '16.56', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-0.89', + cnnt_down_dynu: '4', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '356680', + data_rank: '12', + hts_kor_isnm: '엑스게이트', + stck_prpr: '6060', + prdy_vrss: '780', + prdy_vrss_sign: '2', + prdy_ctrt: '14.77', + acml_vol: '16267816', + stck_hgpr: '6200', + hgpr_hour: '150044', + acml_hgpr_date: '20241202', + stck_lwpr: '5420', + lwpr_hour: '090935', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '11.81', + dsgt_date_clpr_vrss_prpr_rate: '14.77', + cnnt_ascn_dynu: '3', + hgpr_vrss_prpr_rate: '-2.26', + cnnt_down_dynu: '0', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '036560', + data_rank: '13', + hts_kor_isnm: '영풍정밀', + stck_prpr: '16160', + prdy_vrss: '2010', + prdy_vrss_sign: '2', + prdy_ctrt: '14.20', + acml_vol: '1843700', + stck_hgpr: '18390', + hgpr_hour: '093626', + acml_hgpr_date: '20241202', + stck_lwpr: '14210', + lwpr_hour: '090030', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '13.72', + dsgt_date_clpr_vrss_prpr_rate: '14.20', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-12.13', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '437730', + data_rank: '14', + hts_kor_isnm: '삼현', + stck_prpr: '7800', + prdy_vrss: '910', + prdy_vrss_sign: '2', + prdy_ctrt: '13.21', + acml_vol: '11552979', + stck_hgpr: '8700', + hgpr_hour: '114723', + acml_hgpr_date: '20241202', + stck_lwpr: '6810', + lwpr_hour: '090040', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '14.54', + dsgt_date_clpr_vrss_prpr_rate: '13.21', + cnnt_ascn_dynu: '2', + hgpr_vrss_prpr_rate: '-10.34', + cnnt_down_dynu: '0', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '065350', + data_rank: '15', + hts_kor_isnm: '신성델타테크', + stck_prpr: '73900', + prdy_vrss: '8500', + prdy_vrss_sign: '2', + prdy_ctrt: '13.00', + acml_vol: '1223714', + stck_hgpr: '75000', + hgpr_hour: '092127', + acml_hgpr_date: '20241202', + stck_lwpr: '68300', + lwpr_hour: '090032', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '8.20', + dsgt_date_clpr_vrss_prpr_rate: '13.00', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-1.47', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '033320', + data_rank: '16', + hts_kor_isnm: '제이씨현시스템', + stck_prpr: '5690', + prdy_vrss: '640', + prdy_vrss_sign: '2', + prdy_ctrt: '12.67', + acml_vol: '28376225', + stck_hgpr: '6170', + hgpr_hour: '094952', + acml_hgpr_date: '20241202', + stck_lwpr: '5050', + lwpr_hour: '090047', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '12.67', + dsgt_date_clpr_vrss_prpr_rate: '12.67', + cnnt_ascn_dynu: '6', + hgpr_vrss_prpr_rate: '-7.78', + cnnt_down_dynu: '0', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '405920', + data_rank: '17', + hts_kor_isnm: '나라셀라', + stck_prpr: '3390', + prdy_vrss: '380', + prdy_vrss_sign: '2', + prdy_ctrt: '12.62', + acml_vol: '2823348', + stck_hgpr: '3830', + hgpr_hour: '143826', + acml_hgpr_date: '20241202', + stck_lwpr: '3005', + lwpr_hour: '090133', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '12.81', + dsgt_date_clpr_vrss_prpr_rate: '12.62', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-11.49', + cnnt_down_dynu: '2', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '348370', + data_rank: '18', + hts_kor_isnm: '엔켐', + stck_prpr: '143000', + prdy_vrss: '15800', + prdy_vrss_sign: '2', + prdy_ctrt: '12.42', + acml_vol: '683974', + stck_hgpr: '152100', + hgpr_hour: '091426', + acml_hgpr_date: '20241202', + stck_lwpr: '130400', + lwpr_hour: '090030', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '9.66', + dsgt_date_clpr_vrss_prpr_rate: '12.42', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-5.98', + cnnt_down_dynu: '4', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '950160', + data_rank: '19', + hts_kor_isnm: '코오롱티슈진', + stck_prpr: '19700', + prdy_vrss: '2150', + prdy_vrss_sign: '2', + prdy_ctrt: '12.25', + acml_vol: '2612892', + stck_hgpr: '22400', + hgpr_hour: '091857', + acml_hgpr_date: '20241202', + stck_lwpr: '18320', + lwpr_hour: '090147', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '7.53', + dsgt_date_clpr_vrss_prpr_rate: '12.25', + cnnt_ascn_dynu: '6', + hgpr_vrss_prpr_rate: '-12.05', + cnnt_down_dynu: '0', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '234920', + data_rank: '20', + hts_kor_isnm: '자이글', + stck_prpr: '6100', + prdy_vrss: '660', + prdy_vrss_sign: '2', + prdy_ctrt: '12.13', + acml_vol: '2724461', + stck_hgpr: '6600', + hgpr_hour: '090643', + acml_hgpr_date: '20241202', + stck_lwpr: '5550', + lwpr_hour: '090029', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '9.91', + dsgt_date_clpr_vrss_prpr_rate: '12.13', + cnnt_ascn_dynu: '2', + hgpr_vrss_prpr_rate: '-7.58', + cnnt_down_dynu: '0', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '032980', + data_rank: '21', + hts_kor_isnm: '바이온', + stck_prpr: '921', + prdy_vrss: '91', + prdy_vrss_sign: '2', + prdy_ctrt: '10.96', + acml_vol: '1860949', + stck_hgpr: '977', + hgpr_hour: '092052', + acml_hgpr_date: '20241202', + stck_lwpr: '835', + lwpr_hour: '090025', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '10.30', + dsgt_date_clpr_vrss_prpr_rate: '10.96', + cnnt_ascn_dynu: '2', + hgpr_vrss_prpr_rate: '-5.73', + cnnt_down_dynu: '0', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '047310', + data_rank: '22', + hts_kor_isnm: '파워로직스', + stck_prpr: '5290', + prdy_vrss: '490', + prdy_vrss_sign: '2', + prdy_ctrt: '10.21', + acml_vol: '2266972', + stck_hgpr: '5500', + hgpr_hour: '101137', + acml_hgpr_date: '20241202', + stck_lwpr: '4855', + lwpr_hour: '090346', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '8.96', + dsgt_date_clpr_vrss_prpr_rate: '10.21', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-3.82', + cnnt_down_dynu: '3', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '013720', + data_rank: '23', + hts_kor_isnm: 'CBI', + stck_prpr: '952', + prdy_vrss: '88', + prdy_vrss_sign: '2', + prdy_ctrt: '10.19', + acml_vol: '7202688', + stck_hgpr: '1115', + hgpr_hour: '091056', + acml_hgpr_date: '20241202', + stck_lwpr: '865', + lwpr_hour: '090047', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '10.06', + dsgt_date_clpr_vrss_prpr_rate: '10.19', + cnnt_ascn_dynu: '2', + hgpr_vrss_prpr_rate: '-14.62', + cnnt_down_dynu: '0', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '257370', + data_rank: '24', + hts_kor_isnm: '피엔티엠에스', + stck_prpr: '4290', + prdy_vrss: '395', + prdy_vrss_sign: '2', + prdy_ctrt: '10.14', + acml_vol: '1093889', + stck_hgpr: '5060', + hgpr_hour: '091606', + acml_hgpr_date: '20241202', + stck_lwpr: '3900', + lwpr_hour: '090016', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '10.00', + dsgt_date_clpr_vrss_prpr_rate: '10.14', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-15.22', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '473980', + data_rank: '25', + hts_kor_isnm: '노머스', + stck_prpr: '21950', + prdy_vrss: '2000', + prdy_vrss_sign: '2', + prdy_ctrt: '10.03', + acml_vol: '1879247', + stck_hgpr: '24350', + hgpr_hour: '101950', + acml_hgpr_date: '20241202', + stck_lwpr: '20400', + lwpr_hour: '090014', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '7.60', + dsgt_date_clpr_vrss_prpr_rate: '10.03', + cnnt_ascn_dynu: '4', + hgpr_vrss_prpr_rate: '-9.86', + cnnt_down_dynu: '0', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '464080', + data_rank: '26', + hts_kor_isnm: '에스오에스랩', + stck_prpr: '10250', + prdy_vrss: '880', + prdy_vrss_sign: '2', + prdy_ctrt: '9.39', + acml_vol: '9148097', + stck_hgpr: '10250', + hgpr_hour: '153001', + acml_hgpr_date: '20241202', + stck_lwpr: '9370', + lwpr_hour: '123437', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '9.39', + dsgt_date_clpr_vrss_prpr_rate: '9.39', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '0.00', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '006660', + data_rank: '27', + hts_kor_isnm: '삼성공조', + stck_prpr: '9680', + prdy_vrss: '800', + prdy_vrss_sign: '2', + prdy_ctrt: '9.01', + acml_vol: '2626725', + stck_hgpr: '10760', + hgpr_hour: '143402', + acml_hgpr_date: '20241202', + stck_lwpr: '8850', + lwpr_hour: '123503', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '9.38', + dsgt_date_clpr_vrss_prpr_rate: '9.01', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-10.04', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '025950', + data_rank: '28', + hts_kor_isnm: '동신건설', + stck_prpr: '20950', + prdy_vrss: '1730', + prdy_vrss_sign: '2', + prdy_ctrt: '9.00', + acml_vol: '322771', + stck_hgpr: '21600', + hgpr_hour: '093133', + acml_hgpr_date: '20241202', + stck_lwpr: '19180', + lwpr_hour: '090021', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '9.23', + dsgt_date_clpr_vrss_prpr_rate: '9.00', + cnnt_ascn_dynu: '3', + hgpr_vrss_prpr_rate: '-3.01', + cnnt_down_dynu: '0', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '001080', + data_rank: '29', + hts_kor_isnm: '만호제강', + stck_prpr: '35900', + prdy_vrss: '2950', + prdy_vrss_sign: '2', + prdy_ctrt: '8.95', + acml_vol: '15822', + stck_hgpr: '36150', + hgpr_hour: '145325', + acml_hgpr_date: '20241202', + stck_lwpr: '32350', + lwpr_hour: '090640', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '10.97', + dsgt_date_clpr_vrss_prpr_rate: '8.95', + cnnt_ascn_dynu: '3', + hgpr_vrss_prpr_rate: '-0.69', + cnnt_down_dynu: '0', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: 'Q510029', + data_rank: '30', + hts_kor_isnm: '대신 S&P 인버스 2X 천연가스 선물 ETN', + stck_prpr: '68200', + prdy_vrss: '5445', + prdy_vrss_sign: '2', + prdy_ctrt: '8.68', + acml_vol: '649', + stck_hgpr: '68565', + hgpr_hour: '150753', + acml_hgpr_date: '20241202', + stck_lwpr: '66050', + lwpr_hour: '091445', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '3.26', + dsgt_date_clpr_vrss_prpr_rate: '8.68', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-0.53', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + ], + rt_cd: '0', + msg_cd: 'MCA00000', + msg1: '정상처리 되었습니다.', +}; diff --git a/BE/src/stock/topfive/stock-topfive-low.mock-data.ts b/BE/src/stock/topfive/stock-topfive-low.mock-data.ts new file mode 100644 index 00000000..dee7888f --- /dev/null +++ b/BE/src/stock/topfive/stock-topfive-low.mock-data.ts @@ -0,0 +1,787 @@ +export const STOCK_TOP_FIVE_LOW_MOCK = { + output: [ + { + stck_shrn_iscd: '004545', + data_rank: '1', + hts_kor_isnm: '깨끗한나라우', + stck_prpr: '11780', + prdy_vrss: '-2880', + prdy_vrss_sign: '5', + prdy_ctrt: '-19.65', + acml_vol: '71640', + stck_hgpr: '12900', + hgpr_hour: '090021', + acml_hgpr_date: '20241202', + stck_lwpr: '11780', + lwpr_hour: '153006', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.00', + dsgt_date_clpr_vrss_prpr_rate: '-19.65', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-8.68', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '191420', + data_rank: '2', + hts_kor_isnm: '테고사이언스', + stck_prpr: '12360', + prdy_vrss: '-2430', + prdy_vrss_sign: '5', + prdy_ctrt: '-16.43', + acml_vol: '154156', + stck_hgpr: '14990', + hgpr_hour: '090017', + acml_hgpr_date: '20241202', + stck_lwpr: '12050', + lwpr_hour: '142411', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '2.57', + dsgt_date_clpr_vrss_prpr_rate: '-16.43', + cnnt_ascn_dynu: '0', + hgpr_vrss_prpr_rate: '-17.55', + cnnt_down_dynu: '5', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '004540', + data_rank: '3', + hts_kor_isnm: '깨끗한나라', + stck_prpr: '2165', + prdy_vrss: '-355', + prdy_vrss_sign: '5', + prdy_ctrt: '-14.09', + acml_vol: '7271564', + stck_hgpr: '2675', + hgpr_hour: '090021', + acml_hgpr_date: '20241202', + stck_lwpr: '2140', + lwpr_hour: '144403', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '1.17', + dsgt_date_clpr_vrss_prpr_rate: '-14.09', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-19.07', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '089890', + data_rank: '4', + hts_kor_isnm: '코세스', + stck_prpr: '6060', + prdy_vrss: '-940', + prdy_vrss_sign: '5', + prdy_ctrt: '-13.43', + acml_vol: '331350', + stck_hgpr: '7050', + hgpr_hour: '090437', + acml_hgpr_date: '20241202', + stck_lwpr: '5990', + lwpr_hour: '151841', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '1.17', + dsgt_date_clpr_vrss_prpr_rate: '-13.43', + cnnt_ascn_dynu: '0', + hgpr_vrss_prpr_rate: '-14.04', + cnnt_down_dynu: '2', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '452280', + data_rank: '5', + hts_kor_isnm: '한선엔지니어링', + stck_prpr: '7960', + prdy_vrss: '-1160', + prdy_vrss_sign: '5', + prdy_ctrt: '-12.72', + acml_vol: '629702', + stck_hgpr: '8900', + hgpr_hour: '090007', + acml_hgpr_date: '20241202', + stck_lwpr: '7850', + lwpr_hour: '102538', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '1.40', + dsgt_date_clpr_vrss_prpr_rate: '-12.72', + cnnt_ascn_dynu: '0', + hgpr_vrss_prpr_rate: '-10.56', + cnnt_down_dynu: '4', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '260930', + data_rank: '6', + hts_kor_isnm: '씨티케이', + stck_prpr: '5480', + prdy_vrss: '-730', + prdy_vrss_sign: '5', + prdy_ctrt: '-11.76', + acml_vol: '936890', + stck_hgpr: '6210', + hgpr_hour: '090014', + acml_hgpr_date: '20241202', + stck_lwpr: '4900', + lwpr_hour: '141305', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '11.84', + dsgt_date_clpr_vrss_prpr_rate: '-11.76', + cnnt_ascn_dynu: '0', + hgpr_vrss_prpr_rate: '-11.76', + cnnt_down_dynu: '2', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '281820', + data_rank: '7', + hts_kor_isnm: '케이씨텍', + stck_prpr: '27400', + prdy_vrss: '-3600', + prdy_vrss_sign: '5', + prdy_ctrt: '-11.61', + acml_vol: '114217', + stck_hgpr: '31300', + hgpr_hour: '090026', + acml_hgpr_date: '20241202', + stck_lwpr: '27050', + lwpr_hour: '143232', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '1.29', + dsgt_date_clpr_vrss_prpr_rate: '-11.61', + cnnt_ascn_dynu: '0', + hgpr_vrss_prpr_rate: '-12.46', + cnnt_down_dynu: '2', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '065060', + data_rank: '8', + hts_kor_isnm: '지엔코', + stck_prpr: '229', + prdy_vrss: '-29', + prdy_vrss_sign: '5', + prdy_ctrt: '-11.24', + acml_vol: '546204', + stck_hgpr: '258', + hgpr_hour: '090011', + acml_hgpr_date: '20241202', + stck_lwpr: '229', + lwpr_hour: '153030', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.00', + dsgt_date_clpr_vrss_prpr_rate: '-11.24', + cnnt_ascn_dynu: '0', + hgpr_vrss_prpr_rate: '-11.24', + cnnt_down_dynu: '4', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '005257', + data_rank: '9', + hts_kor_isnm: '녹십자홀딩스2우', + stck_prpr: '24150', + prdy_vrss: '-3050', + prdy_vrss_sign: '5', + prdy_ctrt: '-11.21', + acml_vol: '8118', + stck_hgpr: '28000', + hgpr_hour: '090132', + acml_hgpr_date: '20241202', + stck_lwpr: '24100', + lwpr_hour: '145729', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.21', + dsgt_date_clpr_vrss_prpr_rate: '-11.21', + cnnt_ascn_dynu: '2', + hgpr_vrss_prpr_rate: '-13.75', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '071320', + data_rank: '10', + hts_kor_isnm: '지역난방공사', + stck_prpr: '52500', + prdy_vrss: '-6600', + prdy_vrss_sign: '5', + prdy_ctrt: '-11.17', + acml_vol: '69569', + stck_hgpr: '60400', + hgpr_hour: '090022', + acml_hgpr_date: '20241202', + stck_lwpr: '52300', + lwpr_hour: '130255', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.38', + dsgt_date_clpr_vrss_prpr_rate: '-11.17', + cnnt_ascn_dynu: '2', + hgpr_vrss_prpr_rate: '-13.08', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '039610', + data_rank: '11', + hts_kor_isnm: '화성밸브', + stck_prpr: '9930', + prdy_vrss: '-1230', + prdy_vrss_sign: '5', + prdy_ctrt: '-11.02', + acml_vol: '1165985', + stck_hgpr: '10750', + hgpr_hour: '090021', + acml_hgpr_date: '20241202', + stck_lwpr: '9840', + lwpr_hour: '112317', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.91', + dsgt_date_clpr_vrss_prpr_rate: '-11.02', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-7.63', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '315640', + data_rank: '12', + hts_kor_isnm: '딥노이드', + stck_prpr: '6740', + prdy_vrss: '-790', + prdy_vrss_sign: '5', + prdy_ctrt: '-10.49', + acml_vol: '1117435', + stck_hgpr: '7550', + hgpr_hour: '090246', + acml_hgpr_date: '20241202', + stck_lwpr: '6710', + lwpr_hour: '151640', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.45', + dsgt_date_clpr_vrss_prpr_rate: '-10.49', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-10.73', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '000520', + data_rank: '13', + hts_kor_isnm: '삼일제약', + stck_prpr: '10840', + prdy_vrss: '-1260', + prdy_vrss_sign: '5', + prdy_ctrt: '-10.41', + acml_vol: '1821330', + stck_hgpr: '12500', + hgpr_hour: '090008', + acml_hgpr_date: '20241202', + stck_lwpr: '10740', + lwpr_hour: '145300', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.93', + dsgt_date_clpr_vrss_prpr_rate: '-10.41', + cnnt_ascn_dynu: '0', + hgpr_vrss_prpr_rate: '-13.28', + cnnt_down_dynu: '2', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '036460', + data_rank: '14', + hts_kor_isnm: '한국가스공사', + stck_prpr: '40050', + prdy_vrss: '-4600', + prdy_vrss_sign: '5', + prdy_ctrt: '-10.30', + acml_vol: '2467206', + stck_hgpr: '43500', + hgpr_hour: '090007', + acml_hgpr_date: '20241202', + stck_lwpr: '39800', + lwpr_hour: '102651', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.63', + dsgt_date_clpr_vrss_prpr_rate: '-10.30', + cnnt_ascn_dynu: '0', + hgpr_vrss_prpr_rate: '-7.93', + cnnt_down_dynu: '5', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '062040', + data_rank: '15', + hts_kor_isnm: '산일전기', + stck_prpr: '55500', + prdy_vrss: '-6000', + prdy_vrss_sign: '5', + prdy_ctrt: '-9.76', + acml_vol: '786091', + stck_hgpr: '63000', + hgpr_hour: '090027', + acml_hgpr_date: '20241202', + stck_lwpr: '55400', + lwpr_hour: '150713', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.18', + dsgt_date_clpr_vrss_prpr_rate: '-9.76', + cnnt_ascn_dynu: '3', + hgpr_vrss_prpr_rate: '-11.90', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '267850', + data_rank: '16', + hts_kor_isnm: '아시아나IDT', + stck_prpr: '14380', + prdy_vrss: '-1520', + prdy_vrss_sign: '5', + prdy_ctrt: '-9.56', + acml_vol: '288308', + stck_hgpr: '15860', + hgpr_hour: '090016', + acml_hgpr_date: '20241202', + stck_lwpr: '14300', + lwpr_hour: '101845', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.56', + dsgt_date_clpr_vrss_prpr_rate: '-9.56', + cnnt_ascn_dynu: '0', + hgpr_vrss_prpr_rate: '-9.33', + cnnt_down_dynu: '2', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '030350', + data_rank: '17', + hts_kor_isnm: '드래곤플라이', + stck_prpr: '1055', + prdy_vrss: '-110', + prdy_vrss_sign: '5', + prdy_ctrt: '-9.44', + acml_vol: '427949', + stck_hgpr: '1162', + hgpr_hour: '090019', + acml_hgpr_date: '20241202', + stck_lwpr: '1055', + lwpr_hour: '153030', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.00', + dsgt_date_clpr_vrss_prpr_rate: '-9.44', + cnnt_ascn_dynu: '0', + hgpr_vrss_prpr_rate: '-9.21', + cnnt_down_dynu: '2', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: 'Q700025', + data_rank: '18', + hts_kor_isnm: '하나 블룸버그 2X 천연가스 선물 ETN(H) B', + stck_prpr: '3945', + prdy_vrss: '-410', + prdy_vrss_sign: '5', + prdy_ctrt: '-9.41', + acml_vol: '6507', + stck_hgpr: '4080', + hgpr_hour: '090013', + acml_hgpr_date: '20241202', + stck_lwpr: '3945', + lwpr_hour: '153014', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.00', + dsgt_date_clpr_vrss_prpr_rate: '-9.41', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-3.31', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '217330', + data_rank: '19', + hts_kor_isnm: '싸이토젠', + stck_prpr: '6180', + prdy_vrss: '-640', + prdy_vrss_sign: '5', + prdy_ctrt: '-9.38', + acml_vol: '101146', + stck_hgpr: '6990', + hgpr_hour: '090021', + acml_hgpr_date: '20241202', + stck_lwpr: '6150', + lwpr_hour: '151952', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.49', + dsgt_date_clpr_vrss_prpr_rate: '-9.38', + cnnt_ascn_dynu: '0', + hgpr_vrss_prpr_rate: '-11.59', + cnnt_down_dynu: '3', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '354200', + data_rank: '20', + hts_kor_isnm: '엔젠바이오', + stck_prpr: '2575', + prdy_vrss: '-265', + prdy_vrss_sign: '5', + prdy_ctrt: '-9.33', + acml_vol: '1524449', + stck_hgpr: '3195', + hgpr_hour: '130612', + acml_hgpr_date: '20241202', + stck_lwpr: '2565', + lwpr_hour: '150816', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.39', + dsgt_date_clpr_vrss_prpr_rate: '-9.33', + cnnt_ascn_dynu: '3', + hgpr_vrss_prpr_rate: '-19.41', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '043100', + data_rank: '21', + hts_kor_isnm: '알파녹스', + stck_prpr: '1987', + prdy_vrss: '-203', + prdy_vrss_sign: '5', + prdy_ctrt: '-9.27', + acml_vol: '68086', + stck_hgpr: '2200', + hgpr_hour: '090118', + acml_hgpr_date: '20241202', + stck_lwpr: '1987', + lwpr_hour: '153030', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.00', + dsgt_date_clpr_vrss_prpr_rate: '-9.27', + cnnt_ascn_dynu: '0', + hgpr_vrss_prpr_rate: '-9.68', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '215600', + data_rank: '22', + hts_kor_isnm: '신라젠', + stck_prpr: '2945', + prdy_vrss: '-300', + prdy_vrss_sign: '5', + prdy_ctrt: '-9.24', + acml_vol: '1314816', + stck_hgpr: '3255', + hgpr_hour: '090010', + acml_hgpr_date: '20241202', + stck_lwpr: '2945', + lwpr_hour: '153021', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.00', + dsgt_date_clpr_vrss_prpr_rate: '-9.24', + cnnt_ascn_dynu: '8', + hgpr_vrss_prpr_rate: '-9.52', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '074610', + data_rank: '23', + hts_kor_isnm: '이엔플러스', + stck_prpr: '1089', + prdy_vrss: '-110', + prdy_vrss_sign: '5', + prdy_ctrt: '-9.17', + acml_vol: '813175', + stck_hgpr: '1217', + hgpr_hour: '090203', + acml_hgpr_date: '20241202', + stck_lwpr: '1086', + lwpr_hour: '123409', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.28', + dsgt_date_clpr_vrss_prpr_rate: '-9.17', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-10.52', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: 'Q610067', + data_rank: '24', + hts_kor_isnm: '메리츠 블룸버그 2X 천연가스선물 ETN(H) B', + stck_prpr: '3925', + prdy_vrss: '-395', + prdy_vrss_sign: '5', + prdy_ctrt: '-9.14', + acml_vol: '24354', + stck_hgpr: '4090', + hgpr_hour: '123158', + acml_hgpr_date: '20241202', + stck_lwpr: '3925', + lwpr_hour: '144937', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.00', + dsgt_date_clpr_vrss_prpr_rate: '-9.14', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-4.03', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '012690', + data_rank: '25', + hts_kor_isnm: '모나리자', + stck_prpr: '2800', + prdy_vrss: '-280', + prdy_vrss_sign: '5', + prdy_ctrt: '-9.09', + acml_vol: '2284793', + stck_hgpr: '2995', + hgpr_hour: '090027', + acml_hgpr_date: '20241202', + stck_lwpr: '2800', + lwpr_hour: '153014', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.00', + dsgt_date_clpr_vrss_prpr_rate: '-9.09', + cnnt_ascn_dynu: '2', + hgpr_vrss_prpr_rate: '-6.51', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: 'Q500082', + data_rank: '26', + hts_kor_isnm: '신한 블룸버그 2X 천연가스 선물 ETN', + stck_prpr: '4985', + prdy_vrss: '-490', + prdy_vrss_sign: '5', + prdy_ctrt: '-8.95', + acml_vol: '160739', + stck_hgpr: '5180', + hgpr_hour: '123435', + acml_hgpr_date: '20241202', + stck_lwpr: '4985', + lwpr_hour: '150816', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.00', + dsgt_date_clpr_vrss_prpr_rate: '-8.95', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-3.76', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: 'Q530111', + data_rank: '27', + hts_kor_isnm: '삼성 레버리지 천연가스 선물 ETN C', + stck_prpr: '3715', + prdy_vrss: '-365', + prdy_vrss_sign: '5', + prdy_ctrt: '-8.95', + acml_vol: '1345055', + stck_hgpr: '3865', + hgpr_hour: '123402', + acml_hgpr_date: '20241202', + stck_lwpr: '3715', + lwpr_hour: '153016', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.00', + dsgt_date_clpr_vrss_prpr_rate: '-8.95', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-3.88', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '348340', + data_rank: '28', + hts_kor_isnm: '뉴로메카', + stck_prpr: '24000', + prdy_vrss: '-2350', + prdy_vrss_sign: '5', + prdy_ctrt: '-8.92', + acml_vol: '466196', + stck_hgpr: '26250', + hgpr_hour: '090020', + acml_hgpr_date: '20241202', + stck_lwpr: '23750', + lwpr_hour: '124415', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '1.05', + dsgt_date_clpr_vrss_prpr_rate: '-8.92', + cnnt_ascn_dynu: '7', + hgpr_vrss_prpr_rate: '-8.57', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: '028080', + data_rank: '29', + hts_kor_isnm: '휴맥스홀딩스', + stck_prpr: '2255', + prdy_vrss: '-220', + prdy_vrss_sign: '5', + prdy_ctrt: '-8.89', + acml_vol: '113944', + stck_hgpr: '2590', + hgpr_hour: '090024', + acml_hgpr_date: '20241202', + stck_lwpr: '2240', + lwpr_hour: '094918', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.67', + dsgt_date_clpr_vrss_prpr_rate: '-8.89', + cnnt_ascn_dynu: '0', + hgpr_vrss_prpr_rate: '-12.93', + cnnt_down_dynu: '7', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + { + stck_shrn_iscd: 'Q550074', + data_rank: '30', + hts_kor_isnm: 'N2 블룸버그 2X 천연가스 선물 ETN(H)', + stck_prpr: '250', + prdy_vrss: '-24', + prdy_vrss_sign: '5', + prdy_ctrt: '-8.76', + acml_vol: '1306632', + stck_hgpr: '260', + hgpr_hour: '123417', + acml_hgpr_date: '20241202', + stck_lwpr: '249', + lwpr_hour: '145019', + acml_lwpr_date: '20241202', + lwpr_vrss_prpr_rate: '0.40', + dsgt_date_clpr_vrss_prpr_rate: '-8.76', + cnnt_ascn_dynu: '1', + hgpr_vrss_prpr_rate: '-3.85', + cnnt_down_dynu: '1', + oprc_vrss_prpr_sign: '2', + oprc_vrss_prpr: '0', + oprc_vrss_prpr_rate: '0.00', + prd_rsfl: '0', + prd_rsfl_rate: '0.00', + }, + ], + rt_cd: '0', + msg_cd: 'MCA00000', + msg1: '정상처리 되었습니다.', +}; diff --git a/BE/src/stock/topfive/stock-topfive.spec.ts b/BE/src/stock/topfive/stock-topfive.spec.ts new file mode 100644 index 00000000..5557159d --- /dev/null +++ b/BE/src/stock/topfive/stock-topfive.spec.ts @@ -0,0 +1,48 @@ +import { Test } from '@nestjs/testing'; +import { KoreaInvestmentDomainService } from '../../common/koreaInvestment/korea-investment.domain-service'; +import { StockTopfiveService } from './stock-topfive.service'; +import { StockRankingDataDto } from './dto/stock-ranking-data.dto'; +import { STOCK_TOP_FIVE_HIGH_MOCK } from './stock-topfive-high.mock-data'; +import { STOCK_TOP_FIVE_LOW_MOCK } from './stock-topfive-low.mock-data'; +import { MarketType } from '../enum/market-type'; + +jest.mock('axios'); + +describe('stock index list test', () => { + let stockTopfiveService: StockTopfiveService; + let koreaInvestmentDomainService: KoreaInvestmentDomainService; + let highResponse: StockRankingDataDto[]; + let lowResponse: StockRankingDataDto[]; + + beforeEach(async () => { + const module = await Test.createTestingModule({ + providers: [StockTopfiveService, KoreaInvestmentDomainService], + }).compile(); + + stockTopfiveService = module.get(StockTopfiveService); + koreaInvestmentDomainService = module.get(KoreaInvestmentDomainService); + + jest + .spyOn(koreaInvestmentDomainService, 'getAccessToken') + .mockResolvedValue('accessToken'); + + jest + .spyOn(koreaInvestmentDomainService, 'requestApi') + .mockResolvedValueOnce(STOCK_TOP_FIVE_HIGH_MOCK) + .mockResolvedValueOnce(STOCK_TOP_FIVE_LOW_MOCK); + + const response = await stockTopfiveService.getMarketRanking(MarketType.ALL); + highResponse = response.high; + lowResponse = response.low; + }); + + it('전체 종목에 대한 급상승/급하락 순위를 5개까지 받아온다.', () => { + expect(highResponse.length).toEqual(5); + expect(lowResponse.length).toEqual(5); + }); + + it('받아오는 순위 배열의 내부 데이터에는 종목명이 포함되어 있다.', () => { + expect(highResponse[0].hts_kor_isnm).toEqual('효성화학'); + expect(lowResponse[4].hts_kor_isnm).toEqual('한선엔지니어링'); + }); +}); From 4cd8976fa0f84d80009055cc6698f9faf36620ea Mon Sep 17 00:00:00 2001 From: JIN Date: Mon, 2 Dec 2024 16:51:21 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=9A=9A=20rename:=20=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=EB=AA=85=20=EB=B0=8F=20=EB=94=94=EB=A0=89=ED=84=B0=EB=A6=AC=20?= =?UTF-8?q?=ED=86=B5=EC=9D=BC#237?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stock-topfive-high.mockdata.ts} | 0 .../stock-topfive-low.mockdata.ts} | 0 BE/src/stock/topfive/stock-topfive.spec.ts | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename BE/src/stock/topfive/{stock-topfive-high.mock-data.ts => mockdata/stock-topfive-high.mockdata.ts} (100%) rename BE/src/stock/topfive/{stock-topfive-low.mock-data.ts => mockdata/stock-topfive-low.mockdata.ts} (100%) diff --git a/BE/src/stock/topfive/stock-topfive-high.mock-data.ts b/BE/src/stock/topfive/mockdata/stock-topfive-high.mockdata.ts similarity index 100% rename from BE/src/stock/topfive/stock-topfive-high.mock-data.ts rename to BE/src/stock/topfive/mockdata/stock-topfive-high.mockdata.ts diff --git a/BE/src/stock/topfive/stock-topfive-low.mock-data.ts b/BE/src/stock/topfive/mockdata/stock-topfive-low.mockdata.ts similarity index 100% rename from BE/src/stock/topfive/stock-topfive-low.mock-data.ts rename to BE/src/stock/topfive/mockdata/stock-topfive-low.mockdata.ts diff --git a/BE/src/stock/topfive/stock-topfive.spec.ts b/BE/src/stock/topfive/stock-topfive.spec.ts index 5557159d..a807fbf1 100644 --- a/BE/src/stock/topfive/stock-topfive.spec.ts +++ b/BE/src/stock/topfive/stock-topfive.spec.ts @@ -2,8 +2,8 @@ import { Test } from '@nestjs/testing'; import { KoreaInvestmentDomainService } from '../../common/koreaInvestment/korea-investment.domain-service'; import { StockTopfiveService } from './stock-topfive.service'; import { StockRankingDataDto } from './dto/stock-ranking-data.dto'; -import { STOCK_TOP_FIVE_HIGH_MOCK } from './stock-topfive-high.mock-data'; -import { STOCK_TOP_FIVE_LOW_MOCK } from './stock-topfive-low.mock-data'; +import { STOCK_TOP_FIVE_HIGH_MOCK } from './mockdata/stock-topfive-high.mockdata'; +import { STOCK_TOP_FIVE_LOW_MOCK } from './mockdata/stock-topfive-low.mockdata'; import { MarketType } from '../enum/market-type'; jest.mock('axios'); From 4cfba3be7523f4dd9433ca16e86c9d509d0374da Mon Sep 17 00:00:00 2001 From: JIN Date: Mon, 2 Dec 2024 16:55:17 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=9A=9A=20rename:=20=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=EB=AA=85=EC=97=90=20=EB=88=84=EB=9D=BD=EB=90=98=EC=96=B4?= =?UTF-8?q?=EC=9E=88=EB=8D=98=20service=20=EC=B6=94=EA=B0=80#237?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{stock-topfive.spec.ts => stock-topfive.service.spec.ts} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename BE/src/stock/topfive/{stock-topfive.spec.ts => stock-topfive.service.spec.ts} (100%) diff --git a/BE/src/stock/topfive/stock-topfive.spec.ts b/BE/src/stock/topfive/stock-topfive.service.spec.ts similarity index 100% rename from BE/src/stock/topfive/stock-topfive.spec.ts rename to BE/src/stock/topfive/stock-topfive.service.spec.ts