Skip to content

meXBT/mexbt-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

meXBT Python client

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.

Install

pip install mexbt

Setup

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)

Public API

api.ticker()
api.orders()
api.trades()
api.currency_pairs()

Private API

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')

Acknowledgements

Thanks to GP at Coinapult who wrote 99.99% of this client :)

About

A lightweight python client for the meXBT exchange API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages