blocksize-agent-tools
Blocksize live market data (VWAP and bid/ask for crypto and equities) as read-only tools for Python agent frameworks. Calls go to https://mcp.blocksize.info: a stable agent ID gets the standard starter allowance, after that each call is paid per request through x402. Responses keep Blocksize timestamps and citation metadata.
Install
pip install blocksize-agent-tools # core client only, no dependencies
pip install "blocksize-agent-tools[langchain]"
pip install "blocksize-agent-tools[llamaindex]"
pip install "blocksize-agent-tools[openai-agents]"
Set a stable agent ID (at least 8 characters) with BLOCKSIZE_AGENT_ID, or pass agent_id= to any builder.
Core client
from blocksize_agent_tools import BlocksizeHTTPClient, BlocksizePaymentRequired
client = BlocksizeHTTPClient("my-research-agent-01")
try:
print(client.get_vwap("BTC-USD"))
except BlocksizePaymentRequired as exc:
print("x402 challenge:", exc.payment_required)
LangChain
from langchain.agents import create_agent
from blocksize_agent_tools.langchain import build_blocksize_tools
agent = create_agent("openai:gpt-5", tools=build_blocksize_tools("my-research-agent-01"))
LlamaIndex
from llama_index.core.agent.workflow import FunctionAgent
from blocksize_agent_tools.llamaindex import build_blocksize_tools
agent = FunctionAgent(tools=build_blocksize_tools("my-research-agent-01"), llm=llm)
OpenAI Agents SDK
from agents import Agent
from blocksize_agent_tools.openai_agents import build_blocksize_tools
agent = Agent(name="Markets", tools=build_blocksize_tools("my-research-agent-01"))
Docs and pricing: https://mcp.blocksize.info
Metadata
Release files for blocksize-agent-tools 0.1.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 |
|---|---|---|---|---|
| blocksize_agent_tools-0.1.0.tar.gz | 3.7 kB | Without provenance | Details for blocksize_agent_tools-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blocksize_agent_tools-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for blocksize_agent_tools-0.1.0-py3-none-any.whl |
Total release size: 9.4 kB
Release files / blocksize_agent_tools-0.1.0.tar.gz
| Download URL | blocksize_agent_tools-0.1.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b15c5f35471681a8d761c40697ecee04706075dae423828e66c773261a90d53c
|
|
BLAKE2b-256 checksum How to use checksums |
fd432302d0bda17074fbd0e9230a4eef2b0056625555fd310bffad80450009e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / blocksize_agent_tools-0.1.0-py3-none-any.whl
| Download URL | blocksize_agent_tools-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c586689666a7b48e4773f8d857b9d91a9ae10c999ee432d860ad896bbdb77836
|
|
BLAKE2b-256 checksum How to use checksums |
cef724a2c51c82a5aca13df27efe5556ee214d4d42b86c756c099892ae12432a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for blocksize-agent-tools 0.1.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.