Python API link to 'efriend expert'
Project description
pyefriend
python을 이용하여 한국투자증권 OpenAPI에 연동하여 트레이딩이 가능한 모듈입니다. eFriendPy를 참고하여 만든 코드를 재해석하여 구성하였습니다.
Table of contents
Warning
- pyefriend, rebalancing 코드는 개인 투자 목적으로 사용하거나 스터디 용도로만 사용하실 수 있습니다.
- pyefriend는 한국투자증권 Expert 표준 API Reference Guide(2021-11-09 업데이트))를 참고하여 작성하였습니다.
- pyefriend 코드는 Window 환경에서만 작동합니다.(Window 10에서 개발 진행)
- 한국투자증권 공식홈페이지에서 OpenAPI 신청 후 eFriend Expert를 다운받아 관리자 권한으로 실행해야 정상 작동합니다.
- Python 3의 32bit 버전에서만 정상 작동합니다.
- python3.x-32bit를 공식홈페이지에서 설치한 후 해당 python을 통해 가상환경(
virtualenv)를 구성하여 설치하는 것을 권장합니다.
- python3.x-32bit를 공식홈페이지에서 설치한 후 해당 python을 통해 가상환경(
- Python도 마찬가지로 관리자 권한으로 실행해야 합니다.
cmd를 관리자 권한으로 실행한 후 가상환경을 활성화한 후 실행(jupyter notebook)- Pycharm을 사용할 경우 Pycharm을 관리자 권한으로 실행한 뒤 Terminal에서 실행 가능합니다.
Requirements
| version | |
|---|---|
| PyQt5 | 5.15.6 |
| pywinpty | <1,>=0.5 |
| jupyter | 1.0.0 |
| notebook | 6.4.5 |
| ipython | 7.29.0 |
| numpy | 1.21.4 |
| pandas | 1.3.4 |
| sqlalchemy | 1.4.26 |
Getting started
pip install pyefriend
Rebalancing
-
pyefriend를 활용하여 투자 리밸런싱을 진행하는 모듈입니다.
-
config.yml 에서 계정
Process
-
refresh: DB 주식 시세 최신화
-
planning: 매수, 매도 수량 책정
-
re-balance: 현재 수량과 비교하여 주문
-
visualize:
ETC
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pyefriend-1.0.1-py3-none-any.whl
(35.7 kB
view details)
File details
Details for the file pyefriend-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pyefriend-1.0.1-py3-none-any.whl
- Upload date:
- Size: 35.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49b41bcb30c596f1abd9209cab828c2b62dc0dc8f51e3858dda851ef3ec65d5c
|
|
| MD5 |
2826ab4e47cdaa2710b72bfec562f30a
|
|
| BLAKE2b-256 |
c84e432427085ffd5265aabb1bc6b4952da45b34d4d1b3449f25e1f7103a006d
|