mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-08-07 01:33:52 +00:00
fix: handle non-finite msn key ratios
This commit is contained in:
parent
e2c0425a3b
commit
19748d397e
9 changed files with 484 additions and 15 deletions
19
tests/fixtures/msn_keyratios_infinity.json
vendored
Normal file
19
tests/fixtures/msn_keyratios_infinity.json
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
[
|
||||
{
|
||||
"companyMetrics": [
|
||||
{
|
||||
"year": "2025",
|
||||
"fiscalPeriodType": "TTM",
|
||||
"revenueGrowthRate": 8.1,
|
||||
"earningsGrowthRate": 12.1,
|
||||
"priceToEarningsRatio": "Infinity",
|
||||
"priceToBookRatio": 4.6,
|
||||
"roe": 19.8,
|
||||
"profitMargin": 44.2,
|
||||
"debtToEquityRatio": 0.75,
|
||||
"currentRatio": 1.4,
|
||||
"roaTTM": 3.79
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
19
tests/fixtures/msn_keyratios_negative_infinity.json
vendored
Normal file
19
tests/fixtures/msn_keyratios_negative_infinity.json
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
[
|
||||
{
|
||||
"companyMetrics": [
|
||||
{
|
||||
"year": "2025",
|
||||
"fiscalPeriodType": "TTM",
|
||||
"revenueGrowthRate": 8.1,
|
||||
"earningsGrowthRate": 12.1,
|
||||
"priceToEarningsRatio": "-Infinity",
|
||||
"priceToBookRatio": 4.6,
|
||||
"roe": 19.8,
|
||||
"profitMargin": 44.2,
|
||||
"debtToEquityRatio": "-Infinity",
|
||||
"currentRatio": 1.4,
|
||||
"roaTTM": 3.79
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue