# 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 |
kjr217 |
thegeronimo |
Mihai |
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.26.tar.gz
(10.8 kB
view details)
Built Distribution
File details
Details for the file hundred_x-0.1.26.tar.gz
.
File metadata
- Download URL: hundred_x-0.1.26.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b1d5fe93dfdd9276d2a89ae0bc775d86f112bb9e02f698308053920d9d957b4 |
|
MD5 | 792baa3f935320531e2c0b6a604a5eb6 |
|
BLAKE2b-256 | 2e01fe00e35f684dd53f1e106eb60b8f9630ae346a2105079038e305761791af |
File details
Details for the file hundred_x-0.1.26-py3-none-any.whl
.
File metadata
- Download URL: hundred_x-0.1.26-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f1b5352a78d1b73382115a52f37bcb68b35601bc09e45190a6ade94bff99f9b |
|
MD5 | 9baf19575da2405cad19e76e4fe48a8c |
|
BLAKE2b-256 | cd242b7dbe7b083686183310274833927e6e81be749fcdc405d8322fdbf4006d |