API Reference
Base URL
/apiAll responses are returned in JSON format.
Market Data API
Get Markets
GET /api/marketsReturns a normalized list of supported market data.
Response
[
{
"symbol": "SOL",
"price": 98.42,
"change24h": 3.21,
"volume": 124500000
}
]Notes
Data is refreshed periodically at the backend
Used by both Trading Terminal and AI Signal Engine
Acts as authoritative price input for signal generation
Trading API
Execute Swap
Executes a token swap via on-chain liquidity routing.
Request Body
Response
Notes
Transaction is signed client-side
Backend only constructs and routes the transaction
No custody or off-chain settlement
Trade History
Returns historical trade execution data for a wallet.
Response
Wallet API
Get Wallet Balance
Returns current on-chain balances for supported assets.
Response
Notes
Balances are fetched directly from on-chain data sources
No internal accounting or shadow balances
AI Signals API
Get AI Signals
Returns the latest AI-generated trading signals.
Response
Get Tracked Positions
Returns all tracked positions and their current state.
Response
Position Statistics
Returns aggregated performance metrics.
Response
Update Position Prices
Triggers a backend price refresh and position evaluation.
Notes
Used by scheduled jobs and monitoring services
Handles TP/SL checks and state transitions
API Design Principles
Zoryu’s APIs follow several core design principles:
Non-Custodial APIs never handle private keys or signing logic.
Execution-Aware Endpoints are built around real execution and position state, not simulated flows.
Deterministic Responses Outputs are structured for programmatic use, not manual interpretation.
Backend as Authority Frontend consumes state, never defines it.
Last updated