# 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)
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
Project details
Release history Release notifications | RSS feed
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.20.tar.gz
(9.4 kB
view details)
Built Distribution
File details
Details for the file hundred_x-0.1.20.tar.gz
.
File metadata
- Download URL: hundred_x-0.1.20.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c490fd94fdabddb7a652c494784a74b96af9e687df2222444f345a281ff956af |
|
MD5 | d3adb080fb5c9693c001e79362b1dbb0 |
|
BLAKE2b-256 | 80e155659f47641de86478795240add9ce6604f9ec8ad75af4dbed878e167355 |
File details
Details for the file hundred_x-0.1.20-py3-none-any.whl
.
File metadata
- Download URL: hundred_x-0.1.20-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb689b7b4de3e268f7e91563630c1f399f8c2b5bc1641ca360225436ecbfc571 |
|
MD5 | 01d484e961e03516b904e51698027f06 |
|
BLAKE2b-256 | 41fbff6e5fce9dc37796ec88cd70375b0c5b9a7f8a73a71490eda0dbe5d528c0 |