Opinion CLOB SDK (Tech Preview)
Technology Preview Release - BNB Chain Support
Python SDK for interacting with Opinion prediction markets via the CLOB (Central Limit Order Book) API.
Features
- Market data queries (markets, orderbooks, prices, candles)
- Order management (place, cancel, query orders)
- Position and balance tracking
- Smart contract interactions (split, merge, redeem)
- Support for BNB Chain mainnet (chain ID 56)
Installation
pip install opinion_clob_sdk
Quick Start
from opinion_clob_sdk import Client
client = Client(
host='https://proxy.opinion.trade:8443',
apikey='your_api_key',
chain_id=56, # BNB Chain mainnet
rpc_url='https://bsc-dataseed.binance.org',
private_key='your_private_key',
multi_sig_addr='your_multi_sig_address'
)
# Get markets
markets = client.get_markets(page=1, limit=10)
# Get orderbook
orderbook = client.get_orderbook(token_id='token_id')
# Place an order
from opinion_clob_sdk.chain.py_order_utils.model.order import PlaceOrderDataInput
from opinion_clob_sdk.chain.py_order_utils.model.sides import OrderSide
from opinion_clob_sdk.chain.py_order_utils.model.order_type import LIMIT_ORDER
order_data = PlaceOrderDataInput(
marketId=123,
tokenId='token_id',
side=OrderSide.BUY,
orderType=LIMIT_ORDER,
price='0.5',
makerAmountInQuoteToken=10
)
result = client.place_order(order_data)
Metadata
Release files for opinion-clob-sdk 0.7.0
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 |
|---|---|---|---|---|
| opinion_clob_sdk-0.7.0.tar.gz | 88.6 kB | Without provenance | Details for opinion_clob_sdk-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opinion_clob_sdk-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for opinion_clob_sdk-0.7.0-py3-none-any.whl |
Total release size: 176.7 kB
Release files / opinion_clob_sdk-0.7.0.tar.gz
| Download URL | opinion_clob_sdk-0.7.0.tar.gz |
|---|---|
| Size | 88.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ac12784912ed3b5b77758946b907c7a6dc0a65280c484b7bdb9f6642c6dce26
|
|
BLAKE2b-256 checksum How to use checksums |
424e663b55bda0e7681d0d64428333e7d5832aa8033b7ce5f541d89c1c58d078
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / opinion_clob_sdk-0.7.0-py3-none-any.whl
| Download URL | opinion_clob_sdk-0.7.0-py3-none-any.whl |
|---|---|
| Size | 88.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e438773d3bdabdb5bb0cd66d1747e6c0e11f18ced41255d459e94f0493aa58c7
|
|
BLAKE2b-256 checksum How to use checksums |
a1a30df613709a1ec4b4da1c1e969e25e7c8d33aff0bb0cd37acba4c471eb4c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for opinion-clob-sdk 0.7.0
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.