Skip to main content

crypto-markets

Python bindings for the crypto-markets library.

Quickstart

Install,

pip3 install crypto-markets
from crypto_markets import MarketType, fetch_markets

markets = fetch_markets("binance", MarketType['inverse_swap'])

assert len(markets) > 0
market = markets[0]
assert market['exchange'] == 'binance'
assert market['market_type'] == 'inverse_swap'

How to build

On Mac OS X,

conda install --file requirements-dev.txt

rm -rf build crypto-markets-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-markets

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-markets-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

Metadata

Release files for crypto-markets 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for crypto-markets 1.0.5
File Interpreter ABI Platform Actions
crypto_markets-1.0.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for crypto_markets-1.0.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
crypto_markets-1.0.5-py3-none-macosx_10_9_x86_64.whl Python 3 none macOS 10.9+ x86-64 Details for crypto_markets-1.0.5-py3-none-macosx_10_9_x86_64.whl

Total release size: 6.4 MB

Release files / crypto_markets-1.0.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL crypto_markets-1.0.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.5 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
ff6c3ddda004988745e7ff598abeb1c278c43b3eace03e479df2d9df2c5f2fe7
BLAKE2b-256 checksum
How to use checksums
504e0f919d32d888656cab3886b00d9d36d319632b72ae5022c6b17ca4ea851d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.0.4 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

Release files / crypto_markets-1.0.5-py3-none-macosx_10_9_x86_64.whl

Download URL crypto_markets-1.0.5-py3-none-macosx_10_9_x86_64.whl
Size 2.0 MB
Tags Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
56dc28dd52df2f5ccbc11457cf8886b72c0526873754e51fab08d39e83429026
BLAKE2b-256 checksum
How to use checksums
47834c42d0b54ec508684df7973fccd0d34823bf19b17065ecc83aa111419150
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

Security for crypto-markets 1.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page