-
Notifications
You must be signed in to change notification settings - Fork 65
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
[Question] Python websocket client example #6
Comments
+1 here |
what OS are you guys using and what version of py? |
I am on mac OSX 10.11, python 2.7 (conda environment). The code above gives me Thanks! |
Hi, what's wrong with the above code is that I tried again with this slight modification:
But I get a "403 Key/Secret Pair Failed". I just created that key/secret pair on coinigy. This is the full output:
Thanks for the help! |
I just tried Maxs code with my key and it worked |
Had the same problem. Once I bought a paid coinigy subscription, it started working. |
I can authenticate, but I can't find any examples on how to actually do anything. Would someone be kind enough to show how to subscribe (and print, for example) the data from a ticker pair, or the private channel, or ... well, anything really. |
After you have authenticated you can emit the same commands used in all the other examples regardless of programming language such as "subscribe" |
Thanks ByronAP, but I'm pretty new to this stuff. I'm pretty sure I've subscribed, but I'm not sure on how to receive the data/object. For example if I have |
If anyone would be kind enough to send me an example of this code doing something (subscribing, using the emitted data to log the prices, etc.) I'd be more than happy to tip them a bit of BTC or ETH... |
Any updates guys for a full working example ?! and if possible to add different channels to same socket connection ?! regards |
|
The above works for me using python 3.6. Hope that helps :) |
Anyone who finds this because they were searching for how to do the auth with Java (using the io.github.sac library), pulling their hair out in frustration as to why it works in every language except Java, desperate for help, please feel free to profit from my 16h debugging marathon. You need to actually send an "org.json.JSONObject" as the second parameter to auth, like so (below code is Scala, feel free to adjust for Java):
Sending a Json String yourself does not work. Sending a Map<String,String> does not work either. What works is sending the JSONObject. |
I'm having trouble establishing a websocket connection on this endpoint
wss://sc-02.coinigy.com/socketcluster/
.I'm using a socketcluster compatible client https://github.com/sacOO7/socketcluster-client-python.
Here is a short code snippet I'm using to connect to the websocket endpoint.
Steps to reproduce
pip install git+git://github.com/sacOO7/socketcluster-client-python.git
python ws.py
Expected behavior
The websocket client successfully authenticates with the server and establishes a websocket connection
Actual behavior
The websocket client does not authenticate with the server and never establishes a websocket connection
Potential solution
I think a python websocket client example would solve my problem and be a great addition to this repo.
Thanks in advance.
The text was updated successfully, but these errors were encountered: