Skip to main content

# hundred_x

Project description

100x Python Client

This is a Python client for the 100x API. It is a simple wrapper around the API, and provides a convenient way to interact with the API from Python.

The client offers a number of methods to interact with the API.

Usage

from hundred_x.client import HundredXClient
from hundred_x.enums import Environment

DEFAULT_SYMBOL="ethperp"

client = HundredXClient(
    private_key="your_private_key",
    environment=Environment.PROD
)

# Get the current price of a symbol
products = client.list_products()
print(products) 

# Get the current price of a symbol
price = client.get_product(DEFAULT_SYMBOL)
print(price)

Fopr a demonstration of the async client please refer to the file in examples/async_client.py

Installation

pip install hundred-x

Running a dockerised environment

docker buildx build --platform linux/amd64 . -t test
# now we have the dependencies installed,
# we can mount the current directory and run the tests against the dockerised environment
docker run -v (pwd):/app -it test

Development

Installation

git clone git@github.com:8ball030/hundred_x.git
cd hundred_x
make install

Formatting

make fmt

Linting

make lint

Tests

make tests

For convience, all commands can be run with:

make all

Releasing

Release

make release

Contributors

8ball030/
8ball030
kjr217/
kjr217
thegeronimo/
thegeronimo
Mihai/
Mihai

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

hundred_x-0.1.27.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

hundred_x-0.1.27-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file hundred_x-0.1.27.tar.gz.

File metadata

  • Download URL: hundred_x-0.1.27.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for hundred_x-0.1.27.tar.gz
Algorithm Hash digest
SHA256 25373b19798b69685d70d14f6fbff2f4c8aa40a9d337904b5490e8e259def34e
MD5 d0bdcfbb0eef4c30a436fe399cc668f8
BLAKE2b-256 8e22ce64fbc5fbf65391d90b624758c59828a87ff7546880c7d6d3c88476f5f9

See more details on using hashes here.

File details

Details for the file hundred_x-0.1.27-py3-none-any.whl.

File metadata

  • Download URL: hundred_x-0.1.27-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for hundred_x-0.1.27-py3-none-any.whl
Algorithm Hash digest
SHA256 8254ee50df51459c0fb15c40c0dbe0ebcdc57a9de98d98c20f47328f5ae41cfd
MD5 1adc58302c3c3dec7021e819fee86632
BLAKE2b-256 f37701c1ee7c9cca2529ad3b6151c393b9efde49ea4e8f82859ca0d5dac261ad

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