Python SDK for H|psi Quantum Finance APIs.
Project description
HPSI Python REST SDK
The hpsilab-mcp Python package currently wraps the hosted hpsilab.com REST API.
The Python SDK currently wraps the hosted REST API. Some MCP-only tools are not yet available through REST endpoints.
Installation
pip install hpsilab-mcp
Quick Start
from hpsilab_mcp import HpsiMcpClient
client = HpsiMcpClient()
calls = {
"analyze_stock": client.analyze_stock("NVDA"),
"get_ai_prediction": client.get_ai_prediction("NVDA"),
"get_iv_radar": client.get_iv_radar("NVDA"),
"get_option_pressure": client.get_option_pressure("NVDA"),
"get_monte_carlo": client.get_monte_carlo("NVDA"),
"get_equity_curves": client.get_equity_curves("NVDA"),
"generate_stock_images": client.generate_stock_images("NVDA"),
"generate_stock_research_report": client.generate_stock_research_report("NVDA"),
}
print(calls["analyze_stock"])
Version
import hpsilab_mcp
print(hpsilab_mcp.__version__)
Authenticated Usage
from hpsilab_mcp import HpsiMcpClient
client = HpsiMcpClient(
api_key="YOUR_API_KEY",
base_url="https://hpsilab.com",
)
result = client.get_ai_prediction("TSLA")
print(result)
REST SDK Methods
client.get_ai_prediction("NVDA")
client.analyze_stock("NVDA")
client.get_iv_radar("NVDA")
client.get_option_pressure("NVDA")
client.get_monte_carlo("NVDA")
client.get_equity_curve("NVDA")
client.get_equity_curves("NVDA")
client.generate_stock_images("NVDA")
client.generate_stock_research_report("NVDA")
Endpoint mapping:
| Method | Endpoint |
|---|---|
analyze_stock(symbol) |
GET /api/analyze_stock/{symbol} |
get_ai_prediction(symbol) |
GET /api/ai_prediction/{symbol} |
get_iv_radar(symbol) |
GET /api/iv_batch?symbols={symbol} |
get_option_pressure(symbol) |
GET /api/option_pressure/{symbol} |
get_monte_carlo(symbol) |
GET /api/monte_carlo/{symbol} |
get_equity_curve(symbol) |
GET /api/equity_curve/{symbol} |
get_equity_curves(symbol) |
GET /api/equity_curve/{symbol} |
generate_stock_images(symbol) |
POST /api/stock_report/{symbol}/images |
generate_stock_research_report(symbol) |
POST /api/stock_report/{symbol}/research_report |
Capability Matrix
| Capability | REST API | MCP |
|---|---|---|
analyze_stock |
Yes | Yes |
get_ai_prediction |
Yes | Yes |
get_iv_radar |
Yes | Yes |
get_option_pressure |
Yes | Yes |
get_monte_carlo |
Yes | Yes |
get_equity_curve |
Yes | No |
get_equity_curves |
Yes | Yes |
generate_stock_images |
Yes | Yes |
generate_stock_research_report |
Yes | Yes |
MCP Transport
All official MCP tools now have REST SDK coverage. Use an MCP-compatible client when you specifically need MCP transport, tool discovery, or assistant-native tool calls.
Scope
This package is a REST API wrapper. It does not implement MCP transport, SSE, streaming, tool discovery, Claude integration, or proprietary finance logic.
These tools return research-oriented information. They are not financial advice.
License
MIT. See LICENSE.
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
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 hpsilab_mcp-0.3.0.tar.gz.
File metadata
- Download URL: hpsilab_mcp-0.3.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19e6f789257c5e452c81583ed3dfe45ccd2b10dde945932aac5f650edb043d49
|
|
| MD5 |
ce10825496923d51c452f85dc7082388
|
|
| BLAKE2b-256 |
69ae3374bdb1b7dc34775ec81c075d3686e2e7d711506cc9095e052ee64a88f7
|
File details
Details for the file hpsilab_mcp-0.3.0-py3-none-any.whl.
File metadata
- Download URL: hpsilab_mcp-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf6b92bf8b96c365c6dc6885b311a52c2ca2f8732ba42a1e908c6de00e0c7149
|
|
| MD5 |
d0c6f2e1e22ef0556b5ee341bc8cf746
|
|
| BLAKE2b-256 |
526ce51b324b2ea77aa6bcd618d499d840de2a27bfd267b2ab4cc065dc297ba4
|