Giter Club home page Giter Club logo

Comments (2)

elbakramer avatar elbakramer commented on August 25, 2024 1
  • 공유주신 코드 조각이나 설명으로는 문제가 뭔지 정확히 파악이 어렵습니다.
    실제로 동작 가능해서 다른 사람이 재현 가능한 수준의 코드 혹은 더 구체적인 설명이 필요해 보입니다.
  • 직관적으로 봤을 때 KOAPY 에 기능적인 이슈가 있다기 보단 단순 사용법에 대한 문의로 보여집니다.
    추후 사용법과 관련된 질문들은 Issues 탭 보다는 Discussions 탭을 활용하시는 걸 추천 드립니다.
  • 코드에서 확인되는 실시간조건식/실시간데이터 API 각각이 따로 반환하는 stream 두개를 단순하게 하나의 for 루프로 처리하기는 어렵습니다. 위의 코드 예시에서는 정확하지 않지만 뭔가 뒤쪽의 stream 할당이 앞의 stream 변수를 덮어쓰는 것처럼 보이는데요. 이러면 당연히 둘 중 하나의 이벤트밖에 처리할 수 없습니다.
  • 대신 각 stream 을 threading/multiprocessing 등을 통해 별도로 처리하면서 둘 사이의 coordination 을 위해 messaging/queueing 등을 도입하시는 것도 한가지 방법이라 생각됩니다.
  • 실시간 조건식에서 반환하는 종목코드에 대해서 실시간 데이터를 얻는 걸 원하시는 거라면 말씀 주신 것처럼 실시간조건식 > SetRealReg > 실시간데이터 흐름이 맞아 보입니다.
  • 다만 실시간조건식이 반환하는 값에 따라 실시간데이터의 대상이 되는 종목코드 목록이 동적으로 바뀌는 환경으로 보이기 때문에 위의 GetRealDataForCodesAsStream() 함수보다는 BidirectionalRealCall() 따위의 함수를 활용하는 것도 좋아 보입니다.

from koapy.

llIllIllllIIIlllllll avatar llIllIllllIIIlllllll commented on August 25, 2024

실시간조건식 > SetRealReg > 실시간realdata 순서가 이렇게 되는건가요? SetRealReg 이걸 꼭해줘야 realdata로 받을 수 있나요?

from koapy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.