Skip to main content

pyEugene 📈

Publish to Pypi PyPI version Downloads Hits

Eugene Investment & Securities Champion Open Api Python Wrapper

Free software: MIT

Demo

Demo

Prerequisites 👓

  • Python 3.9.*
  • 32 Bit Development environment
  • Eugene Web Account (need Eugene securities account)

Introduction 💻

pyEugene is an unofficial python wrapper for easy use of the Champion Open API provided by Eugene Investment & Securities.

Even if you are not familiar with the functions below, you can use all of them.

  • The API structure of OCX provided by Eugene Investment & Securities
  • Operating Structure of the Version Processing Program Provided by Eugene Investment & Securities
  • Use dynamicCall function for function invocation in con>

한국어 소개 💻
pyEugene은 유진투자증권에서 제공하는 Champion Open API를 쉽게 사용하기 위한 비공식 python wrapper입니다.

아래의 기능들을 잘 모르더라도 충분히 모든 기능을 사용할 수 있습니다.

  • 유진투자증권에서 제공하는 OCX의 API 구조
  • 유진투자증권에서 제공하는 버전처리 프로그램의 작동 구조
  • 컨트롤에서 함수 호출을 위한 dynamicCall 함수 사용

Getting Started 🚀

To begin using pyEugene, start by installing anaconda(or you can use miniconda):

Download anaconda Download miniconda

When you're done installing the anaconda, run the anaconda prompt and set it to a 32-bit development environment

set CONDA_FORCE_32BIT=1

If you replace the anaconda with 32-bit, create a 32-bit virtual environment (You should use Python 3.9 version)

conda create --name py39_32 python=3.9

When you're done installing, activate virtual environment and use the pip to install pyEugene

conda activate py39_32
pip install pyeugene

Once you've installed pyEugene, you can start using it right away. For example, to get real-time stock price using pyEugene, enter the following code:

import sys
import os
from pprint import pprint
from dotenv import load_dotenv
from pyeugene.eugene_manager import EugeneManager

if __name__ == "__main__":
    load_dotenv()
    em = EugeneManager(os.getenv("USER_ID"), os.getenv("USER_PW"), os.getenv("CERT_PW"))

    real_cmd = {
        'realId': '21',
        'realKey': '005930',
        'output': ["SCODE", "SNAME", "CMARKETGUBUN", "LTIME", "CPCHECK", "LDIFF", "LCPRICE"]
    }

    em.put_real(real_cmd)
    for i in range(10):
        data = em.get_real()
        pprint(data)
    sys.exit()

한국어 사용 가이드 🚀

pyEugene을 사용하기 위해서는 아나콘다를 설치해야 합니다(미니콘다를 설치해 사용할 수도 있습니다)

아나콘다 다운로드 미니콘다 다운로드

아나콘다 다운로드가 완료 되었으면 아나콘다 프롬프트를 실행해 32bit 개발환경으로 설정해줘야 합니다

set CONDA_FORCE_32BIT=1

32bit로 설정이 완료 되었으면 32bit 가상 개발 환경을 만들어줍니다 (파이썬 3.9 버전을 사용해야 합니다)

conda create --name py39_32 python=3.9

설치가 모두 끝나면 가상환경을 실행하고 pip를 통해 pyEugene을 설치해줍니다

conda activate py39_32
pip install pyeugene

다음부터는 pyEugene을 설치하지 않고도 기능을 사용할 수 있습니다. 간단한 예시로 pyEugene을 이용해 실시간 시세를 받아오려면 아래 코드를 사용하면 됩니다

import sys
import os
from pprint import pprint
from dotenv import load_dotenv
from pyeugene.eugene_manager import EugeneManager

if __name__ == "__main__":
    load_dotenv()
    em = EugeneManager(os.getenv("USER_ID"), os.getenv("USER_PW"), os.getenv("CERT_PW"))

    real_cmd = {
        'realId': '21',
        'realKey': '005930',
        'output': ["SCODE", "SNAME", "CMARKETGUBUN", "LTIME", "CPCHECK", "LDIFF", "LCPRICE"]
    }

    em.put_real(real_cmd)
    for i in range(10):
        data = em.get_real()
        pprint(data)
    sys.exit()

Contributions 💬

Feel free to contribute to pyEugene fixing bugs.

If you have any problems, please contact me by e-mail(danielch0401@naver.com)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyeugene-1.1.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyeugene-1.1.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file pyeugene-1.1.2.tar.gz.

File metadata

  • Download URL: pyeugene-1.1.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.9.13 Windows/10

File hashes

Hashes for pyeugene-1.1.2.tar.gz
Algorithm Hash digest
SHA256 5233a649c01fafd2604d5732d3b734af5d55410382cd105c7517383c559c8ce5
MD5 b594419308c909714a13cd1f5017483c
BLAKE2b-256 3099783a4313a8e03a19ada75e86e163655e1239f30c131a20db34a76a870288

See more details on using hashes here.

File details

Details for the file pyeugene-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: pyeugene-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.9.13 Windows/10

File hashes

Hashes for pyeugene-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0f6794545675087586a43150eb18477a7f191937487e0833a0f0cbd42c05fe9
MD5 782c084c421f87cd17322276fe004fc5
BLAKE2b-256 bd60e526f2b3385448829cea57540d8046b24f9fa78b24e7aaed7ec09d63b693

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 files

1.0.1

2 files

1.0.0

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page