CrewAI tools for Headless Oracle market state verification. SMA = Signed Market Attestation (not Simple Moving Average).
Project description
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
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 headless_oracle_crewai-1.0.1.tar.gz.
File metadata
- Download URL: headless_oracle_crewai-1.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efbeb9c11a30e86b6904a12249736523908a6cd0413c4e50c19c271f7afe4e17
|
|
| MD5 |
e0138260c64169fddad665cc1e7c3eac
|
|
| BLAKE2b-256 |
33ff1d23d4319ffc1f07551cc7003b6e77fce0782af3b6786023aca36349c0ba
|
File details
Details for the file headless_oracle_crewai-1.0.1-py3-none-any.whl.
File metadata
- Download URL: headless_oracle_crewai-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c419e522c1990bd91fab2ecdd1b3c06dbb325969a04c330052bb87c919ea8c24
|
|
| MD5 |
31c3abf06b323d7537128303e3938f2e
|
|
| BLAKE2b-256 |
ef728fdaf1a730ca5483a806e0d070cf749c35b9b961e6c86fa03e80b5a78bed
|