63 deterministic quant computation tools for LangChain agents
Project description
langchain-quantoracle
63 deterministic quant computation tools for LangChain agents. Options pricing, risk metrics, portfolio optimization, technical indicators, statistics, crypto/DeFi, FX, macro, and more.
Install
pip install langchain-quantoracle
Usage
from langchain_quantoracle import QuantOracleToolkit
# Load all 63 tools
tools = QuantOracleToolkit().get_tools()
# Or filter by category
tools = QuantOracleToolkit(categories=["options", "risk"]).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
Links
- API docs: https://api.quantoracle.dev/docs
- GitHub: https://github.com/QuantOracledev/quantoracle
- 1,000 free calls/day, no signup
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 langchain_quantoracle-0.1.0.tar.gz.
File metadata
- Download URL: langchain_quantoracle-0.1.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b696f7a5e9b823019ed5659120265bdd274ddcf42cddeb8df5da491a7039c4c
|
|
| MD5 |
2557b2215a0c1e93433476b7f27dcfcc
|
|
| BLAKE2b-256 |
fd2cf2ade93f65c76554e407dd6316b3c0201f4d81b56ababb670a9fc3d6e8b8
|
File details
Details for the file langchain_quantoracle-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langchain_quantoracle-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7eafc1083dc846fd8d2d0a1b04490a76923d38b7a57040ec971e08dff00a25f
|
|
| MD5 |
f54b9f8277af2f974dc44419e1aea36b
|
|
| BLAKE2b-256 |
06a4d7fdba89bd177f09dcf98368e07b425beb774bc7b1f7a50dd43d9d424c3b
|