This is a lightweight Python client for the meXBT exchange API. It doesn't try and do anything clever with the JSON response from the API, it simply returns it as-is.
pip install mexbt
If you only need to access public data, you don't need to configure credentials:
from mexbt import Mexbt
api = Mexbt(pair='btcmxn') # You can actually leave this out as btcmxn is the default
If you want to access private data, configure credentials like this:
from mexbt import Mexbt
api = Mexbt(public_key='foo', private_key='bar', user_id='123', sandbox=True)
api.ticker()
api.orders()
api.trades()
api.currency_pairs()
api.create_order(1234.56, pair='btcmxn', side='buy', order_type='market')
api.cancel_order(123)
api.cancel_all_orders()
api.modify_order(123, 'move_to_top')
api.modify_order(123, 'execute_now')
api.account_info()
api.account_balance()
api.account_orders()
api.account_trades(start_index=-1, count=10)
api.account_addresses()
api.withdraw(1.23456789, 'foo')
Thanks to GP at Coinapult who wrote 99.99% of this client :)