Eight contributors, seven charts
For each of the seven planets Sun to Saturn, eight contributors - the seven planets plus the lagna - each award a point (bindu) to a fixed set of houses counted from where the contributor sits. The tables come from Brihat Parashara Hora Shastra chapter 76. A sign's score in a planet's chart is the number of contributors that gave it a bindu, 0 to 8. Rahu and Ketu have no chart, and the lagna contributes but gets no chart of its own.
POST /v1/ashtakavarga returns the seven charts as charts[], each with bindus_per_sign (12 numbers, index 0 = Aries) and total.
The totals are a checksum
Because each contributor awards a fixed number of bindus wherever it sits, each planet's total is the same for every chart ever cast. If your own implementation or an imported chart disagrees, something is wrong:
| Sun | Moon | Mars | Mercury | Jupiter | Venus | Saturn | Sum |
|---|---|---|---|---|---|---|---|
| 48 | 49 | 39 | 54 | 56 | 52 | 39 | 337 |
Only the distribution across signs depends on the birth. For the sample birth the Sun's chart is [2, 5, 3, 4, 4, 4, 4, 6, 4, 4, 6, 2] - 48 - and Jupiter's peaks at 7 in Capricorn.
Sarvashtakavarga
POST /v1/sarvashtakavarga adds the seven charts sign by sign. The response carries total and meta.expected_total: 337 so you can assert the two match. For the sample birth:
| Ar | Ta | Ge | Cn | Le | Vi | Li | Sc | Sg | Cp | Aq | Pi |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 17 | 27 | 25 | 31 | 27 | 26 | 31 | 36 | 29 | 30 | 37 | 21 |
The array is indexed by sign, not by house. To show it in house order, rotate it to start at the lagna sign - Virgo for this chart, so house 1 is 26 and house 12 (Leo) is 27.
Reductions are not exposed yet
Classical transit judgements often use reduced figures: trikona shodhana (within each fire/earth/air/water trine) and ekadhipatya shodhana (between the two signs of one lord), and the kakshya split of each sign into eight 3°45′ parts. The engine implements all three, but no endpoint returns them - the API's charts are the unreduced Bhinnashtakavarga and Sarvashtakavarga. If you apply reductions yourself, start from these arrays.
Questions
- What should the Sarvashtakavarga total be?
- 337, for every chart.
POST /v1/sarvashtakavargareturnstotalandmeta.expected_total: 337so you can assert that the two match. - Does the API return the shodhana reductions?
- Not yet. The engine implements trikona shodhana, ekadhipatya shodhana and the kakshya split, but no endpoint returns them; the API's charts are unreduced.