Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/bid-coverage

Checks which required lines of a tender or RFQ are covered by the bids received (up to 200 lines, 30 bidders, 2000 offers), for an agent comparing responses. A line is covered when firm offers (exact item, no condition, no bundle) sum to the required quantity; substitute offers, offers bound to a bundle (all-or-nothing across the lines in that bundle) and offers with a stated condition are reporte

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/bid-coverage

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/bid-coverage", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"bids":[{"bidder":"Acme","offers":[{"line":"L1","quantity":"100"},{"line":"L2","quantity":"20"}]},{"bidder":"Birch","offers":[{"line":"L2","quantity":"30"},{"line":"L3","bundle":"B1","quantity":"10"},{"line":"L1","quantity":"100","substitute":true}]}],"lines":[{"id":"L1","quantity":"100"},{"id":"L2","quantity":"50"},{"id":"L3","quantity":"10"}]}),
});
console.log(await res.json());

Example input

{
  "bids": [
    {
      "bidder": "Acme",
      "offers": [
        {
          "line": "L1",
          "quantity": "100"
        },
        {
          "line": "L2",
          "quantity": "20"
        }
      ]
    },
    {
      "bidder": "Birch",
      "offers": [
        {
          "line": "L2",
          "quantity": "30"
        },
        {
          "line": "L3",
          "bundle": "B1",
          "quantity": "10"
        },
        {
          "line": "L1",
          "quantity": "100",
          "substitute": true
        }
      ]
    }
  ],
  "lines": [
    {
      "id": "L1",
      "quantity": "100"
    },
    {
      "id": "L2",
      "quantity": "50"
    },
    {
      "id": "L3",
      "quantity": "10"
    }
  ]
}