Skip to main content

langchain-quantoracle

63 deterministic quant calculators + 10 composite workflows for LangChain agents. Options pricing, risk metrics, portfolio optimization, technical indicators, statistics, crypto/DeFi, FX/macro, strategy backtesting, rebalance planning, options strategy selection, hedging recommendations, and more.

Install

pip install langchain-quantoracle

Usage

from langchain_quantoracle import QuantOracleToolkit

# Load all tools (63 calculators + 10 composites)
tools = QuantOracleToolkit().get_tools()

# Or filter by category
tools = QuantOracleToolkit(categories=["options", "risk", "backtest"]).get_tools()

# Use with any LangChain agent
from langchain_openai import ChatOpenAI
from langchain.agents import AgentExecutor, create_tool_calling_agent
from langchain_core.prompts import ChatPromptTemplate

llm = ChatOpenAI(model="gpt-4o")
prompt = ChatPromptTemplate.from_messages([
    ("system", "You are a quant analyst. Use QuantOracle tools for all financial math."),
    ("human", "{input}"),
    ("placeholder", "{agent_scratchpad}"),
])

agent = create_tool_calling_agent(llm, tools, prompt)
executor = AgentExecutor(agent=agent, tools=tools)
result = executor.invoke({"input": "Price a call option: spot 100, strike 105, 6 months, 20% vol"})

Self-hosted

tools = QuantOracleToolkit(api_url="http://localhost:8000").get_tools()

Categories

options, derivatives, risk, indicators, simulate, portfolio, fixed-income, fi, stats, crypto, fx, macro, tvm, trade, pairs, backtest, hedging

Paid endpoints (x402)

After 1,000 free calls/day, or for composite workflows (paid-only), payments are handled via x402 micropayments in USDC on Base or Solana. Any x402-compatible wallet (AgentCash, Coinbase AgentKit, etc.) works. The toolkit transparently forwards the X-Source: langchain header so traffic shows up correctly in usage metrics.

Links

Metadata

Release files for langchain-quantoracle 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-quantoracle 0.2.0
File Size Uploaded Provenance Actions
langchain_quantoracle-0.2.0.tar.gz 6.3 kB Without provenance Details for langchain_quantoracle-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-quantoracle 0.2.0
File Interpreter ABI Platform Actions
langchain_quantoracle-0.2.0-py3-none-any.whl Python 3 none any Details for langchain_quantoracle-0.2.0-py3-none-any.whl

Total release size: 12.8 kB

Release files / langchain_quantoracle-0.2.0.tar.gz

Download URL langchain_quantoracle-0.2.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
24d71a4fd9caf7663bdf5842b46f9e59e6e93e59f3ccff76bdda73008097af1d
BLAKE2b-256 checksum
How to use checksums
11cef13572edb70c44946d0ec5019ab526954cc34ffeb16c82af25c86fb0cbd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / langchain_quantoracle-0.2.0-py3-none-any.whl

Download URL langchain_quantoracle-0.2.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af768e019d4e6bf4eb22a9cb84f1a0cf5f872111a95b48daf171a7b9923edab5
BLAKE2b-256 checksum
How to use checksums
f9009e125c8163050359dde991b300e32e154d857ea3e5c40fd2d9acaa7f9529
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for langchain-quantoracle 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page