Skip to main content

100x

A Python client for the 100x API, providing a convenient wrapper to interact with the API.

Installation

pip install hundred-x

Usage

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

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

# List available products
products = client.list_products()
print(products) 

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

# Place an order
order = client.place_order(
    symbol="ethperp",
    side="BUY",
    order_type="LIMIT",
    post_only=False,
    size="0.1",
    price="1800",
    limit_fee_rate="0.001"
)
print(order)

For asynchronous usage, refer to 'examples/async_client.py'.

Development

Prequisites

Setup

  1. Clone the repository:
git clone https://github.com/8ball030/hundred_x.git &&cd hundred_x
  1. Create a development environment:
poetry install && poetry shell

Development Commands

# Format Code
make fmt

# Lint Code
make lint

# Run Tests
make tests

# Run all checks
make all

# Create a new release
make release

Docker Environemnt

# Build Docker Image
docker buildx build --platform linux/amd64 . -t test

# Run tests in Docker
docker run -v (pwd):/app -it test

Contributing

Contributors

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

Metadata

Release files for hundred-x 0.1.29

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hundred-x 0.1.29
File Size Uploaded Provenance Actions
hundred_x-0.1.29.tar.gz 11.0 kB Without provenance Details for hundred_x-0.1.29.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hundred-x 0.1.29
File Interpreter ABI Platform Actions
hundred_x-0.1.29-py3-none-any.whl Python 3 none any Details for hundred_x-0.1.29-py3-none-any.whl

Total release size: 23.1 kB

Release files / hundred_x-0.1.29.tar.gz

Download URL hundred_x-0.1.29.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4ffe7e7cda080ef20d03af25b6ddbd215d8b5835c8fa84d86fcd29146bb41ac8
BLAKE2b-256 checksum
How to use checksums
99111ac63ebc978047dcfc3098f30d52cc1ed88fd7c0099f132a38e2656cac15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / hundred_x-0.1.29-py3-none-any.whl

Download URL hundred_x-0.1.29-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b4e7a8a10b4423d806612529d9648fec37d54a94fc5ad6f24b6c33a9e05d319
BLAKE2b-256 checksum
How to use checksums
6987f03d07e31c19d2bef4185d195e85cd41c6fd283009ce9be736a7578c01a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Security for hundred-x 0.1.29

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.

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