An unofficial Python implementation of the latest Open API for big.one exchange.
pip install bigone
for example:
>>> api = 'your-api'
>>> secret = 'your-secret'
>>> from bigone.client import BigOneClient
>>> cli = BigOneClient(api, secret)
>>> markets = cli.get_markets()
>>> market = markets[0]
>>> market
<Market (uuid=d2185614-50c3-4588-b146-b8afe7534da6,quoteScale=8,quoteAsset=<Quoteasset (uuid=0df9c3c3-255a-46d7-ab82-dedae169fba9,symbol=BTC,name=Bitcoin)>,name=BTG-BTC,baseScale=4,baseAsset=<Baseasset (uuid=5df3b155-80f5-4f5a-87f6-a92950f0d0ff,symbol=BTG,name=Bitcoin Gold)>)>
>>> market.name
'BTG-BTC'
>>> len(markets)
112
if you don't like the python object-like style data accessing, you can simply use the raw response, they are just dict and list objects:
>>> cli = BigOneClient(api, secret, raw_response=True)
>>> markets = cli.get_markets()
>>> market = markets[0]
>>> market
{'uuid': 'd2185614-50c3-4588-b146-b8afe7534da6', 'quoteScale': 8, 'quoteAsset': {'uuid': '0df9c3c3-255a-46d7-ab82-dedae169fba9', 'symbol': 'BTC', 'name': 'Bitcoin'}, 'name': 'BTG-BTC', 'baseScale': 4, 'baseAsset': {'uuid': '5df3b155-80f5-4f5a-87f6-a92950f0d0ff', 'symbol': 'BTG', 'name': 'Bitcoin Gold'}}
>>> cli.ping()
<Bigobject (timestamp: 1529986424481114000)>
cli.get_all_tickers()
cli.get_ticker('ETH-BTC')
cli.get_order_book('ETH-BTC')
cli.get_trades('ETH-BTC')
cli.get_markets()
cli.account_info()
cli.get_orders('ETH-BTC', side='BID', state='CANCELLED')
cli.order_detail(12232)
cli.create_order(market_id='ETH-BTC', side='BID', price='0.12', amount='2')
cli.cancel_order(11232)
cli.cancel_all_order()
cli.my_trades('ETH-BTC')
cli.withdrawals(first=10)
cli.deposit(first=20)