Enclave Python
This is the official Python SDK for Enclave Markets.
It provides a simple interface for interacting with the Enclave API.
Find our easy Colab Demo here.
Installation
pip install enclave
Usage
from enclave.client import Client
import enclave.models
client = Client("", "", enclave.models.PROD)
print(client.wait_until_ready()) # should print True
Perps Order
buy_order = client.perps.add_order(
client.perps.OrderParams(
market="BTC-USD.P",
side=enclave.models.BUY,
price=Decimal(42_000),
size=Decimal(0.1),
order_type=enclave.models.LIMIT
)
)
Examples
See the examples directory for more examples.
Rest API examples can be found in intro.py.
Run from the root directory with python -m examples.intro.
Websocket API examples can be found in wsintro.py.
Run from the root directory with python -m examples.wsintro.
Hosted demo on Google Colab for ease of use, including expected output.
Support
Supports Python 3.8+.
Metadata
Release files for enclave 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| enclave-0.3.4.tar.gz | 15.7 kB | Without provenance | Details for enclave-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| enclave-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for enclave-0.3.4-py3-none-any.whl |
Total release size: 35.8 kB
Release files / enclave-0.3.4.tar.gz
| Download URL | enclave-0.3.4.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e389e4e518ef523539d508462b7eb23b82a100984385fe82733c37522b215ed2
|
|
BLAKE2b-256 checksum How to use checksums |
a2691032dcb5c6f9bf106f0e49b0a8dc24f570eca1df9ca63c366c328fd6ce2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.8.18 Linux/6.11.0-1018-azure
|
Release files / enclave-0.3.4-py3-none-any.whl
| Download URL | enclave-0.3.4-py3-none-any.whl |
|---|---|
| Size | 20.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95d7eca7f8a05c1c6c8285273ae7b17749f3390bf701bf4d8ad4a8f86caaa3ad
|
|
BLAKE2b-256 checksum How to use checksums |
2a48f589c4f61f5a7a57d5d891640e74cdfcfa837b8fb16500142afdc6c956c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.8.18 Linux/6.11.0-1018-azure
|
Security for enclave 0.3.4
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.