Comments (6)
It worked. thanks for help me out. Appreciate it.
from yliveticker.
I'm looking into it. Do you get any errors?
from yliveticker.
No errors. Just blank - no output.
from yliveticker.
Fixed in new release v0.2.8. Update the package and feel free to reopen the issue if the problem persists.
from yliveticker.
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.
@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)
- Need help to use the output of yliveticker and save to database HOT 2
- Is this still working HOT 2
- is there any existing code collecting data to generate pandas time series HOT 4
- "GC=F" doesn't work sometimes
- Connection is already closed. ### connection is closed### HOT 7
- FUTURES not UPDATING HOT 1
- messages should be printed to stderr
- Updating 'ticker_names' in real time
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yliveticker.