Python SDK for the River Markets API
Project description
River Markets Python SDK
Python SDK for the River Markets API.
Installation
pip install rivermarkets
Usage
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
from rivermarkets import AsyncRiverMarkets
client = AsyncRiverMarkets(api_key="your_api_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
rivermarkets-0.1.1.tar.gz
(36.9 kB
view details)
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.1.1.tar.gz.
File metadata
- Download URL: rivermarkets-0.1.1.tar.gz
- Upload date:
- Size: 36.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e439f39dbdee2fadf278d0de183a890c7411c14cc8410380acbf15478b417a3d
|
|
| MD5 |
766f2051e1710df2cedff16d7cbbe914
|
|
| BLAKE2b-256 |
8b0ac6c8614a6888c925b4fac2beec0c633bf6296f3f01316c0f2049779ff729
|
File details
Details for the file rivermarkets-0.1.1-py3-none-any.whl.
File metadata
- Download URL: rivermarkets-0.1.1-py3-none-any.whl
- Upload date:
- Size: 77.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78bcf0d5db21a90c47878949a74539e049a502e4493434693726f64e26fcba3d
|
|
| MD5 |
0d3f036e6dae0cb4a89f45fb1e88267f
|
|
| BLAKE2b-256 |
5183b6530bcc4d13e7c986ba3da1aaf76285c3c8485132530b8245a42dc1a890
|