TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/open-contracting/cardinal-rs/llms.txt
Use this file to discover all available pages before exploring further.
indicators command calculates procurement indicators and red flags from OCDS compiled releases. It analyzes contracting processes to identify suspicious patterns at the level of individual processes, buyers, procuring entities, and tenderers.
Command Syntax
Arguments
The path to the input file (or
- for standard input), in which each line is a contracting process as JSON text.Options
The path to the settings file. Use
-s as a shorthand. If not provided, default settings are used.Print the number of results per group to standard error. Use
-c as a shorthand.Exclude the “Meta” key from the results object.
Include the “Maps” key, mapping contracting processes to organizations.
Increase verbosity. Use
-v as a shorthand. Can be repeated for more verbosity.Output Format
The command outputs a JSON object with results organized by group:Result Structure
Top-level groups
Results are organized by:
- OCID: Contracting process identifiers
- Buyer: Buyer organization identifiers
- ProcuringEntity: Procuring entity identifiers
- Tenderer: Tenderer organization identifiers
Identifiers
Each group contains identifiers extracted from:
- OCID:
/ocid - Buyer:
/buyer/id - ProcuringEntity:
/tender/procuringEntity/id - Tenderer:
/bids/details[]/tenderers[]/id
Indicator results
Each identifier has indicator codes as keys and decimal values as results. Indicators that didn’t produce results are omitted.
Metadata
Unless
--no-meta is set, a “Meta” key contains quartiles and fences used for outlier detection (rounded to 4 decimals).Usage Examples
Example with Count Output
With the--count flag, the command prints statistics to stderr:
Available Indicators
Red Flags
The following red flags are available. Enable them by adding their section to your settings file.| Code | Title | Description |
|---|---|---|
| R003 | Short submission period | The submission period is too short |
| R018 | Single bid received | Only one tenderer submitted a bid |
| R024 | Price close to winning bid | The percentage difference between the winning bid and second-lowest valid bid is a low outlier |
| R025 | Excessive unsuccessful bids | The ratio of winning bids to submitted bids for a top tenderer is a low outlier |
| R028 | Identical bid prices | Different tenderers submitted bids with the same price |
| R030 | Late bid won | The winning bid was received after the submission deadline |
| R035 | All except winning bid disqualified | Bids are disqualified if not submitted by the single tenderer of the winning bid |
| R036 | Lowest bid disqualified | The lowest submitted bid is disqualified, while the award criterion is price only |
| R038 | Excessive disqualified bids | The ratio of disqualified bids to submitted bids is a high outlier per buyer, procuring entity or tenderer |
| R048 | Heterogeneous supplier | The variety of items supplied by a tenderer is a high outlier |
| R058 | Heavily discounted bid | The percentage difference between the winning bid and second-lowest valid bid is a high outlier |
For detailed methodology and configuration options for each indicator, refer to the individual indicator documentation pages.
Configuration
Configure indicators through a settings file. Initialize one with:Enable an Indicator
Add a section with the indicator code:Disable an Indicator
Delete or comment out the indicator section:Global Exclusions
Exclude procedures from all indicators based on procurement method:Price Comparison Configuration
Some indicators compare bid prices. Configure which procurement methods should be included or excluded from price comparisons:Exclude from Price Comparisons
Include in Price Comparisons
no_price_comparison_procurement_methodsis set and/tender/procurementMethodDetailsmatches, ORprice_comparison_procurement_methodsis set and/tender/procurementMethodDetailsdoesn’t match
Currency Configuration
Set the main currency for monetary comparisons:If not configured, the main currency is set to the first observed currency in the data.
Indicator-Specific Configuration
Each indicator has its own configuration options. Example for R003:Common Exclusions
A contracting process is automatically excluded from all indicators if:- The
ocidisn’t a string - The contracting process (
/tender/status) is cancelled - Relevant organization references don’t set an
id - Monetary values (where relevant) don’t use the main currency
Workflow
Select indicators
Edit your
settings.ini file to enable or disable specific indicators based on your analysis needs.Review results
Analyze the output JSON to identify flagged processes and organizations. Look for patterns and high-risk entities.
Adjust configuration
Fine-tune indicator thresholds and exclusions in
settings.ini to reduce false positives based on your review.Interpreting Results
Indicator Values
All indicator outputs are decimal values:- 1.0: Maximum flag strength (definite red flag)
- 0.0 - 1.0: Proportional values (e.g., 0.8 means 80% of bids were disqualified)
- Outlier indicators: Values indicate how extreme the outlier is
Using the Meta Information
TheMeta key provides statistical context:
- q1: First quartile (25th percentile)
- q3: Third quartile (75th percentile)
- lower_fence/upper_fence: Boundaries for outlier detection
Glossary
Bid
Bid
An offer made by an economic operator as part of a contracting process. Also known as a tender.
Bidder / Tenderer
Bidder / Tenderer
An economic operator that submitted one or more bids as part of a contracting process.
Buyer
Buyer
The organization aiming to conclude a contract with an economic operator or to use the goods, services or works resulting from the contract.
Contracting Process
Contracting Process
All the actions aimed at implementing one or more contracts, including tendering, awarding, contracting and implementation. Also known as a procedure.
Economic Operator
Economic Operator
A person or organization (or group) that offers goods, services or works. Also known as a business, contractor, service provider, supplier or undertaking.
Procuring Entity
Procuring Entity
The organization managing the contracting process. An organization can be both a buyer and a procuring entity.
Submitted (bid)
Submitted (bid)
A bid is submitted if its status is pending, valid, or disqualified. It is not submitted if its status is invited or withdrawn.
Winner
Winner
A tenderer that is awarded a contract.
Next Steps
Prepare Command
Learn how to prepare data before calculating indicators
Coverage Command
Analyze field coverage to ensure data completeness
