Commit d29435c
coins: mark decimals optional and document confidence
Live responses on api.llama.fi and coins.llama.fi return `confidence` on
price entries today, and coingecko-native assets (e.g. coingecko:ethereum)
legitimately omit `decimals`. The schema did not reflect either, so clients
generating types from the spec were either missing `confidence` or
erroneously treating coingecko coins as malformed.
- `/prices/current/{coins}`, `/prices/historical/{timestamp}/{coins}`,
`/chart/{coins}`: add explicit `required` arrays marking decimals optional
- `/prices/current` and `/prices/historical`: add `confidence` property
- `/chart`: already had `confidence` — add matching description
- Mirror the same three changes in the pro spec under /coins/*
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8772d46 commit d29435c
2 files changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
| 530 | + | |
530 | 531 | | |
531 | 532 | | |
532 | 533 | | |
| 534 | + | |
533 | 535 | | |
534 | 536 | | |
535 | 537 | | |
| |||
543 | 545 | | |
544 | 546 | | |
545 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
546 | 553 | | |
547 | 554 | | |
548 | 555 | | |
| |||
626 | 633 | | |
627 | 634 | | |
628 | 635 | | |
| 636 | + | |
629 | 637 | | |
630 | 638 | | |
631 | 639 | | |
| 640 | + | |
632 | 641 | | |
633 | 642 | | |
634 | 643 | | |
| |||
642 | 651 | | |
643 | 652 | | |
644 | 653 | | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
645 | 659 | | |
646 | 660 | | |
647 | 661 | | |
| |||
852 | 866 | | |
853 | 867 | | |
854 | 868 | | |
| 869 | + | |
855 | 870 | | |
856 | 871 | | |
857 | 872 | | |
| 873 | + | |
858 | 874 | | |
859 | 875 | | |
860 | 876 | | |
861 | 877 | | |
| 878 | + | |
862 | 879 | | |
863 | 880 | | |
864 | 881 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11296 | 11296 | | |
11297 | 11297 | | |
11298 | 11298 | | |
| 11299 | + | |
11299 | 11300 | | |
11300 | 11301 | | |
11301 | 11302 | | |
| 11303 | + | |
11302 | 11304 | | |
11303 | 11305 | | |
11304 | 11306 | | |
| |||
11312 | 11314 | | |
11313 | 11315 | | |
11314 | 11316 | | |
| 11317 | + | |
| 11318 | + | |
| 11319 | + | |
| 11320 | + | |
| 11321 | + | |
11315 | 11322 | | |
11316 | 11323 | | |
11317 | 11324 | | |
| |||
11390 | 11397 | | |
11391 | 11398 | | |
11392 | 11399 | | |
| 11400 | + | |
11393 | 11401 | | |
11394 | 11402 | | |
11395 | 11403 | | |
| 11404 | + | |
11396 | 11405 | | |
11397 | 11406 | | |
11398 | 11407 | | |
| |||
11406 | 11415 | | |
11407 | 11416 | | |
11408 | 11417 | | |
| 11418 | + | |
| 11419 | + | |
| 11420 | + | |
| 11421 | + | |
| 11422 | + | |
11409 | 11423 | | |
11410 | 11424 | | |
11411 | 11425 | | |
| |||
11606 | 11620 | | |
11607 | 11621 | | |
11608 | 11622 | | |
| 11623 | + | |
11609 | 11624 | | |
11610 | 11625 | | |
11611 | 11626 | | |
| 11627 | + | |
11612 | 11628 | | |
11613 | 11629 | | |
11614 | 11630 | | |
11615 | 11631 | | |
| 11632 | + | |
11616 | 11633 | | |
11617 | 11634 | | |
11618 | 11635 | | |
| |||
0 commit comments