Python SDK for the River Markets API
Project description
River Markets Python SDK
Python SDK for the River Markets API.
Installation
pip install rivermarkets
Authentication
The SDK authenticates with Ed25519 request signing. Create an API key in
Settings → API Keys; you'll get a Key ID (UUID) and a base64-encoded
private key (shown once at creation). Pass both to the client — every
request is signed transparently via X-River-Key-Id, X-River-Timestamp,
and X-River-Signature headers.
Usage
from rivermarkets import RiverMarkets
client = RiverMarkets(
key_id="YOUR_KEY_ID",
private_key="YOUR_BASE64_PRIVATE_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
from rivermarkets import AsyncRiverMarkets
client = AsyncRiverMarkets(
key_id="YOUR_KEY_ID",
private_key="YOUR_BASE64_PRIVATE_KEY",
)
results = await client.markets.search_markets(q="bitcoin")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rivermarkets-0.5.0.tar.gz.
File metadata
- Download URL: rivermarkets-0.5.0.tar.gz
- Upload date:
- Size: 49.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9876629e9d468a62029ff54bdac0b2ea2820d8bf01b3251fa84d3ef32edbd1f3
|
|
| MD5 |
9b05506770481e3c42333083192a0c05
|
|
| BLAKE2b-256 |
c252e2db88faf5142b3a241fac17afb26cd73d69b57cec23555e3f0bf2d0546f
|
File details
Details for the file rivermarkets-0.5.0-py3-none-any.whl.
File metadata
- Download URL: rivermarkets-0.5.0-py3-none-any.whl
- Upload date:
- Size: 94.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aebdd676ad1496b1526270105c7488b9de39ecac16b490c9e3c3b72c96f3c5b4
|
|
| MD5 |
4a2c30f0895fdcdb92da52ba32bd7774
|
|
| BLAKE2b-256 |
feebd16e20e6d5018caed244abc5f3d81ac7c5f0df8ed482e3dfa096f9d10919
|