dpx-sdk
Python SDK for DPX Protocol — compliance-grade stablecoin settlement rail with native LangChain and LlamaIndex toolkits.
pip install dpx-sdk # core client
pip install "dpx-sdk[langchain]" # + LangChain toolkit
pip install "dpx-sdk[llamaindex]" # + LlamaIndex ToolSpec
pip install "dpx-sdk[all]" # everything
Quick start
from dpx_sdk import DPX
with DPX() as dpx:
# Check oracle before settling
oracle = dpx.oracle_status()
print(oracle.status, oracle.recommendation) # STABLE PROCEED
# Get a binding quote
quote = dpx.quote(amount_usd=500_000, has_fx=True, esg_score=75)
print(f"Net: ${quote.net_amount_usd:,.2f} Fee: {quote.total_fee_pct:.3f}%")
# Execute in sandbox (safe default)
result = dpx.settle(
amount=500_000,
source_currency="USD",
destination_currency="EUR",
recipient_address="0xYourRecipientAddress",
sandbox=True, # set False for live execution
)
print(result.status, result.settlement_id)
LangChain
from dpx_sdk.tools import DPXToolkit
from langchain.agents import initialize_agent, AgentType
from langchain_openai import ChatOpenAI
tools = DPXToolkit().get_tools()
agent = initialize_agent(tools, ChatOpenAI(), agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION)
agent.run("Check oracle stability, get a quote for $1M USD→EUR, and screen the counterparty 0x123...")
Available tools: dpx_oracle_status · dpx_esg_score · dpx_compliance_screen · dpx_quote · dpx_settle
LangChain Hub: untitledfinancial/dpx-toolkit
LlamaIndex
from dpx_sdk.tools import DPXToolSpec
from llama_index.agent.openai import OpenAIAgent
tools = DPXToolSpec().to_tool_list()
agent = OpenAIAgent.from_tools(tools, verbose=True)
agent.chat("Get a quote for $500K USD to EUR and execute in sandbox mode")
Available functions: get_settlement_quote · execute_settlement · get_oracle_status · get_esg_score · screen_compliance
LlamaIndex Hub: untitledfinancial/dpx-tool-spec
MCP (Claude / Cursor)
npx @untitledfinancial/dpx-mcp
32 MCP tools for Claude Desktop and Cursor. Setup →
Links
Metadata
Release files for dpx-sdk 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dpx_sdk-0.3.0.tar.gz | 16.6 kB | Without provenance | Details for dpx_sdk-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dpx_sdk-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for dpx_sdk-0.3.0-py3-none-any.whl |
Total release size: 35.7 kB
Release files / dpx_sdk-0.3.0.tar.gz
| Download URL | dpx_sdk-0.3.0.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3bf6488a5769296f9cc8bada279408926d38d48890844e9413516f707d10c12c
|
|
BLAKE2b-256 checksum How to use checksums |
28815350b3c91545715a1e0e3366e1f0ea054ec38bc9d2ce812f1d435419775b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / dpx_sdk-0.3.0-py3-none-any.whl
| Download URL | dpx_sdk-0.3.0-py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae8351dcf1d5ee1c68476afe6e4073ad8da097a65d41bdc853264dcf5cfcd111
|
|
BLAKE2b-256 checksum How to use checksums |
0d9af40aaee602fc67a4d0453c3e4f54af90884aab86329a5fb8074a6ffe55e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for dpx-sdk 0.3.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.