Skip to main content

crypto-contract-value

Python bindings for the crypto-contract-value library.

Quickstart

Install,

pip3 install crypto-contract-value
from crypto_contract_value import MarketType, get_contract_value


assert get_contract_value("binance", MarketType['inverse_swap'], 'BTCUSD')== 100.0
assert get_contract_value("binance", MarketType['inverse_swap'], 'ETHUSD')== 10.0

How to build

On Mac OS X,

conda install --file requirements-dev.txt

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

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-contract-value-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-contract-value 0.0.2

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-contract-value 0.0.2
File Interpreter ABI Platform Actions
crypto_contract_value-0.0.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for crypto_contract_value-0.0.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
crypto_contract_value-0.0.2-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for crypto_contract_value-0.0.2-py3-none-macosx_11_0_x86_64.whl

Total release size: 5.5 MB

Release files / crypto_contract_value-0.0.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL crypto_contract_value-0.0.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.0 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
fa08fe79ea8a7ff893d482dd6a74921f81de477739a98bf165757d31c660f30f
BLAKE2b-256 checksum
How to use checksums
e4720dcc75bde9d924e937ed6def613e82c6e3e1678901c2cd4f7acfed3b33bf
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

Release files / crypto_contract_value-0.0.2-py3-none-macosx_11_0_x86_64.whl

Download URL crypto_contract_value-0.0.2-py3-none-macosx_11_0_x86_64.whl
Size 1.5 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
763dd6948739186c0654b53e570b47ab4b39279c7901074e446cbf4ae430680b
BLAKE2b-256 checksum
How to use checksums
92128ce7c68378ea072405a90f2faf2844265bc25b67a5363e880875f26791d4
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-contract-value 0.0.2

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

0.0.2 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