한국투자증권 주식매매프로그램 만들기

파이썬 주식매매프로그램 만들기

미국 주식 프로그램 만들기(KIS Developers)/2. 필요한 함수 추가 4

17) RSI 지표 추가

import requests import json import yaml import time import websockets #pip install websockets import asyncio import pandas as pd #pip install pandas from pandas import DataFrame with open(r'config.yaml', encoding='UTF-8') as f: _cfg = yaml.load(f, Loader=yaml.FullLoader) APP_KEY = _cfg['APP_KEY'] APP_SECRET = _cfg['APP_SECRET'] ACCESS_TOKEN = "" CANO = _cfg['CANO'] ACNT_PRDT_CD = _cfg['ACNT_PRDT..

16) 이동평균선 추가

import requests import json import yaml import time import websockets #pip install websockets import asyncio import pandas as pd #pip install pandas from pandas import DataFrame with open(r'config.yaml', encoding='UTF-8') as f: _cfg = yaml.load(f, Loader=yaml.FullLoader) APP_KEY = _cfg['APP_KEY'] APP_SECRET = _cfg['APP_SECRET'] ACCESS_TOKEN = "" CANO = _cfg['CANO'] ACNT_PRDT_CD = _cfg['ACNT_PRDT..

15) 일목균형표 지표 추가

import requests import json import yaml import time import websockets #pip install websockets import asyncio import pandas as pd #pip install pandas from pandas import DataFrame with open(r'config.yaml', encoding='UTF-8') as f: _cfg = yaml.load(f, Loader=yaml.FullLoader) APP_KEY = _cfg['APP_KEY'] APP_SECRET = _cfg['APP_SECRET'] ACCESS_TOKEN = "" CANO = _cfg['CANO'] ACNT_PRDT_CD = _cfg['ACNT_PRDT..

14) 해외주식기간별 시세 json -> df

import requests import json import yaml import time import websockets #pip install websockets import asyncio import pandas as pd #pip install pandas from pandas import DataFrame with open(r'config.yaml', encoding='UTF-8') as f: _cfg = yaml.load(f, Loader=yaml.FullLoader) APP_KEY = _cfg['APP_KEY'] APP_SECRET = _cfg['APP_SECRET'] ACCESS_TOKEN = "" CANO = _cfg['CANO'] ACNT_PRDT_CD = _cfg['ACNT_PRDT..

반응형