Skip to main content

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)

What's new in 1.1.0

  • Native CrewAI tools — get_crewai_tools() now returns 12 purpose-built crewai.tools.BaseTool instances (curated flagship endpoints). Install with pip install losbeto-tools[crewai]. The old LangChain-adapter path still works via losbeto_tools.adapters.
  • AutoGen / AG2 support — get_autogen_functions() returns {name: (callable, schema)} ready for register_function; get_autogen_schemas() returns OpenAI-format tools[] for llm_config. Install with pip install losbeto-tools[autogen].
  • Function schemas offline — get_function_schemas() returns the same OpenAI + Anthropic schemas the node serves at https://api.losbeto.xyz/.well-known/function-schemas.json.
from losbeto_tools import get_autogen_functions
funcs = get_autogen_functions()   # 12 tools, free ?preview=1 data by default

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 (86 per-call endpoints, $0.003–$1.00 each, plus 9 plans).

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.

Metadata

Release files for losbeto-tools 1.1.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 losbeto-tools 1.1.0
File Size Uploaded
losbeto_tools-1.1.0.tar.gz 16.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for losbeto-tools 1.1.0
File Interpreter ABI Platform
losbeto_tools-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 33.4 kB

Release files / losbeto_tools-1.1.0.tar.gz

Download URL losbeto_tools-1.1.0.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
06d78729e43617055cc05ea9633395a5fbb4f919da93955dcbf20d0e82715579
BLAKE2b-256 checksum
How to use checksums
1eca7d4a8791a170b21b846570499d68cae986756a558019afb877477a9c0e1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / losbeto_tools-1.1.0-py3-none-any.whl

Download URL losbeto_tools-1.1.0-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7dacc9a1e5c8ad5eb8572fe71b36565d5d1281e7a028f4b35b6cf34014ab383
BLAKE2b-256 checksum
How to use checksums
613091e925d197cf2a85fac57a1ec3bd793c12a2654fa2da0af123d2a08c7fe8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

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