Skip to main content

headless-oracle-crewai

CrewAI tools for Headless Oracle market state verification.

Note: SMA in this package denotes "Signed Market Attestation" — not Simple Moving Average.

pip install headless-oracle-crewai

Usage

from headless_oracle_crewai import MarketStatusTool, MarketScheduleTool

# Zero config — auto-provisions sandbox key on first tool call
tools = [MarketStatusTool(), MarketScheduleTool()]

# Use with CrewAI agent
from crewai import Agent, Task, Crew

trader = Agent(
    role="Market-Safe Trader",
    goal="Only execute trades when markets are verified OPEN",
    tools=tools,
)

Tools

MarketStatusTool

Returns a cryptographically signed Signed Market Attestation (SMA) receipt for a global exchange.

  • Status: OPEN, CLOSED, HALTED, or UNKNOWN
  • Fail-closed: UNKNOWN and HALTED MUST be treated as CLOSED
  • Signed: Ed25519 signature, 60-second TTL
  • 28 exchanges: NYSE, NASDAQ, LSE, Tokyo, CME, Coinbase, and more

MarketScheduleTool

Returns upcoming open/close times in UTC. DST-aware via IANA timezone identifiers.

Auto-provisioning

On first tool call, the library automatically provisions a free sandbox key (100 calls/24h) from Headless Oracle and saves it to ~/.headless_oracle/config.json. No signup required.

Supported Exchanges

XNYS (NYSE), XNAS (NASDAQ), XLON (LSE), XJPX (Tokyo), XPAR (Paris), XHKG (Hong Kong), XSES (Singapore), XASX (Sydney), XBOM (BSE India), XNSE (NSE India), XSHG (Shanghai), XSHE (Shenzhen), XKRX (Seoul), XJSE (Johannesburg), XBSP (B3 Brazil), XSWX (Swiss), XMIL (Milan), XIST (Istanbul), XSAU (Riyadh), XDFM (Dubai), XNZE (Auckland), XHEL (Helsinki), XSTO (Stockholm), XCBT (CME), XNYM (NYMEX), XCBO (Cboe), XCOI (Coinbase 24/7), XBIN (Binance 24/7)

Links

Release files for headless-oracle-crewai 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for headless-oracle-crewai 1.0.1
File Size Uploaded
headless_oracle_crewai-1.0.1.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for headless-oracle-crewai 1.0.1
File Interpreter ABI Platform
headless_oracle_crewai-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / headless_oracle_crewai-1.0.1.tar.gz

Download URL headless_oracle_crewai-1.0.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
efbeb9c11a30e86b6904a12249736523908a6cd0413c4e50c19c271f7afe4e17
BLAKE2b-256 checksum
How to use checksums
33ff1d23d4319ffc1f07551cc7003b6e77fce0782af3b6786023aca36349c0ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / headless_oracle_crewai-1.0.1-py3-none-any.whl

Download URL headless_oracle_crewai-1.0.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c419e522c1990bd91fab2ecdd1b3c06dbb325969a04c330052bb87c919ea8c24
BLAKE2b-256 checksum
How to use checksums
ef728fdaf1a730ca5483a806e0d070cf749c35b9b961e6c86fa03e80b5a78bed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

1.0.1 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