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.
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
pip install hundred-x
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
git clone [email protected]:8ball030/hundred_x.git
cd hundred_x
make install
make fmt
make lint
make tests
For convience, all commands can be run with:
make all
Release
make release
8ball030 |
kjr217 |
thegeronimo |
Mihai |