{"openapi":"3.1.0","info":{"title":"BRL Depth Quote","description":"Compare immediate spot execution across supplied BRL order books, including depth, fees, minimums and partial fills.","version":"1.0.0"},"servers":[{"url":"https://brl-depth-quote-4a6b.rafaelantunes137.workers.dev"}],"paths":{"/api/estimate":{"post":{"operationId":"estimateBrlExecution","summary":"Compare immediate spot execution across supplied BRL order books, including depth, fees, minimums and partial fills.","x-x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","amount":"5000"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"pair":{"type":"string","maxLength":16},"side":{"type":"string","maxLength":4,"enum":["buy","sell"]},"amountBrl":{"type":"string","maxLength":36},"markBrl":{"type":"string","maxLength":36},"asOf":{"type":"string","maxLength":24},"maxAgeSeconds":{"type":"integer","minimum":1,"maximum":86400},"books":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","additionalProperties":false,"properties":{"label":{"type":"string","maxLength":32},"asks":{"type":"array","maxItems":24,"items":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"string","maxLength":36}}},"bids":{"type":"array","maxItems":24,"items":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"string","maxLength":36}}},"feeBps":{"type":"string","maxLength":36},"minBrl":{"type":"string","maxLength":36},"minBase":{"type":"string","maxLength":36},"observedAt":{"type":"string","maxLength":24}},"required":["label","asks","bids","feeBps"]}}},"required":["pair","side","amountBrl","books"]},"example":{"pair":"USDT-BRL","side":"buy","amountBrl":"60","books":[{"label":"Example A","feeBps":"40","minBrl":"10","asks":[["5.70","4"],["5.72","10"]],"bids":[["5.69","20"]]},{"label":"Example B","feeBps":"15","minBrl":"10","asks":[["5.71","12"]],"bids":[["5.70","20"]]},{"label":"Shallow example","feeBps":"10","asks":[["5.68","5"]],"bids":[["5.67","20"]]}]}}}},"responses":{"200":{"description":"Execution estimate with input hash and simulated fills by book"},"400":{"description":"Invalid input or crossed book"},"402":{"description":"Exact Base USDC payment required"}}}},"/sample":{"get":{"operationId":"syntheticSample","responses":{"200":{"description":"Synthetic order books and sample estimate"}}}}}}