-
Notifications
You must be signed in to change notification settings - Fork 125
'Queue' object is not callable. Authenticated #145
Comments
I've also been working on this most of today. With minimal success, I've used this.
It may be that your The problem with this implementation that I can't currently figure out is I can get one initial snapshot of my positions but it's missing things like profit/loss as those are coming back as null. From the docs this needs to be fixed with a calc but I don't know how to implement that in this system or where the rest of the responses are going. |
I have now the same issue as you, there is smth similar in issue #101 , take a look at it, I ll look at it later today |
I got quite a bit further.
Here's my code to make a live ticker of the current profit loss percentage as that's what I'm interested in mainly. I've left in some of my 'debugging' comments as they may be useful to you or anyone else who stumbles across this in future. (At 1 second intervals it usually gets the ticker but once a minute you may get a null response)
|
I keep getting this error:
I guess this is because of the dev/master branch thing, I've installed btfxwss with pip and then just cloned dev branch separately, but it seems still not to work, how did u install it? |
I solved that and what I am getting now is:
|
I'm not sure. Can I look at some more code? All I could recommend is make sure you're using wss.account() instead of without the () wss.account won't work |
|
I use
so your wss = client.BtfxWss(key,secret) may not be working correctly. Try importing like that. |
I ve manually imported client.py and other files because account() is only in dev branch and btfxwss |
wss.authenticate()
positions_q = wss.positions()
print(positionss_q.get())
added to README code and error is: 'Queue' object is not callable
The text was updated successfully, but these errors were encountered: