A Python library for Siften.
Project description
Siften
A Python library for Siften.
Installation
pip install siften
Quick Start
from siften import execute_strategy
# Execute a trading strategy
strategy_result = execute_strategy(
user_id="user123",
agent_id="agent456",
symbol="BTCUSDT",
quantity=0.001,
exchange="Binance",
strategy="Trend Following",
stop_loss=0.02, # 2% stop loss
profit_take=0.05 # 5% take profit
)
Trading Strategy Execution
The execute_strategy function allows you to implement trading strategies with customizable parameters:
| Parameter | Type | Description |
|---|---|---|
| user_id | str | User identifier |
| agent_id | str | Agent identifier |
| symbol | str | Trading pair symbol |
| quantity | float | Trading quantity |
| exchange | str | Exchange name |
| strategy | str | Strategy name |
| stop_loss | float | Stop loss percentage |
| profit_take | float | Take profit percentage |
| time_left | int | Remaining execution time (optional) |
| request_id | str | Unique request identifier (optional) |
Development
# Create virtual environment
python -m venv venv
source venv/bin/activate
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
siften-0.1.0.tar.gz
(24.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
siften-0.1.0-py3-none-any.whl
(29.3 kB
view details)
File details
Details for the file siften-0.1.0.tar.gz.
File metadata
- Download URL: siften-0.1.0.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e676229d861a8595a6af156a5145ffd549783f8d79c1f4d1acfdd1da57828c11
|
|
| MD5 |
a0f845674be5afe966294c1229510715
|
|
| BLAKE2b-256 |
43a06e09f0403eca25339d67be963e3016052fc7d36ab42f53096bd7bb4a9ad3
|
File details
Details for the file siften-0.1.0-py3-none-any.whl.
File metadata
- Download URL: siften-0.1.0-py3-none-any.whl
- Upload date:
- Size: 29.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc2aeea30d6586c715a8098cf3f1a585b492ee20c4c7e6975d388c5d0862ec9d
|
|
| MD5 |
31eff0a24323fc92971434bbcc7bde71
|
|
| BLAKE2b-256 |
db76c29bcbbe620225645a369393dac07f71a0e9f0718e790b7a271878a5b583
|