peerchemist / cryptotik Goto Github PK
View Code? Open in Web Editor NEWdeprecated
License: BSD 3-Clause "New" or "Revised" License
deprecated
License: BSD 3-Clause "New" or "Revised" License
Perhaps using async http://websockets.readthedocs.io/en/stable/intro.html
Thank you very much for Binance implementation! I am getting following error when I try to use it:
"TypeError: Can't instantiate abstract class Binance with abstract methods get_nonce"
.
"trades.do"
should be "future_trades.do"
in method def.
.
It should return deposit address and the message.
APIError should not be raised if remote API did not respond. Other messages are http and should be handled differently.
extract signature generation code from private_api and make it a separate method
For example Wex works differently when compared to Poloniex. With Poloniex base pair (BTC) goes first when you call the API and market pair comes second (XRP).
Implement a wrapper which would standardize this and make it all the same to library user.
https://coinmarketcap.com/api/
Price ticker feature sounds interesting, as well as the promise of past OHLC data.
This will break compatibility, but it's a necessary step to differentiate the margin orders from limit orders.
Allow class methods to communicate with the exchange via proxy.
This is example
polo.get_balances()
will get an error
>>> polo.get_balances()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: get_balances() missing 1 required positional argument: 'pair'
This works
>>> polo.get_balances('usdt')
'0.00000000'
>>> Poloniex.get_market_depth("btc-usd")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.4/site-packages/cryptotik/poloniex.py", line 179, in get_market_depth
asks = sum([Decimal(i[1]) for i in order_book["asks"]])
KeyError: 'asks'
This error message is because btc-usd doesn't exist (usdt-btc should be used). The error should be handled better. What should be printed is something like "pair doesn't exist"
Can you please also add Binance exchange API support?
>>> Poloniex.get_market_depth("usdt-btc")
{'bids': Decimal('1305402.021491549563469446713'), 'asks': Decimal('738.6224445900000004128204662')}
The result should not have Decimal(
Both can just be a front for existing get_orders method.
.
Bittrex has functioning version two of API, here is documentation: https://github.com/thebotguys/golang-bittrex-api/wiki/Bittrex-API-Reference-(Unofficial)
In [23]: rock.get_market_depth('btc-eur')
Out[23]:
{'asks': Decimal('9.019999999999999573674358543939888477325439453125'),
'bids': Decimal('8.96000000000000085265128291212022304534912109375')}
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.