노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.

yahoo finance 활용(2), 미국 주식 현재가와 비교 하기



* 문제점 : yahoo finance를 통해 얻는 정보가 실시간이 아니다.


0. 사전 준비


- install python 2.7 

- install yahoo finance ( >pip install yahoo-finance )

- install code editor : IDLE(python GUI), JetBrain PyCharm, Sublime Text3



1. 전체 코드 Flow 절차


- 구입 가격 리스트를 읽기 

  : HTS등에서 엑셀로 복사하고, csv(utf-8)로 저장


- 리스트의 Symbol값으로 yahoo finance의 share(stock정보)값을 읽기


- 비교후에 결과 출력하기



2. 실행결과





* 소스코드


블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,