Python SDK for agents.systemr.ai - AI-native risk intelligence for trading agents
Project description
systemr
Python SDK for agents.systemr.ai — AI-native risk intelligence for trading agents.
Install
pip install systemr
Quick Start
from systemr import SystemRClient
client = SystemRClient(api_key="sr_agent_...")
# Position sizing ($0.003)
result = client.calculate_position_size(
equity="100000",
entry_price="185.50",
stop_price="180.00",
direction="long",
)
print(result["shares"], result["risk_amount"])
# Risk validation ($0.004)
risk = client.check_risk(
symbol="AAPL",
direction="long",
entry_price="185.50",
stop_price="180.00",
quantity="100",
equity="100000",
)
print(risk["approved"], risk["score"])
# Strategy evaluation ($0.10 - $1.00)
eval_result = client.basic_eval(r_multiples=["1.5", "-1.0", "2.3", "-0.5", "1.8"])
print(eval_result["g_score"], eval_result["verdict"])
API Reference
Agent Management
client.get_info()— Get agent infoclient.list_agents()— List owner's agentsclient.update_mode(mode)— Change mode (sandbox/live/suspended/terminated)
Position Sizing
client.calculate_position_size(equity, entry_price, stop_price, direction)— G-formula sizing ($0.003)
Risk Validation
client.check_risk(symbol, direction, entry_price, stop_price, quantity, equity)— Iron Fist validation ($0.004)
Evaluation
client.basic_eval(r_multiples)— G metric + verdict ($0.10)client.full_eval(r_multiples)— G + rolling G + System R Score ($0.50)client.comprehensive_eval(r_multiples)— Full analysis + impact ($1.00)
Billing
client.get_pricing()— Operation prices (no auth)client.get_balance()— Current USDC balanceclient.deposit(amount)— Record depositclient.get_transactions()— Transaction historyclient.get_usage()— Usage summary
Authentication
Register at agents.systemr.ai to get an API key. All paid operations are billed in USDC.
License
MIT
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
systemr-1.0.0.tar.gz
(4.5 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 systemr-1.0.0.tar.gz.
File metadata
- Download URL: systemr-1.0.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a9183eecfec415ac9ff4ec545a5c96a5cbea03713f8c387da22fefb4fff7eea
|
|
| MD5 |
63350407b934d5c2f0106433cde876d8
|
|
| BLAKE2b-256 |
6b646ec79761216f3b6269d05eee7524659e9db1f0f4ba715afb2da14b86bcf3
|
File details
Details for the file systemr-1.0.0-py3-none-any.whl.
File metadata
- Download URL: systemr-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45f4b6ce3b5e1a7bf75c2c24559650768ba69c94266950fdd9f2cca372da1442
|
|
| MD5 |
b9392a2ef89866a6708310f3990424bb
|
|
| BLAKE2b-256 |
15a117717e7fb247567e4a322275d8a72bc55adc8ee210af829fb93e695fbd2e
|