Git Product home page Git Product logo

Comments (6)

krazykoder avatar krazykoder commented on May 27, 2024 1

It worked. thanks for help me out. Appreciate it.

from yliveticker.

alparamonov avatar alparamonov commented on May 27, 2024

I'm looking into it. Do you get any errors?

from yliveticker.

krazykoder avatar krazykoder commented on May 27, 2024

No errors. Just blank - no output.

from yliveticker.

alparamonov avatar alparamonov commented on May 27, 2024

Fixed in new release v0.2.8. Update the package and feel free to reopen the issue if the problem persists.

from yliveticker.

krazykoder avatar krazykoder commented on May 27, 2024

Still not working. I do get the message "### connection is open ###" but no updates after that. Details below

  (venv3) ~/code/python/pythonic/compilation$ python -V
  Python 3.8.0
  (venv3) ~/code/python/pythonic/compilation$ pip list | grep live
  yflive                0.1.2
  yliveticker           0.2.8
  (venv3) ~/code/python/pythonic/compilation$ python liveTICK.py
  ### connection is open ###

The code is same as you posted in examples:

import yliveticker

# this function is called on each ticker update
def on_new_msg(msg):
#   print ("Hello")
    print(msg)

yliveticker.YLiveTicker(on_ticker=on_new_msg, ticker_names=["AAPL", "AMZN", "AMAT"])

from yliveticker.

alparamonov avatar alparamonov commented on May 27, 2024

@krazykoder thanks for posting. The issue was no longer with the package itself, but with the example in readme. Please, check the new client code or readme example.

So, instead of the old code snippet, use this:

import yliveticker


# this function is called on each ticker update
def on_new_msg(ws, msg):
    print(msg)


yliveticker.YLiveTicker(on_ticker=on_new_msg, ticker_names=[
    "BTC=X", "^GSPC", "^DJI", "^IXIC", "^RUT", "CL=F", "GC=F", "SI=F", "EURUSD=X", "^TNX", "^VIX", "GBPUSD=X", "JPY=X", "BTC-USD", "^CMC200", "^FTSE", "^N225"])

And also don't forget to update to v0.2.9

pip install yliveticker==0.2.9

Please, let me know if it worked for you.

from yliveticker.

Related Issues (9)

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.