Skip to main content

Normalize cryptocurrency trading pairs

Project description

crypto-pair

Python bindings for the crypto-pair library.

Quickstart

Install,

pip3 install crypto-pair
from crypto_pair import normalize_pair

assert normalize_pair('BTCUSDT', 'binance') == 'BTC/USDT'

How to build

On Mac OS X,

conda install --file requirements-dev.txt

rm -rf build crypto-pair-ffi/target
python3 setup.py bdist_wheel

# Need to create a ~/.pypirc file first
twine upload --repository testpypi dist/*
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps crypto-pair

twine upload dist/*

For Linux,

docker run -it --rm -v $(pwd):/project soulmachine/rust:manylinux2014 bash

/opt/python/cp36-cp36m/bin/pip3 install -r requirements-dev.txt
rm -rf build crypto-pair-ffi/target
/opt/python/cp36-cp36m/bin/python3 setup.py bdist_wheel
auditwheel repair dist/*linux*.whl --plat manylinux2014_x86_64
/opt/python/cp36-cp36m/bin/twine upload --repository testpypi wheelhouse/*

Test

python3 setup.py develop
pytest -s

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

crypto_pair-2.3.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

File details

Details for the file crypto_pair-2.3.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for crypto_pair-2.3.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 21af673fd4eaefe8c289ba3079f20afc4c239bc093a5b856e4746b54c4db3f6f
MD5 ebc02799434f7f2a90ebbe6ed4ed8e5e
BLAKE2b-256 b2d55b17051c3b49b21ecb5a8419c1f37823149e6044fdb0c0c9bfd4cd64a54f

See more details on using hashes here.

Supported by

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