Metadata-Version: 2.4
Name: rivermarkets
Version: 0.1.0
Summary: Python SDK for the River Markets API
Author-email: River Markets <support@rivermarkets.com>
License-Expression: MIT
Project-URL: Homepage, https://rivermarkets.com
Project-URL: Documentation, https://docs.rivermarkets.com
Project-URL: Repository, https://github.com/rivermarkets/rivermarkets-python-sdk
Project-URL: Issues, https://github.com/rivermarkets/rivermarkets-python-sdk/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.24.0
Requires-Dist: pydantic>=2.0
Requires-Dist: typing_extensions>=4.0

# River Markets Python SDK

Python SDK for the [River Markets API](https://docs.rivermarkets.com).

## Installation

```bash
pip install rivermarkets
```

## Usage

```python
from rivermarkets import RiverMarkets

client = RiverMarkets(api_key="your_api_key")

# Search markets
results = client.markets.search_markets(q="bitcoin")

# Place an order
order = client.orders.create_order(
    subaccount_id="...",
    river_id=4552150,
    order_type="LIMIT",
    time_in_force="GTC",
    buy_flag=True,
    price=0.50,
    qty=10,
)

# Cancel an order
client.orders.cancel_order(order_id="...")
```

### Async

```python
from rivermarkets import AsyncRiverMarkets

client = AsyncRiverMarkets(api_key="your_api_key")
results = await client.markets.search_markets(q="bitcoin")
```
