분류 전체보기
-
비트코인은 하루 중 몇시에 가장 가격이 쌀까?투자 2022. 10. 24. 02:31
비트코인이 나스닥을 따라다니고 나스닥은 유럽장 영향도 받고, 21시 30분에 발표되는 지표는 나스닥에 영향을 주고, 22:30분에는 미국 주식시장 개장도 하고 등등 비트코인의 가격이 하루 안에서 뭔가 싸이클이 돌지 않을까 하는 느낌이 든다. 아침에 아시아장 열리면서 비실비실대다가(한중일 주식시장이 망해가고 있으니) 15~16시쯤에 바닥을 찍고, 16시에 유럽장 열리면서 유럽 상태가 멀쩡하면 슬금슬금 오르는 듯한 느낌이 들어서 데이터를 들여다봤다. (나는 pandas를 잘 쓸 줄 모른다. 구글링 해가며 겨우겨우 했다.) 결론: 틀렸다. 일단 바이낸스 5분봉을 가지고 왔다. 2022년만 받았어야 되는데 2017년 데이터까지 다 받았다. df5 = pd.read_json('freqtrade/user_data/..
-
[KBS 드라마] 커튼콜 몇부작? 월화드라마 커튼콜: 나무는 서서 죽는다드라마 2022. 10. 21. 15:45
강하늘, 하지원 주연의 새 월화 드라마 '커튼콜' (연출 윤상호/ 극본 조성걸) 10월 31일 밤 9시 50분에 KBS2 첫 방송 예정이다. 유재헌 (20대 후반~30대초) / 강하늘 고아 출신의 무명배우. 모든 게 부족한 채 살아온 인생과는 다르게 자기애와 자존감이 넘치는 긍정적이고 낙관적인 성격의 소유자. 박세연 (30대) / 하지원 ‘호텔낙원’의 막내딸이자 총지배인(GM). 현재 ‘호텔 낙원’을 이끌고 있는 실질적인 경영자. 호텔의 밑바닥부터 총지배인이 된 사람. 자금순 (90대) / 고두심 국내 굴지의 호텔 체인 ‘호텔낙원’의 설립자이자 총수. 1930년 함경도에서 태어나 10대에 광복을 맞이하고 6.25 전쟁으로 20대를 시작하며 격동의 한국사를 온몸으로 체험했다. 배동제 (30대 후반) / 권..
-
파이썬 버전별 문자열 형식화(string formatting) 방법컴퓨터 2022. 10. 20. 10:52
파이썬에는 문자열 형식화 방법이 3개정도 되는 것 같다. 예제를 보면 바로 알 수 있는 것들이라 설명은 생략한다. python 3.6 : f-strings var1 = "문자열" var2 = 30 f"{var1}, {var2}" python 3: string.format(value1, value2...) format메서드는 파이썬 3에 처음 나왔지만 이후에 파이썬 2.6이후 버전에도 추가되었다고 한다. "{}, {}".format("문자열",숫자) python 2.6 이하: format specifier(=% 연산자) 파이썬 2.6이하에서 유일한 문자열 형식 지정방법이라고 한다. 현재 버전의 파이썬에서도 사용가능하다. '%s, %d' % ('문자열',30)
-
[정동마켓] 덕수궁 돌담길 정동마켓, 10월 정동의 달 시월정동 개최꿀팁 2022. 10. 6. 15:00
10월은 정동의 달, 시월정동 축제가 10/6 ~ 8 3일간 개최된다. 시월정동 축제는 개막행사, 티켓투어, 정동마켓, 복식체험, 풍류마당 등 다양한 프로그램이 진행된다. 10월 6일 오전 11:30 퓨적국악팀 케이페라 린의 개막행사 & 오후 12시부터 1시간 동안 개막 퍼레이드 정동의 다양한 기관을 투어하는 시간여행 티켓투어도 운영된다. (티켓투어는 티켓북을 수령한 후 미션 기관에서 인증샷 촬영을 한 뒤 티켓을 받으면 된다고 한다.) 미션은 오전 10시부터 오후 5시 매시 정각, 30분마다 기관 정문에서 진행되며 5곳 이상의 기관 티켓을 모아 정동공원에 방문하면 다양한 기념품이 제공된다. 덕수궁 돌담길에서는 액세서리, 생활한복, 양말인형, 타로 등 정동마켓이 운영되며, 정동공원에서는 복식체험의 기회로 ..
-
파이썬으로 웹소켓 서버 돌리기컴퓨터 2022. 10. 2. 02:20
웹 프론트엔드가 데이터를 실시간으로 보내기 위해 파이썬으로 웹소켓 서버를 구성해 보았다. 웹서버는 sanic을 사용했고, pub/sub기능을 사용하기 위해 redis(인메모리 DB)를 사용했다. (처음에 fastapi, websocket패키지만 사용해서 해봤지만 자꾸 Broken pipe에러가 발생해서 포기했다.) 대강의 구조는 아래와 같다. (웹소켓이나 pub/sub기능쪽에서 원래 사용하는 용어는 잘 모른다.) 데이터는 데이터 생성자에서 사용자쪽으로 흘러간다. fastapi,websocket 패키지로 대충 해보려던 시도가 끝나고, 뭔가 다른 방식이 있나 검색해보다 뭔가 있어 보이는 코드를 발견했다. 코드 가져다가 그냥 돌려보고 싶으나 귀찮게도 웹서버 돌리는 부분이 없고, 테스트해볼 클라이언트 코드도 없..
-
9월 22일은 미국 금리 결정일(FOMC)... 비트코인 살아 남을까?투자 2022. 9. 18. 03:52
폭락을 가져온 CPI에 이어 9월 22일은 미국 금리 결정일이다... 또 무슨일이 일어날까... 75bp인상 확률이 높아보이지만, 100bp 인상할 가능성도 조금 있는 것 같다. (결론: 3개월치 차트를 보니까 왕창 또는 살짝 내리고 급등해버린다. 굳이 아래로 내려가서 차트를 볼 필요가 없음) 금리발표때 마다 나스닥 선물과 비트코인이 무슨 난리를 쳤는지 알아보자. (5월부터 7월까지만 알아보겠다...대충 비슷하겠지..) 일단 5월5일 어린이날 03시 부근의 나스닥 100 이미니 선물 10분봉 차트이다. 금리인상 폭이 예측치와 일치했다. 금리발표되고(화면 하단 03:00과 일치하는 봉부터) 내려가다가 뭐가 그렇게 신났는지 급등했다가 다음날 더 내렸다. 다음은 5월 5일 03시 부근의 바이낸스 BTCUSDT..