nanvel / aiobittrex Goto Github PK
View Code? Open in Web Editor NEWBittrex API python async wrapper
License: MIT License
Bittrex API python async wrapper
License: MIT License
Hi.
I'm trying to fetch account updates:
import asyncio
import aiobittrex
creds = dict(
api_key='...',
api_secret='...'
)
async def main():
s = aiobittrex.BittrexSocket(**creds)
async for msg in s.listen_account():
print(msg)
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Getting error:
Traceback (most recent call last):
File "/opt/pycharm-professional/helpers/pydev/pydevd.py", line 1664, in <module>
main()
File "/opt/pycharm-professional/helpers/pydev/pydevd.py", line 1658, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/opt/pycharm-professional/helpers/pydev/pydevd.py", line 1068, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/opt/pycharm-professional/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/ape364/test/aiobitra/bittrex_ws_test.py", line 26, in <module>
loop.run_until_complete(main())
File "/usr/lib/python3.7/asyncio/base_events.py", line 568, in run_until_complete
return future.result()
File "/home/ape364/test/aiobitra/bittrex_ws_test.py", line 20, in main
async for msg in s.listen_account():
File "/home/ape364/test/venv/lib/python3.7/site-packages/aiobittrex/socket.py", line 186, in listen_account
messages=[[self.api_key, signature]]):
File "/home/ape364/test/venv/lib/python3.7/site-packages/aiobittrex/socket.py", line 153, in _listen
raise BittrexError(message=decoded_message['E'])
aiobittrex.errors.BittrexError: BittrexError: There was an error invoking Hub method 'c2.Authenticate'.
Tried on both 0.0.4 and 0.1.0 versions of aiobittrex. Is this a server-side problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.