Giter VIP home page Giter VIP logo

cryptotik's People

Contributors

i-petko avatar peerchemist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cryptotik's Issues

Binance

Can you please also add Binance exchange API support?

Standardize base-quote behaviour for all exchanges

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.

TheRock.get_market_depth returns gibberish

In [23]: rock.get_market_depth('btc-eur')
Out[23]:
{'asks': Decimal('9.019999999999999573674358543939888477325439453125'),
 'bids': Decimal('8.96000000000000085265128291212022304534912109375')}

get_market_depth for pairs that don't exist

>>> 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"

Binance Abstraction Issue

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"

get_market_depth result bug

>>> Poloniex.get_market_depth("usdt-btc")
{'bids': Decimal('1305402.021491549563469446713'), 'asks': Decimal('738.6224445900000004128204662')}

The result should not have Decimal(

README.md errors

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.