semvec/pypi-packages huggingface dataset:
basilisp 0.5.0
A Clojure-like lisp written for Python
Requires Python: >=3.10

# 🐍 basilisp 🐍

A Clojure-compatible(-ish) Lisp dialect targeting Python 3.10+.

[![PyPI](https://img.shields.io/pypi/v/basilisp.svg?style=flat-square)](https://pypi.org/project/basilisp/) [![python](https://img.shields.io/pypi/pyversions/basilisp.svg?style=flat-square)](https://pypi.org/project/basilisp/) [![pyimpl](https://img.shields.io/pypi/implementation/basilisp.svg?style=flat-square)](https://pypi.org/project/basilisp/) [![readthedocs](https://img.shields.io/readthedocs/basilisp.svg?style=flat-square)](https://basilisp.readthedocs.io/) [![Run tests](https://github.com/basilisp-lang/basilisp/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/basilisp-lang/basilisp/actions/workflows/run-tests.yml) [![Coveralls github](https://img.shields.io/coveralls/github/basilisp-lang/basilisp.svg?style=flat-square)](https://coveralls.io/github/basilisp-lang/basilisp) [![license](https://img.shields.io/github/license/basilisp-lang/basilisp.svg?style=flat-square)](https://github.com/basilisp-lang/basilisp/blob/master/LICENSE) [![Slack](https://img.shields.io/badge/Slack-Clojurians-green?style=flat-square)](https://clojurians.slack.com/archives/C071RFV2Z1D)

## Getting Started

Basilisp is developed on [GitHub](https://github.com/basilisp-lang/basilisp) and
hosted on [PyPI](https://pypi.python.org/pypi/basilisp). You can fetch Basilisp
using `pip`:

```bash
pip install basilisp
```

Once Basilisp is installed, you can enter into the REPL using:

```bash
basilisp repl
```

Basilisp [documentation](https://basilisp.readthedocs.io) can help guide your
exploration at the REPL. Additionally, Basilisp features many of the same functions
and idioms as [Clojure](https://clojure.org/), so you may find guides and
documentation there helpful for getting started.

For those who prefer a video introduction, feel free to check out this
[talk](https://youtu.be/ruGRHYpq448?si=0jr2a6uWlq6Vi2_k) hosted by the
[London Clojurians](https://www.meetup.com/london-clojurians/) group about Basilisp.

## Why does this project exist?

Basilisp is a project I (@chrisrink10) created to learn about Python, Clojure,
hosted  languages, and compilers.

That said, it is generally stable at this point with reasonably high test
coverage, linting, and type checking. Work is ongoing to complete the rest of the
standard library implementations. I suspect it could be used to build small
applications and tools at this point, though I would not recommend it unless you
like being an early adopter.

_Use in a production setting at your own risk._

## License

Eclipse Public License 1.0
opinion-clob-sdk 0.6.0
Opinion CLOB SDK (Tech Preview) - Python SDK for Opinion Prediction Market Central Limit Order Book API
Requires Python: >=3.9.10
Keywords: PredictionMarket, CLOB, Trading, Blockchain, BNBChain, BSC, Opinion


# 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

```bash
pip install opinion_clob_sdk
```

## Quick Start

```python
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)
```