Skip to main content

handle

Function handle 

Source
pub async fn handle(
    __arg0: State<Arc<AppState>>,
    __arg1: Json<MarketRequest>,
) -> impl IntoResponse
Expand description

POST /api/market/summary — Peg and order book health. The pair and venue are read exactly as the CLI reads them (core Pair and MarketVenue). Errors map through status_for: an unknown venue or a chain mismatch is 400, no DEX pairs is 404.