Metadata-Version: 1.1
Name: bxinth
Version: 0.1.1
Summary: Python lib for bx.in.th market
Home-page: https://github.com/AHAPX/bxin
Author: AHAPX
Author-email: anarchy.b@gmail.com
License: MIT
Download-URL: https://github.com/AHAPX/bxin/archive/v0.1.1.tar.gz
Description: Library for bx.in.th
        ====================
        
        Description
        -----------
        
        Python library for bx.in.th api.
        
        Requirements
        ------------
        
        -  `python 3.6+ <https://www.python.org/download/releases/3.6.0/>`__
        -  `pyotp <https://github.com/pyotp/pyotp>`__
        -  `requests <https://github.com/requests/requests/>`__
        
        Installation
        ------------
        
        .. code:: bash
        
           $ pip install bxinth
        
        Usage
        -----
        
        .. code:: python
        
           from bxinth import BxIn, pairs
        
        
           bx = BxIn('api_key', 'api_secret', 'otp')
           # get orderbook
           book = bx.orderbook(pairs.THBBTC)
           bids = book['bids']
           asks = book['asks']
        
           # make order
           order_id = bx.order(pairs.THBBTC, 1, 33000)['order_id']
        
           # cancel order
           bx.cancel(pairs.THBBTC, order_id)
        
        Testing
        -------
        
        Add src/config_test.py file with
        
        .. code:: python
        
           API_KEY = 'api_key'
           API_SECRET = 'api_secret'
           OTP = 'otp'
        
        and run
        
        .. code:: bash
        
           $ python -m unittest
        
Keywords: crypto,bx,bitcoin
Platform: UNKNOWN
