{
  "x402Version": 2,
  "id": 36319,
  "slug": "36319",
  "resource": "https://api.duoleads.com/v1/time/business-days",
  "description": "Business-day arithmetic with a caller-supplied calendar: add or subtract N working days from a date, or count the working days between two dates. The weekend is a weekday mask (Friday-Saturday and Sunday-only weeks work) and holidays are an explicit date list, so nothing depends on a stale holiday table. Returns the result date, the day count and the skipped dates with reasons. The skipped list is capped at 1,000 entries (skipped_truncated flags it); skipped_total is always exact.",
  "type": "http",
  "serviceName": "Duo Data Utilities",
  "resourceType": "Monitoring",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xCD673f7e1daD254347AEab6be0DEFe8b9C6b3A39",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "properties": {
              "business_days": {
                "type": "integer"
              },
              "calendar_days": {
                "type": "integer"
              },
              "calendar_days_spanned": {
                "type": "integer"
              },
              "days": {
                "type": "integer"
              },
              "direction": {
                "type": "string"
              },
              "from": {
                "type": "string"
              },
              "holiday_days": {
                "type": "integer"
              },
              "holidays_matched": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "result": {
                "type": "string"
              },
              "skipped": {
                "items": {
                  "properties": {
                    "date": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "weekday": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "date",
                    "reason",
                    "weekday"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "skipped_total": {
                "type": "integer"
              },
              "skipped_truncated": {
                "type": "boolean"
              },
              "weekend_days": {
                "type": "integer"
              }
            },
            "type": "object"
          },
          "meta": {
            "properties": {
              "computed_at": {
                "description": "RFC 3339 UTC with milliseconds",
                "type": "string"
              },
              "deterministic": {
                "type": "boolean"
              },
              "disclaimer": {
                "type": "string"
              },
              "price_usd": {
                "type": "string"
              },
              "request_id": {
                "type": "string"
              },
              "sources": {
                "items": {
                  "required": [
                    "id",
                    "version",
                    "published"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "request_id",
              "computed_at",
              "price_usd",
              "deterministic",
              "disclaimer"
            ],
            "type": "object"
          },
          "ok": {
            "const": true
          },
          "route": {
            "const": "/v1/time/business-days"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "ok",
          "route",
          "version",
          "data",
          "meta"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "days": "5",
            "from": "2026-12-24",
            "holidays": "2026-12-25,2026-12-26,2027-01-01"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "calendar_days_spanned": 11,
              "days": 5,
              "from": "2026-12-24",
              "result": "2027-01-04",
              "skipped": [
                {
                  "date": "2026-12-25",
                  "reason": "holiday",
                  "weekday": "friday"
                },
                {
                  "date": "2026-12-26",
                  "reason": "weekend",
                  "weekday": "saturday"
                },
                {
                  "date": "2026-12-27",
                  "reason": "weekend",
                  "weekday": "sunday"
                },
                {
                  "date": "2027-01-01",
                  "reason": "holiday",
                  "weekday": "friday"
                },
                {
                  "date": "2027-01-02",
                  "reason": "weekend",
                  "weekday": "saturday"
                },
                {
                  "date": "2027-01-03",
                  "reason": "weekend",
                  "weekday": "sunday"
                }
              ],
              "skipped_total": 6,
              "skipped_truncated": false
            },
            "meta": {
              "computed_at": "2026-09-28T12:00:00.000Z",
              "deterministic": true,
              "disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
              "price_usd": "0.05",
              "request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D"
            },
            "ok": true,
            "route": "/v1/time/business-days",
            "version": "1.0.0"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "days": {
                    "description": "Business days to add, -3650 to 3650. Required when op=add.",
                    "maxLength": 64,
                    "pattern": "^[+-]?\\d+$",
                    "type": "string"
                  },
                  "from": {
                    "description": "Start date, YYYY-MM-DD.",
                    "maxLength": 32,
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "type": "string"
                  },
                  "holidays": {
                    "description": "Comma-separated YYYY-MM-DD holiday dates.",
                    "maxLength": 2048,
                    "type": "string"
                  },
                  "inclusive": {
                    "default": "start",
                    "description": "For op=count: start (default, half-open [from, to)), both or neither.",
                    "enum": [
                      "start",
                      "both",
                      "neither"
                    ],
                    "maxLength": 64,
                    "type": "string"
                  },
                  "op": {
                    "default": "add",
                    "description": "add (default) N business days to from, or count business days between from and to.",
                    "enum": [
                      "add",
                      "count"
                    ],
                    "maxLength": 64,
                    "type": "string"
                  },
                  "to": {
                    "description": "End date YYYY-MM-DD, may precede from. Required when op=count.",
                    "maxLength": 32,
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "type": "string"
                  },
                  "weekend": {
                    "default": "sat,sun",
                    "description": "Comma-separated weekday names or ISO numbers. Default sat,sun. Empty string = no weekend.",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "from"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "properties": {
                      "business_days": {
                        "type": "integer"
                      },
                      "calendar_days": {
                        "type": "integer"
                      },
                      "calendar_days_spanned": {
                        "type": "integer"
                      },
                      "days": {
                        "type": "integer"
                      },
                      "direction": {
                        "type": "string"
                      },
                      "from": {
                        "type": "string"
                      },
                      "holiday_days": {
                        "type": "integer"
                      },
                      "holidays_matched": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "result": {
                        "type": "string"
                      },
                      "skipped": {
                        "items": {
                          "properties": {
                            "date": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string"
                            },
                            "weekday": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "date",
                            "reason",
                            "weekday"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "skipped_total": {
                        "type": "integer"
                      },
                      "skipped_truncated": {
                        "type": "boolean"
                      },
                      "weekend_days": {
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  "meta": {
                    "properties": {
                      "computed_at": {
                        "description": "RFC 3339 UTC with milliseconds",
                        "type": "string"
                      },
                      "deterministic": {
                        "type": "boolean"
                      },
                      "disclaimer": {
                        "type": "string"
                      },
                      "price_usd": {
                        "type": "string"
                      },
                      "request_id": {
                        "type": "string"
                      },
                      "sources": {
                        "items": {
                          "required": [
                            "id",
                            "version",
                            "published"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "request_id",
                      "computed_at",
                      "price_usd",
                      "deterministic",
                      "disclaimer"
                    ],
                    "type": "object"
                  },
                  "ok": {
                    "const": true
                  },
                  "route": {
                    "const": "/v1/time/business-days"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "required": [
                  "ok",
                  "route",
                  "version",
                  "data",
                  "meta"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "deterministic",
    "no-api-key",
    "time",
    "calendar",
    "business-days",
    "bazaar"
  ],
  "sourceHost": "api.duoleads.com",
  "lastUpdated": "2026-10-01T20:51:13.591Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-01T20:51:13.405Z"
  },
  "metadata": {
    "serviceName": "Duo Data Utilities",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "days": "5",
              "from": "2026-12-24",
              "holidays": "2026-12-25,2026-12-26,2027-01-01"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "calendar_days_spanned": 11,
                "days": 5,
                "from": "2026-12-24",
                "result": "2027-01-04",
                "skipped": [
                  {
                    "date": "2026-12-25",
                    "reason": "holiday",
                    "weekday": "friday"
                  },
                  {
                    "date": "2026-12-26",
                    "reason": "weekend",
                    "weekday": "saturday"
                  },
                  {
                    "date": "2026-12-27",
                    "reason": "weekend",
                    "weekday": "sunday"
                  },
                  {
                    "date": "2027-01-01",
                    "reason": "holiday",
                    "weekday": "friday"
                  },
                  {
                    "date": "2027-01-02",
                    "reason": "weekend",
                    "weekday": "saturday"
                  },
                  {
                    "date": "2027-01-03",
                    "reason": "weekend",
                    "weekday": "sunday"
                  }
                ],
                "skipped_total": 6,
                "skipped_truncated": false
              },
              "meta": {
                "computed_at": "2026-09-28T12:00:00.000Z",
                "deterministic": true,
                "disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
                "price_usd": "0.05",
                "request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D"
              },
              "ok": true,
              "route": "/v1/time/business-days",
              "version": "1.0.0"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "days": {
                      "description": "Business days to add, -3650 to 3650. Required when op=add.",
                      "maxLength": 64,
                      "pattern": "^[+-]?\\d+$",
                      "type": "string"
                    },
                    "from": {
                      "description": "Start date, YYYY-MM-DD.",
                      "maxLength": 32,
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                      "type": "string"
                    },
                    "holidays": {
                      "description": "Comma-separated YYYY-MM-DD holiday dates.",
                      "maxLength": 2048,
                      "type": "string"
                    },
                    "inclusive": {
                      "default": "start",
                      "description": "For op=count: start (default, half-open [from, to)), both or neither.",
                      "enum": [
                        "start",
                        "both",
                        "neither"
                      ],
                      "maxLength": 64,
                      "type": "string"
                    },
                    "op": {
                      "default": "add",
                      "description": "add (default) N business days to from, or count business days between from and to.",
                      "enum": [
                        "add",
                        "count"
                      ],
                      "maxLength": 64,
                      "type": "string"
                    },
                    "to": {
                      "description": "End date YYYY-MM-DD, may precede from. Required when op=count.",
                      "maxLength": 32,
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                      "type": "string"
                    },
                    "weekend": {
                      "default": "sat,sun",
                      "description": "Comma-separated weekday names or ISO numbers. Default sat,sun. Empty string = no weekend.",
                      "maxLength": 64,
                      "type": "string"
                    }
                  },
                  "required": [
                    "from"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "properties": {
                        "business_days": {
                          "type": "integer"
                        },
                        "calendar_days": {
                          "type": "integer"
                        },
                        "calendar_days_spanned": {
                          "type": "integer"
                        },
                        "days": {
                          "type": "integer"
                        },
                        "direction": {
                          "type": "string"
                        },
                        "from": {
                          "type": "string"
                        },
                        "holiday_days": {
                          "type": "integer"
                        },
                        "holidays_matched": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "result": {
                          "type": "string"
                        },
                        "skipped": {
                          "items": {
                            "properties": {
                              "date": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string"
                              },
                              "weekday": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "date",
                              "reason",
                              "weekday"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "skipped_total": {
                          "type": "integer"
                        },
                        "skipped_truncated": {
                          "type": "boolean"
                        },
                        "weekend_days": {
                          "type": "integer"
                        }
                      },
                      "type": "object"
                    },
                    "meta": {
                      "properties": {
                        "computed_at": {
                          "description": "RFC 3339 UTC with milliseconds",
                          "type": "string"
                        },
                        "deterministic": {
                          "type": "boolean"
                        },
                        "disclaimer": {
                          "type": "string"
                        },
                        "price_usd": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string"
                        },
                        "sources": {
                          "items": {
                            "required": [
                              "id",
                              "version",
                              "published"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "request_id",
                        "computed_at",
                        "price_usd",
                        "deterministic",
                        "disclaimer"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "route": {
                      "const": "/v1/time/business-days"
                    },
                    "version": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "route",
                    "version",
                    "data",
                    "meta"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.duoleads.com",
    "manifest_name": "api.duoleads.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "data": {
        "business_days": 0,
        "calendar_days": 0,
        "calendar_days_spanned": 0,
        "days": 0,
        "direction": "string",
        "from": "string",
        "holiday_days": 0,
        "holidays_matched": [
          "string"
        ],
        "result": "string",
        "skipped": [
          {
            "date": "string",
            "reason": "string",
            "weekday": "string"
          }
        ],
        "skipped_total": 0,
        "skipped_truncated": true,
        "weekend_days": 0
      },
      "meta": {
        "computed_at": "string",
        "deterministic": true,
        "disclaimer": "string",
        "price_usd": "string",
        "request_id": "string",
        "sources": [
          {}
        ]
      },
      "ok": null,
      "route": null,
      "version": "string"
    },
    "type": "string"
  }
}