Skip to main content

Python SDK for Circle Intelligence — F.I.R.E. economy real-time signal detection + RealityFutures prediction markets

Project description

Circle Intelligence SDK

Python SDK for Circle Intelligence — real-time F.I.R.E. economy signal detection via 7-agent AI cascade.

What's new in 0.3.0

  • Refreshed RF contract defaults (realityFuturesMarkets, pScoreOracle) to match the 2026-04-21 on-chain redeploy. Earlier versions had stale addresses in the fallback path — pin >=0.3.0 if you transact real USDC.
  • config["source"] marker. sdk.rf._get_config() now returns "source": "fetched" (from /api/rf/config) or "source": "defaults" (baked-in fallback). Check this before broadcasting any tx.
  • strict=True mode. CircleSDK(url, strict=True) raises CircleConfigError on config-fetch failure instead of silently falling back to stale defaults. Recommended for production agents.
  • Louder fallback warning. If you're in non-strict mode, the log message now says "SDK USING BAKED-IN DEFAULTS" so it's not missed in grep.

The timeout kwarg was already configurable in 0.2.0 (CircleSDK(url, timeout=60)) — applies to every HTTP call including /api/rf/config.

Install

pip install circle-intelligence              # core (browsing, search, chat)
pip install circle-intelligence[wallet]       # + wallet authentication
pip install circle-intelligence[payment]      # + USDC payment flow
pip install circle-intelligence[rf]           # + RealityFutures trading

Quick Start

from circle_intelligence import CircleSDK

# Free tier — no auth needed
sdk = CircleSDK("https://circle.news")
signals = sdk.get_recent_signals(limit=3)
entities = sdk.get_kg_entities(search="Bitcoin")
briefs = sdk.get_briefs(limit=5)

# Premium tier — with API key
sdk = CircleSDK("https://circle.news", api_key="circ_your_key")
results = sdk.search_signals("DeFi bridge exploit")
analytics = sdk.get_kg_analytics(days=7)
response = sdk.chat(signal_id=1744, messages=[{"role": "user", "content": "What happened?"}])

Features

Feature Free Premium
Recent signals 6h delay, 3 max Real-time, 100 max
Daily briefs Yes Yes
Knowledge graph browsing Yes Yes
KG analytics + cross-sector No Yes
Semantic search No Yes
RAG-powered chat No Yes
Simulator execution No Yes
Research creation No Yes
Depth tree details No Yes

Wallet Authentication (for agents)

from eth_account import Account
from eth_account.messages import encode_defunct

private_key = "0xYOUR_PRIVATE_KEY"
wallet = Account.from_key(private_key).address

result = sdk.authenticate(
    wallet_address=wallet,
    sign_fn=lambda msg: Account.sign_message(
        encode_defunct(text=msg), private_key
    ).signature.hex(),
)

Documentation

Full API reference and examples at circle.news/docs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

circle_intelligence-0.3.0.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

circle_intelligence-0.3.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file circle_intelligence-0.3.0.tar.gz.

File metadata

  • Download URL: circle_intelligence-0.3.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for circle_intelligence-0.3.0.tar.gz
Algorithm Hash digest
SHA256 23456fa92fe177afa60ccee8f908d0e55b66fb417bc6320e6405c72d83a8efd2
MD5 abaf68e3d0ad3db524f7e5244a8d4d60
BLAKE2b-256 d903b2361fab434c855d4a5f812f751b9120cc83fe1e80a2fa97f3e347df45f0

See more details on using hashes here.

File details

Details for the file circle_intelligence-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for circle_intelligence-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a74640f239b95776c397d5694efda4834eb1547ee81c7c35d13d18ca790fa430
MD5 51edac7d0e0f6b071341844f29baf801
BLAKE2b-256 b1a79facd4055a9d8eb9790b7fcc0bd621bb8bf9a232778519055bc1c05cf23e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page