BlueprintsAI TradingDapp and Indexer

AI Trading Dapp and Indexer

The Arena is the product app for AI Trading. Tangle Cloud should launch it from trusted metadata and preserve the protocol fallback route for raw service state.

Metadata the dapp should use

FieldCurrent value in repo metadata
blueprintUi.displayNameAI Trading Desk
blueprintUi.requestedSlugai-trading
blueprintUi.publisher.namespacetangle
externalApp.modeiframe
externalApp.urlhttps://trading-arena.blueprint.tangle.tools/

The metadata also declares cloud, instance, and TEE modes. The Arena should use those mode records instead of hard-coding a single blueprint ID.

Indexed state

StateWhy the dapp needs it
Blueprint registration and metadataFind the current trading blueprint and app policy.
Operator registrationDiscover operator endpoints and capacity.
Service requests and instancesLink a user request to the running bot service.
Job eventsShow provision/config/start/stop style commands where applicable.
Pricing pointersShow quote or subscription information when available.
HeartbeatsDistinguish dead operators from missing data.

The indexer should make operator discovery reliable. It should not be treated as proof that a bot is healthy or that a trade was safe.

Live operator reads

The Arena still needs operator APIs for:

  • bot roster
  • bot detail
  • provisions
  • vault state
  • paper/live state
  • strategy config
  • trade history
  • terminal or sidecar logs
  • health

If an operator endpoint is unreachable, say that. Do not replace it with stale indexed state unless the UI labels it as stale.

User-facing states

StateMeaning
No operatorThe blueprint exists, but nobody is serving it on the selected network.
Operator unreachableThe registration exists, but the public endpoint is failing.
Provision pendingThe service exists, but no bot is ready yet.
PaperThe bot is using live data and simulated fills.
LiveThe bot can submit real execution through its configured venues and vault policy.
Policy blockedThe bot generated an intent that the policy or validator path rejected.

These states should be visible in the app. “Loading” is not enough.

Iframe policy

Trading is iframe-first under trading-arena.blueprint.tangle.tools.

The parent dapp should:

  1. restrict the iframe to the trusted host
  2. pass parent origin and chain context
  3. keep wallet approvals in the parent
  4. expose the service instance link
  5. keep the raw protocol fallback route available

The Arena owns product workflow. Tangle Cloud owns the shell, wallet safety, and route policy.