Cross-asset market data tools for AI agents (forex, equities, commodities, macro, crypto) over x402 — free delayed data, pay-per-call for real-time.
Project description
losbeto-tools
Cross-asset market data for AI agents — forex, equities, commodities, macro and crypto — over the x402 payment protocol.
Free by default. Every tool returns real, delayed data at zero cost, with no wallet, no API key and no signup. Pay per call in USDC only when your agent needs real-time.
pip install losbeto-tools[langchain]
LangChain
from losbeto_tools import get_langchain_tools
tools = get_langchain_tools() # free, delayed data
agent = create_react_agent(llm, tools) # your usual agent setup
CrewAI
from losbeto_tools import get_crewai_tools
analyst = Agent(role="Macro Analyst", tools=get_crewai_tools(), llm=llm)
OpenAI function calling / AutoGen
from losbeto_tools import get_openai_tools, openai_dispatcher
tools = get_openai_tools()
dispatch = openai_dispatcher()
resp = client.chat.completions.create(model="...", messages=msgs, tools=tools)
for call in resp.choices[0].message.tool_calls:
result = dispatch(call.function.name, call.function.arguments)
Direct client
from losbeto_tools import LosbetoClient
c = LosbetoClient()
c.call("forex_rate", pair="EUR/USD") # free, delayed
c.tasting_menu() # live samples from 6 endpoints, one call
c.health() # per-source liveness of the node
c.price_of("equity_dossier") # price in USDC
Real-time (paid)
Real-time data settles per call in USDC on Base or Solana. Provide a payer
callable that signs the x402 challenge:
def payer(url, challenge):
# sign `challenge` with your x402 client and return the PAYMENT-SIGNATURE value
...
c = LosbetoClient(payer=payer)
c.call("forex_rate", pair="EUR/USD", realtime=True)
What's available
Tools are discovered at runtime from the node's own manifest, so the list
tracks the server and never goes stale. A compact default set is exposed to keep
agent prompts small; pass all_tools=True for the full catalog (60+ endpoints).
| Area | Examples |
|---|---|
| Forex | EUR/USD, GBP/USD, USD/JPY, triangular arbitrage |
| Equities | quotes, single-stock AI dossiers, sector rotation |
| Commodities | gold, silver, WTI, Brent, copper, natural gas |
| Macro | FOMC / NFP / CPI / ECB calendar, event playbooks, regime |
| Crypto | Pyth oracle prices, fear & greed, DEX screening, rug checks |
| Research | daily cross-asset morning brief, 90-day correlation matrix |
Notes
- Free mode returns data delayed roughly 15 minutes — enough to evaluate shape and quality before paying.
- If an upstream data source or the AI layer is down, premium endpoints return HTTP 503 and do not charge.
- Node status is public:
GET https://api.losbeto.xyz/health/providers - Operator test purchases are labeled versus organic on-chain at
/receipts.
MIT licensed.
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 losbeto_tools-1.0.0.tar.gz.
File metadata
- Download URL: losbeto_tools-1.0.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6accf02a9b5818196bcb31d23719ed6174c4936218ad3d23e58578aa98b1ae62
|
|
| MD5 |
4d50054948aec2b5a4ab8ebfcca8c740
|
|
| BLAKE2b-256 |
4c0e9ed8096c48d6565be16f70b4992551de5109bcfbdd4bda17d31398a87f26
|
File details
Details for the file losbeto_tools-1.0.0-py3-none-any.whl.
File metadata
- Download URL: losbeto_tools-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16ec753b806820d6f57f41d38bd03854d8c94f7aea1d67407fbf6c037ed47a3e
|
|
| MD5 |
c85a2aa4f04a84c9864a972001bc3c34
|
|
| BLAKE2b-256 |
73f36a9c21ab0e99caac57c14245ed1c5b3a5390b1ce7eea4edc734ebb1682c4
|