{"uid":"cap_6dBSd3-lrZRpB5zJYzfoW","slug":"brainiac-agent-network-float-rebalancing-81a6ccec","name":"BRAINIAC Agent Network Float Rebalancing","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/agent-networks/float-rebalancing?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"agents":{"type":"array","items":{"type":"object","required":["id","currency","cash_balance","minimum_float"],"properties":{"id":{"type":"string","maxLength":120,"minLength":1},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"cash_balance":{"type":"integer","maximum":9007199254740991,"minimum":0},"maximum_float":{"type":"integer","maximum":9007199254740991,"minimum":0},"minimum_float":{"type":"integer","maximum":9007199254740991,"minimum":0},"expected_demand":{"type":"integer","maximum":9007199254740991,"minimum":0}},"additionalProperties":false},"maxItems":200,"minItems":2},"budget":{"type":"integer","maximum":9007199254740991,"minimum":0},"transfer_costs":{"type":"array","items":{"type":"object","required":["from_agent_id","to_agent_id","cost_per_unit"],"properties":{"to_agent_id":{"type":"string","maxLength":120,"minLength":1},"cost_per_unit":{"type":"integer","maximum":9007199254740991,"minimum":0},"from_agent_id":{"type":"string","maxLength":120,"minLength":1}},"additionalProperties":false},"maxItems":5000,"minItems":1},"transfer_limits":{"type":"array","items":{"type":"object","required":["from_agent_id","to_agent_id","max_amount"],"properties":{"max_amount":{"type":"integer","maximum":9007199254740991,"minimum":0},"to_agent_id":{"type":"string","maxLength":120,"minLength":1},"from_agent_id":{"type":"string","maxLength":120,"minLength":1}},"additionalProperties":false},"maxItems":5000}}},"responseSchema":{"type":"json","example":{"feasibility":[{"detail":"Every shortage in this currency is covered at minimum total transfer cost under the supplied corridors, limits, and bud…","currency":"EUR","feasible":true},{"detail":"Every shortage in this currency is covered at minimum total transfer cost under the supplied corridors, limits, and bud…","currency":"USD","feasible":true}],"excess_balances":[{"amount":1100,"agent_id":"ag-5","currency":"EUR","above_maximum":0},{"amount":1800,"agent_id":"ag-1","currency":"USD","above_maximum":0},"…"],"projected_balances":[{"agent_id":"ag-4","currency":"EUR","cash_balance":100,"minimum_float":500,"expected_demand":0,"projected_after":500,"projected_before":100},{"agent_id":"ag-5","currency":"EUR","cash_balance":2000,"minimum_float":500,"expected_demand":0,"projected_after":1600,"projected_before":2000},"…"],"proposed_transfers":[{"cost":1400,"amount":700,"to_agent_id":"ag-2","cost_per_unit":2,"from_agent_id":"ag-1"},{"cost":1000,"amount":1000,"to_agent_id":"ag-2","cost_per_unit":1,"from_agent_id":"ag-3"},"…"],"remaining_shortages":[],"total_transfer_cost":2800}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RuJ-PL5M5Z9P4HT5Pjdw0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes optimal cash/currency transfers between AI agents in a network to satisfy minimum float requirements at minimum cost within a budget","exampleAgentPrompt":"I have 5 agents — ag-1 (USD, balance 5000, min float 2000, max float 8000), ag-2 (USD, balance 500, min float 2000, expected demand 200), ag-3 (USD, balance 9000, min float 1000, max float 7000), ag-4 (EUR, balance 100, min float 500), ag-5 (EUR, balance 2000, min float 500) — with a total transfer budget of 10000 units; transfers from ag-1 to ag-2 cost 2 per unit, ag-3 to ag-2 cost 1 per unit, and ag-5 to ag-4 cost 1 per unit — can you work out the optimal rebalancing plan to get everyone above their minimum float at minimum total cost?","exampleUseCases":[{"title":"Multi-currency agent fleet daily rebalancing","prompt":"I run a fleet of 10 agents handling USD and EUR transactions — here are their current balances, minimum floats, and expected demand for each — can you figure out the cheapest set of transfers between them to make sure no agent falls below its minimum float, given transfer costs and a total budget of 50000?"},{"title":"Budget-constrained shortfall triage","prompt":"Three of my agents are short on cash and I only have a budget of 5000 to redistribute — given the transfer costs between agents, can you tell me which shortfalls are actually feasible to cover and propose the optimal transfers, flagging any remaining shortages I still need to handle?"},{"title":"Feasibility check before settlement","prompt":"Before I commit to this settlement round, can you check whether all agent shortfalls in my network can be covered using the available corridors and limits I've specified, and show me the projected balance for each agent after the proposed transfers?"}],"resultDescription":"Returns proposed inter-agent transfers (from/to agent, amount, cost per unit, total cost), projected balances before and after for each agent, excess balances above maximum float, remaining uncovered shortages, feasibility status per currency with a detail message, and total transfer cost.","failureModes":["Infeasible rebalancing if budget is insufficient to cover all shortfalls — feasibility will be false for affected currencies with detail explaining the gap","Missing required fields (agent id, currency, cash_balance, minimum_float, or transfer cost corridor) will cause a validation error","Agent IDs in transfer_costs or transfer_limits that don't match any agent in the agents array may be rejected or silently ignored","Integer overflow not expected given schema maximums but extremely large values should be tested","Empty or single-agent arrays rejected due to minItems:2 constraint on agents array","More than 200 agents or 5000 transfer corridors will be rejected by schema limits"],"whenToPreferThis":"Use this endpoint when you need to compute optimal cash redistribution across a network of 2–200 agents with heterogeneous currency balances, minimum and maximum float constraints, transfer costs, transfer limits, and a global budget. It is specifically designed for multi-agent treasury rebalancing and returns a full optimization plan rather than just feasibility. Prefer this over manual or heuristic approaches when you have multiple currencies, asymmetric transfer costs, or corridor limits that make the problem non-trivial.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-11T14:13:52.452Z","isFirstParty":false,"canonicalSlug":"brainiac-agent-network-float-rebalancing-81a6ccec"}