Skip to main content
Custom formulas let you adjust the relative weight of each signal group in the Locus composite score. Instead of using a fixed scoring profile, you define your own weighting — emphasizing the signals that matter most for your asset class and investment thesis. Formulas are versioned and can be applied to portfolios. When a portfolio has an active formula, all location scores are computed with the formula weights instead of the default composite.

How weights work

Each formula defines a weight for the eight Locus signal groups: Weights are normalized so they sum to 1.0 before scoring. A weight of 2.0 on business_vitality with 1.0 on everything else means business vitality contributes roughly 22% of the final score instead of the default 12.5%.

GET /api/v1/locus/formulas

Requires session authentication.
List all scoring formulas available to you. This includes system-provided formulas and your custom formulas. Parameters Response
Example

POST /api/v1/locus/formulas

Requires session authentication.
Create a custom scoring formula. If you omit weights_json, Locus uses the default weights for the specified asset class. Parameters Example
Response (HTTP 201)
Any signal group you omit from weights_json defaults to 1.0. Weights are normalized before scoring so only the ratios between groups matter, not the absolute values.

Compare formulas

GET /api/v1/locus/formulas/compare

Requires session authentication.
Score a single H3 cell with multiple formulas side-by-side. Use this to see how different weightings affect the composite score for a specific location before applying a formula to your portfolio. Parameters Response
Example