Skip to main content

Python lib for market

Project description

# Library for

## Description
Python library for api.

## Requirements
- [python 3.6+](
- [pyotp](
- [requests](

## Installation
$ pip install bxinth

## Usage
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/ file with
API_KEY = 'api_key'
API_SECRET = 'api_secret'
OTP = 'otp'

and run

$ python -m unittest

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bxinth, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size bxinth-0.1.2-py3-none-any.whl (4.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size bxinth-0.1.2.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page