From 402fa3d6446d2e04ad1914acb9f4c44d41bb4eb8 Mon Sep 17 00:00:00 2001 From: dsyoon Date: Mon, 18 Oct 2021 19:29:53 +0900 Subject: [PATCH] init --- hts/HTS_122630.py | 4 +- hts/data/122630_20211018.csv | 382 +++++++++++++++++++++++++++++++++++ 2 files changed, 384 insertions(+), 2 deletions(-) create mode 100644 hts/data/122630_20211018.csv diff --git a/hts/HTS_122630.py b/hts/HTS_122630.py index 8f62231..4b943f9 100644 --- a/hts/HTS_122630.py +++ b/hts/HTS_122630.py @@ -659,7 +659,7 @@ if __name__ == "__main__": stock_codes = ["122630"] given_day = datetime.today().strftime('%Y%m%d') - #hts.writeStockData(stock_codes, "20211015") - hts.buyRealTime(stock_codes[0], given_day) + hts.writeStockData(stock_codes, "20211018") + #hts.buyRealTime(stock_codes[0], given_day) print ("done...") diff --git a/hts/data/122630_20211018.csv b/hts/data/122630_20211018.csv new file mode 100644 index 0000000..8a52326 --- /dev/null +++ b/hts/data/122630_20211018.csv @@ -0,0 +1,382 @@ +날짜,시간,시가,고가,저가,종가,거래량 +20211018,0901,23505,23505,23330,23335,236704 +20211018,0902,23325,23340,23265,23265,318204 +20211018,0903,23265,23300,23245,23260,207164 +20211018,0904,23260,23275,23220,23230,100050 +20211018,0905,23225,23240,23195,23210,129939 +20211018,0906,23215,23235,23205,23215,85137 +20211018,0907,23215,23240,23195,23200,132189 +20211018,0908,23200,23200,23170,23180,114926 +20211018,0909,23180,23190,23145,23160,114894 +20211018,0910,23165,23170,23135,23160,66677 +20211018,0911,23155,23165,23120,23135,128048 +20211018,0912,23135,23160,23120,23140,83210 +20211018,0913,23140,23145,23095,23110,154465 +20211018,0914,23115,23140,23095,23130,46672 +20211018,0915,23125,23125,23080,23100,80447 +20211018,0916,23100,23125,23095,23115,114212 +20211018,0917,23115,23125,23060,23060,165555 +20211018,0918,23060,23085,23050,23080,140227 +20211018,0919,23075,23110,23075,23105,75409 +20211018,0920,23110,23130,23075,23120,149692 +20211018,0921,23120,23135,23100,23115,124437 +20211018,0922,23110,23125,23095,23110,76183 +20211018,0923,23105,23145,23100,23130,91216 +20211018,0924,23130,23185,23130,23165,141732 +20211018,0925,23165,23165,23115,23145,100728 +20211018,0926,23150,23160,23085,23090,121568 +20211018,0927,23090,23125,23090,23125,55925 +20211018,0928,23125,23135,23110,23130,60491 +20211018,0929,23130,23130,23090,23095,61788 +20211018,0930,23090,23090,23075,23085,49329 +20211018,0931,23085,23125,23075,23125,94034 +20211018,0932,23125,23150,23120,23145,44493 +20211018,0933,23150,23155,23125,23150,52607 +20211018,0934,23155,23160,23110,23110,50952 +20211018,0935,23115,23170,23110,23165,48139 +20211018,0936,23165,23210,23150,23205,147908 +20211018,0937,23205,23210,23175,23185,80466 +20211018,0938,23190,23225,23190,23205,108269 +20211018,0939,23200,23205,23180,23200,103565 +20211018,0940,23195,23240,23195,23205,58378 +20211018,0941,23205,23225,23190,23200,105639 +20211018,0942,23190,23235,23190,23230,62840 +20211018,0943,23230,23250,23205,23210,52567 +20211018,0944,23215,23240,23210,23230,39040 +20211018,0945,23230,23230,23205,23205,35573 +20211018,0946,23210,23220,23175,23175,73608 +20211018,0947,23180,23190,23165,23175,68596 +20211018,0948,23170,23175,23135,23175,98177 +20211018,0949,23170,23175,23135,23155,65690 +20211018,0950,23160,23170,23140,23150,31740 +20211018,0951,23150,23180,23140,23180,27255 +20211018,0952,23180,23230,23180,23230,86162 +20211018,0953,23235,23255,23230,23255,142825 +20211018,0954,23255,23345,23250,23330,263800 +20211018,0955,23330,23355,23325,23345,104624 +20211018,0956,23350,23355,23315,23345,114265 +20211018,0957,23345,23370,23330,23360,116160 +20211018,0958,23355,23365,23310,23315,81730 +20211018,0959,23320,23320,23285,23295,69313 +20211018,1000,23295,23345,23295,23345,97037 +20211018,1001,23340,23355,23320,23330,192712 +20211018,1002,23325,23335,23290,23290,34599 +20211018,1003,23300,23305,23280,23295,50504 +20211018,1004,23290,23310,23285,23285,30401 +20211018,1005,23295,23340,23285,23340,49383 +20211018,1006,23330,23345,23295,23340,43257 +20211018,1007,23340,23400,23340,23385,119776 +20211018,1008,23390,23405,23380,23395,48260 +20211018,1009,23395,23395,23370,23375,56059 +20211018,1010,23375,23380,23355,23370,39346 +20211018,1011,23370,23380,23325,23330,42001 +20211018,1012,23325,23330,23300,23310,27003 +20211018,1013,23310,23310,23285,23290,50345 +20211018,1014,23290,23310,23290,23300,47098 +20211018,1015,23305,23315,23285,23290,42140 +20211018,1016,23290,23305,23250,23295,68691 +20211018,1017,23305,23310,23285,23285,36989 +20211018,1018,23290,23315,23280,23290,13070 +20211018,1019,23285,23295,23275,23280,29424 +20211018,1020,23280,23310,23280,23310,59395 +20211018,1021,23310,23350,23310,23320,42500 +20211018,1022,23330,23345,23315,23315,25331 +20211018,1023,23315,23350,23310,23330,16427 +20211018,1024,23330,23365,23325,23355,16869 +20211018,1025,23355,23360,23340,23350,39544 +20211018,1026,23350,23360,23335,23360,10953 +20211018,1027,23360,23360,23340,23360,52125 +20211018,1028,23360,23390,23345,23350,65822 +20211018,1029,23350,23385,23345,23360,13777 +20211018,1030,23360,23375,23355,23360,21212 +20211018,1031,23355,23365,23310,23330,71064 +20211018,1032,23335,23340,23315,23340,51041 +20211018,1033,23340,23340,23305,23305,49469 +20211018,1034,23300,23325,23300,23320,77748 +20211018,1035,23315,23350,23310,23330,55973 +20211018,1036,23320,23320,23290,23315,32347 +20211018,1037,23305,23345,23305,23330,23256 +20211018,1038,23325,23350,23310,23345,40103 +20211018,1039,23340,23355,23335,23335,15136 +20211018,1040,23335,23340,23315,23315,19453 +20211018,1041,23315,23350,23315,23335,6977 +20211018,1042,23330,23355,23320,23345,41726 +20211018,1043,23350,23365,23330,23340,22206 +20211018,1044,23335,23340,23320,23325,11442 +20211018,1045,23325,23335,23305,23335,47110 +20211018,1046,23330,23340,23320,23325,9812 +20211018,1047,23320,23320,23270,23280,112845 +20211018,1048,23290,23305,23285,23305,22333 +20211018,1049,23300,23315,23290,23315,39823 +20211018,1050,23310,23350,23310,23345,48716 +20211018,1051,23345,23360,23335,23360,40356 +20211018,1052,23360,23385,23355,23385,55289 +20211018,1053,23385,23395,23375,23380,69289 +20211018,1054,23385,23390,23370,23380,21044 +20211018,1055,23370,23375,23365,23370,12945 +20211018,1056,23370,23395,23365,23395,7032 +20211018,1057,23390,23395,23370,23385,20688 +20211018,1058,23385,23400,23380,23390,22932 +20211018,1059,23390,23395,23380,23380,16708 +20211018,1100,23380,23405,23375,23400,34899 +20211018,1101,23400,23400,23365,23370,32097 +20211018,1102,23370,23395,23365,23370,17713 +20211018,1103,23370,23375,23355,23370,16908 +20211018,1104,23360,23395,23355,23385,13245 +20211018,1105,23390,23420,23365,23415,55424 +20211018,1106,23415,23450,23415,23420,85425 +20211018,1107,23425,23430,23415,23415,69861 +20211018,1108,23415,23445,23405,23435,35019 +20211018,1109,23430,23435,23415,23420,8389 +20211018,1110,23415,23445,23415,23440,17529 +20211018,1111,23445,23445,23415,23415,41631 +20211018,1112,23415,23425,23405,23420,26478 +20211018,1113,23420,23445,23415,23435,52500 +20211018,1114,23435,23445,23430,23445,24055 +20211018,1115,23450,23465,23430,23430,54619 +20211018,1116,23435,23445,23420,23440,46750 +20211018,1117,23440,23460,23440,23455,47679 +20211018,1118,23455,23455,23435,23440,40355 +20211018,1119,23435,23440,23425,23430,13652 +20211018,1120,23430,23440,23430,23430,8704 +20211018,1121,23430,23430,23420,23420,15284 +20211018,1122,23420,23425,23415,23420,20137 +20211018,1123,23420,23440,23420,23440,11529 +20211018,1124,23440,23445,23425,23435,22164 +20211018,1125,23440,23450,23440,23440,13135 +20211018,1126,23440,23465,23440,23460,29652 +20211018,1127,23465,23480,23455,23460,29069 +20211018,1128,23460,23465,23450,23455,6252 +20211018,1129,23455,23475,23450,23470,43341 +20211018,1130,23470,23475,23465,23470,6600 +20211018,1131,23470,23475,23450,23455,65074 +20211018,1132,23455,23460,23445,23445,9829 +20211018,1133,23440,23460,23435,23455,30528 +20211018,1134,23460,23460,23435,23440,19042 +20211018,1135,23440,23445,23430,23430,20490 +20211018,1136,23425,23435,23415,23415,14729 +20211018,1137,23420,23425,23410,23415,30238 +20211018,1138,23415,23425,23410,23410,7751 +20211018,1139,23415,23420,23405,23420,60543 +20211018,1140,23420,23420,23405,23420,4704 +20211018,1141,23415,23420,23395,23400,34597 +20211018,1142,23400,23410,23395,23405,7296 +20211018,1143,23400,23415,23395,23410,9639 +20211018,1144,23405,23410,23400,23400,3700 +20211018,1145,23400,23405,23395,23400,27350 +20211018,1146,23395,23400,23395,23395,15886 +20211018,1147,23400,23400,23390,23390,20640 +20211018,1148,23390,23405,23390,23405,14490 +20211018,1149,23400,23400,23385,23395,5863 +20211018,1150,23395,23410,23390,23410,6828 +20211018,1151,23405,23410,23400,23410,4703 +20211018,1152,23415,23420,23405,23420,28988 +20211018,1153,23420,23430,23415,23430,31958 +20211018,1154,23430,23445,23430,23440,19152 +20211018,1155,23445,23460,23445,23460,40769 +20211018,1156,23460,23465,23445,23450,15092 +20211018,1157,23450,23455,23445,23450,3379 +20211018,1158,23450,23455,23440,23445,5769 +20211018,1159,23445,23455,23445,23450,27676 +20211018,1200,23445,23445,23435,23440,8460 +20211018,1201,23440,23445,23435,23445,7634 +20211018,1202,23445,23445,23435,23440,3309 +20211018,1203,23445,23450,23445,23445,7016 +20211018,1204,23440,23450,23430,23435,25564 +20211018,1205,23435,23450,23430,23445,15334 +20211018,1206,23450,23455,23430,23430,11818 +20211018,1207,23425,23430,23410,23410,10083 +20211018,1208,23410,23425,23410,23410,19257 +20211018,1209,23420,23425,23415,23420,10526 +20211018,1210,23415,23425,23415,23415,500 +20211018,1211,23420,23425,23410,23415,18342 +20211018,1212,23410,23420,23410,23420,23744 +20211018,1213,23420,23430,23420,23430,34607 +20211018,1214,23435,23450,23435,23445,31519 +20211018,1215,23450,23460,23445,23460,34072 +20211018,1216,23450,23460,23445,23455,8865 +20211018,1217,23455,23455,23435,23455,10138 +20211018,1218,23455,23465,23445,23445,53453 +20211018,1219,23450,23450,23435,23445,47047 +20211018,1220,23445,23450,23440,23440,2546 +20211018,1221,23440,23445,23430,23445,4225 +20211018,1222,23445,23465,23445,23465,28581 +20211018,1223,23460,23475,23455,23475,41050 +20211018,1224,23475,23475,23460,23465,12442 +20211018,1225,23465,23490,23465,23490,59398 +20211018,1226,23490,23495,23475,23490,15278 +20211018,1227,23490,23515,23485,23510,71458 +20211018,1228,23510,23530,23510,23525,49320 +20211018,1229,23525,23535,23515,23525,65317 +20211018,1230,23525,23540,23520,23540,29932 +20211018,1231,23545,23565,23540,23545,124353 +20211018,1232,23540,23565,23540,23560,25058 +20211018,1233,23565,23575,23560,23575,40103 +20211018,1234,23570,23590,23570,23590,25312 +20211018,1235,23590,23600,23575,23595,51917 +20211018,1236,23595,23605,23585,23605,42958 +20211018,1237,23605,23615,23590,23595,61425 +20211018,1238,23595,23600,23570,23570,51314 +20211018,1239,23575,23590,23575,23585,31606 +20211018,1240,23585,23595,23575,23580,43126 +20211018,1241,23585,23585,23565,23570,21244 +20211018,1242,23575,23575,23565,23565,16398 +20211018,1243,23570,23570,23560,23560,22880 +20211018,1244,23565,23570,23545,23555,20537 +20211018,1245,23555,23565,23550,23560,18343 +20211018,1246,23570,23575,23560,23565,22020 +20211018,1247,23565,23570,23555,23555,38050 +20211018,1248,23565,23565,23545,23555,9121 +20211018,1249,23555,23560,23550,23555,17557 +20211018,1250,23550,23560,23545,23560,26119 +20211018,1251,23555,23555,23540,23550,18742 +20211018,1252,23545,23555,23540,23540,8508 +20211018,1253,23545,23555,23540,23545,18970 +20211018,1254,23550,23550,23540,23545,5312 +20211018,1255,23545,23560,23540,23555,17579 +20211018,1256,23555,23555,23540,23545,5417 +20211018,1257,23545,23545,23520,23520,34677 +20211018,1258,23525,23545,23520,23545,28256 +20211018,1259,23540,23545,23530,23530,12774 +20211018,1300,23530,23530,23525,23530,13867 +20211018,1301,23535,23535,23520,23535,14311 +20211018,1302,23530,23540,23525,23535,9148 +20211018,1303,23535,23535,23520,23530,14811 +20211018,1304,23525,23525,23515,23520,21997 +20211018,1305,23520,23525,23510,23520,22731 +20211018,1306,23520,23520,23505,23520,23124 +20211018,1307,23520,23520,23505,23510,2860 +20211018,1308,23510,23510,23485,23490,26658 +20211018,1309,23490,23510,23485,23500,25514 +20211018,1310,23495,23495,23480,23490,10691 +20211018,1311,23490,23490,23475,23480,29467 +20211018,1312,23475,23500,23475,23495,21582 +20211018,1313,23495,23500,23490,23500,7120 +20211018,1314,23495,23515,23490,23510,32993 +20211018,1315,23505,23510,23500,23505,5676 +20211018,1316,23500,23500,23475,23475,20754 +20211018,1317,23475,23480,23460,23465,28377 +20211018,1318,23465,23475,23460,23460,9473 +20211018,1319,23460,23475,23460,23465,17222 +20211018,1320,23465,23470,23460,23460,9825 +20211018,1321,23460,23465,23435,23435,60625 +20211018,1322,23440,23440,23390,23395,94535 +20211018,1323,23395,23415,23395,23410,20649 +20211018,1324,23410,23410,23400,23400,35341 +20211018,1325,23395,23410,23375,23390,42305 +20211018,1326,23390,23400,23390,23400,7436 +20211018,1327,23400,23400,23380,23385,15238 +20211018,1328,23385,23410,23385,23405,18591 +20211018,1329,23410,23425,23405,23420,25351 +20211018,1330,23420,23430,23415,23430,19456 +20211018,1331,23430,23445,23425,23440,30300 +20211018,1332,23435,23450,23435,23445,22181 +20211018,1333,23440,23455,23440,23445,14423 +20211018,1334,23450,23450,23440,23445,14477 +20211018,1335,23445,23450,23430,23450,38852 +20211018,1336,23445,23460,23440,23460,26378 +20211018,1337,23460,23460,23445,23450,18961 +20211018,1338,23445,23450,23440,23445,659 +20211018,1339,23440,23455,23440,23440,4911 +20211018,1340,23435,23440,23435,23435,8748 +20211018,1341,23435,23440,23425,23435,26241 +20211018,1342,23430,23430,23405,23405,23129 +20211018,1343,23405,23420,23405,23420,58896 +20211018,1344,23420,23420,23405,23405,39027 +20211018,1345,23405,23410,23400,23405,34598 +20211018,1346,23400,23405,23400,23400,16770 +20211018,1347,23400,23420,23395,23420,41280 +20211018,1348,23420,23425,23405,23410,25915 +20211018,1349,23405,23415,23400,23405,5660 +20211018,1350,23410,23410,23400,23405,2365 +20211018,1351,23405,23425,23405,23415,16789 +20211018,1352,23420,23420,23415,23420,7564 +20211018,1353,23420,23435,23420,23425,33702 +20211018,1354,23425,23425,23410,23420,12983 +20211018,1355,23415,23420,23415,23420,3940 +20211018,1356,23415,23415,23410,23410,12242 +20211018,1357,23410,23415,23405,23405,6385 +20211018,1358,23405,23425,23405,23410,12700 +20211018,1359,23405,23405,23380,23390,56921 +20211018,1400,23385,23385,23375,23380,5626 +20211018,1401,23375,23385,23360,23385,33447 +20211018,1402,23385,23390,23360,23360,20673 +20211018,1403,23365,23375,23360,23370,9004 +20211018,1404,23370,23390,23370,23390,11755 +20211018,1405,23390,23400,23380,23400,4840 +20211018,1406,23400,23420,23395,23410,64289 +20211018,1407,23410,23415,23405,23410,21750 +20211018,1408,23405,23410,23395,23405,34622 +20211018,1409,23405,23415,23400,23415,19387 +20211018,1410,23410,23420,23405,23415,24278 +20211018,1411,23415,23425,23410,23420,12338 +20211018,1412,23420,23430,23415,23430,17853 +20211018,1413,23435,23440,23430,23435,18476 +20211018,1414,23435,23440,23430,23430,14418 +20211018,1415,23430,23435,23425,23430,13857 +20211018,1416,23430,23455,23425,23450,27456 +20211018,1417,23450,23450,23435,23440,4187 +20211018,1418,23440,23440,23420,23425,24674 +20211018,1419,23425,23430,23415,23425,15852 +20211018,1420,23425,23425,23415,23420,7263 +20211018,1421,23425,23425,23415,23420,12309 +20211018,1422,23425,23425,23400,23400,18618 +20211018,1423,23405,23435,23405,23430,19286 +20211018,1424,23430,23430,23420,23430,11978 +20211018,1425,23430,23435,23430,23435,26040 +20211018,1426,23435,23440,23430,23435,34433 +20211018,1427,23430,23440,23425,23430,15433 +20211018,1428,23435,23435,23425,23430,17148 +20211018,1429,23435,23435,23420,23425,11445 +20211018,1430,23425,23425,23415,23420,21740 +20211018,1431,23425,23425,23420,23425,8116 +20211018,1432,23420,23420,23410,23410,13005 +20211018,1433,23420,23445,23420,23445,28863 +20211018,1434,23445,23445,23435,23440,16992 +20211018,1435,23440,23440,23430,23435,12646 +20211018,1436,23435,23450,23435,23445,26475 +20211018,1437,23445,23455,23440,23445,15510 +20211018,1438,23450,23450,23440,23445,1427 +20211018,1439,23450,23450,23430,23435,21845 +20211018,1440,23435,23435,23430,23435,10147 +20211018,1441,23435,23450,23435,23450,22367 +20211018,1442,23455,23460,23450,23455,15154 +20211018,1443,23455,23455,23430,23435,32625 +20211018,1444,23435,23435,23425,23430,7156 +20211018,1445,23430,23430,23425,23425,21282 +20211018,1446,23430,23430,23425,23425,9429 +20211018,1447,23425,23430,23425,23425,19158 +20211018,1448,23425,23425,23415,23425,7003 +20211018,1449,23425,23425,23415,23420,5992 +20211018,1450,23420,23420,23415,23420,2360 +20211018,1451,23415,23415,23405,23410,29280 +20211018,1452,23410,23425,23405,23415,16256 +20211018,1453,23415,23425,23415,23420,1345 +20211018,1454,23415,23420,23390,23390,39435 +20211018,1455,23395,23395,23385,23395,20918 +20211018,1456,23400,23420,23395,23415,21530 +20211018,1457,23415,23420,23410,23415,5712 +20211018,1458,23415,23415,23410,23415,656 +20211018,1459,23415,23415,23405,23410,5593 +20211018,1500,23410,23430,23410,23425,6557 +20211018,1501,23425,23425,23410,23420,9087 +20211018,1502,23420,23420,23405,23410,6995 +20211018,1503,23410,23420,23405,23410,3875 +20211018,1504,23405,23415,23395,23400,11200 +20211018,1505,23400,23405,23395,23400,3442 +20211018,1506,23400,23405,23385,23385,27623 +20211018,1507,23380,23380,23345,23350,106611 +20211018,1508,23350,23355,23340,23350,36992 +20211018,1509,23355,23355,23340,23340,35042 +20211018,1510,23345,23350,23340,23345,12818 +20211018,1511,23345,23360,23340,23355,56115 +20211018,1512,23355,23355,23320,23340,38581 +20211018,1513,23340,23355,23330,23335,25752 +20211018,1514,23335,23350,23335,23345,14455 +20211018,1515,23340,23350,23330,23330,26774 +20211018,1516,23340,23360,23330,23360,33951 +20211018,1517,23360,23365,23355,23360,7105 +20211018,1518,23360,23365,23355,23355,7081 +20211018,1519,23350,23370,23350,23360,33993 +20211018,1520,23360,23370,23355,23360,44099 +20211018,1530,23380,23380,23380,23380,122366