Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot run #6

Open
xyrobo opened this issue May 24, 2017 · 3 comments
Open

cannot run #6

xyrobo opened this issue May 24, 2017 · 3 comments

Comments

@xyrobo
Copy link

xyrobo commented May 24, 2017

When I downloaded your code, and perform your codes in my linux with python=2.7 , on jupyter notebook ,
and it doesn't make it.
please help me

DEBUG:socketIO-client:websocket.btcchina.com:80/socket.io [engine.io transport selected] xhr-polling
DEBUG:socketIO-client:websocket.btcchina.com:80/socket.io [engine.io heartbeat reset]

@xyrobo
Copy link
Author

xyrobo commented May 24, 2017

/home/daneel/anaconda3/envs/btchina/lib/python2.7/site-packages/socketIO_client/transports.pyc in get_response(request, *args, **kw)
176 response = request(*args, stream=True, **kw)
177 except requests.exceptions.Timeout as e:
--> 178 raise TimeoutError(e)
179 except requests.exceptions.ConnectionError as e:
180 raise ConnectionError(e)

TimeoutError: HTTPSConnectionPool(host='websocket.btcchina.com', port=443): Read timed out. (read timeout=60.0)

@xyrobo
Copy link
Author

xyrobo commented May 24, 2017

''' python
socketIO = SocketIO('websocket.btcchina.com', 80)
namespace = socketIO.define(Namespace)
namespace.emit('subscribe', 'marketdata_cnybtc')
namespace.emit('subscribe', 'marketdata_cnyltc')
namespace.emit('subscribe', 'grouporder_cnybtc')
namespace.emit('subscribe', 'grouporder_cnyltc')

payload = get_postdata()
arg = [json.dumps(payload), get_sign(payload)]
namespace.emit('private', arg)
socketIO.wait(seconds=20)
namespace.disconnect()

@silence-vin
Copy link
Contributor

@longzhixin please kindly switch your request domain from 'websocket.btcchina.com' to 'sio.btcc.com' or 'websocket.btcc.com'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants