Skip to main content

Python lib for bx.in.th market

Project description

Description

Python library for bx.in.th api.

Requirements

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/config_test.py 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.

Source Distribution

bxinth-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bxinth-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file bxinth-0.1.1.tar.gz.

File metadata

  • Download URL: bxinth-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bxinth-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a9344e5ada764b6cbbdf93a24dc25830ec6b6a93a23884579f9874ef3b3630d5
MD5 862560c88820b9be3f173f015cef28cd
BLAKE2b-256 ae9ef5ce37801a099876dec47aa28e63492ef3a204144afc91e8132e4bcc07d1

See more details on using hashes here.

File details

Details for the file bxinth-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for bxinth-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d144867a75263fd57b2f54445b7a49eda7774bc9ff021b8f91b78d23aba610db
MD5 2fe2287793e01ce24609cefd51469de2
BLAKE2b-256 df07bb3527963d47cd27ce91e075ea9926343a5a96db6c07e7c5d97ba1013828

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page