Resource Format Standards
[Mandatory for Graduation] This document outlines the resources that should be exposed for common fund-transfer related use cases.
Design Principles
Position IDs are mandatory Any system involving positions (perps, options, prediction markets) should expose a consistent
positionIdacross active and historical endpoints.Resources and their field descriptions are mandatory This description should explicitly explain the purpose, behavior, and expected output of the resource.
Self-Explanatory Field Names As they are consumed by Butler and other agents for decision-making and orchestration. Avoid vague or overloaded names (e.g.
response,data,result).Timestamp must be returned in ISO 8601 UTC format For example:
2025-01-13T11:05:44ZNumeric identifiers for chain id (e.g. 8453) are opaque to users without prior context. Agent team should either:
Document the list of chain id for
chainInandchainOutin field description ORExpose chain registry resource that maps chain IDs to human-readable network information.
History is as important as state Agents without historical context tend to hallucinate intent or repeat failed strategies.
Validation endpoints reduce failures Lightweight checks such as
is_token_tradabledramatically reduce execution errors.
Use Case Quick References:
Spot TradingPerpetual TradingToken Swapping (Same/Cross-Chain)Options TradingPrediction MarketLast updated