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.0.tar.gz
(35.0 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.0.tar.gz.
File metadata
- Download URL: rivermarkets-0.1.0.tar.gz
- Upload date:
- Size: 35.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22e845c303515916df6ab4da57850947866d3125338fcce2cbe8f54b68d1cb19
|
|
| MD5 |
b55538e0363ab674cb2c1574029ed40c
|
|
| BLAKE2b-256 |
ab2cfe7a4556963157f83560c9fdb2bbaeb2c17125b33b10d87fcceeae7d36f6
|
File details
Details for the file rivermarkets-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rivermarkets-0.1.0-py3-none-any.whl
- Upload date:
- Size: 71.4 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 |
7ac9ddbdb5912cd4e6065abdfb31011989df4dddd0cc1c78bdf5626baf607eeb
|
|
| MD5 |
81a174e2ff5aa604603c40b809582a42
|
|
| BLAKE2b-256 |
b864ea50f128b40918f80c101ab5c81d396b0a606e96da25b5e3a2725a52ee46
|