test: fixture test

This commit is contained in:
Rasyidan Akbar F. 2026-03-26 18:33:08 +07:00
commit fece94c9fc
7 changed files with 196 additions and 0 deletions

46
tests/fixtures/msn_earnings_bbca.json vendored Normal file
View file

@ -0,0 +1,46 @@
{
"EpsLastYear": 1200.0,
"RevenueLastYear": 100000000000.0,
"Forecast": {
"annual": {
"2026": {
"EpsForecast": 1300.0,
"RevenueForecast": 110000000000.0,
"EarningReleaseDate": "2026-03-15",
"CiqFiscalPeriodType": "2026"
}
},
"quarterly": {
"Q12026": {
"EpsForecast": 330.0,
"RevenueForecast": 28000000000.0,
"EarningReleaseDate": "2026-04-20",
"CiqFiscalPeriodType": "Q12026"
}
}
},
"History": {
"annual": {
"2025": {
"EpsActual": 1250.0,
"EpsSurprise": 20.0,
"EpsSurprisePercent": 1.6,
"RevenueActual": 105000000000.0,
"RevenueSurprise": 500000000.0,
"EarningReleaseDate": "2025-03-15",
"CiqFiscalPeriodType": "2025"
}
},
"quarterly": {
"Q42025": {
"EpsActual": 320.0,
"EpsSurprise": 5.0,
"EpsSurprisePercent": 1.5,
"RevenueActual": 27000000000.0,
"RevenueSurprise": 200000000.0,
"EarningReleaseDate": "2025-11-20",
"CiqFiscalPeriodType": "Q42025"
}
}
}
}

40
tests/fixtures/msn_financials_bbca.json vendored Normal file
View file

@ -0,0 +1,40 @@
[
{
"underlyingInstrument": {
"instrumentId": "bn91jc",
"displayName": "Bank Central Asia Tbk PT",
"shortName": "BBCA",
"symbol": "BBCA.JK"
},
"balanceSheets": {
"currency": "IDR",
"reportDate": "2025-12-31",
"endDate": "2025-12-31",
"currentAssets": {
"cashAndShortTermInvestments": 500000000
},
"equity": {
"totalEquity": 900000000
}
},
"cashFlow": {
"currency": "IDR",
"reportDate": "2025-12-31",
"endDate": "2025-12-31",
"operating": {
"operatingCashFlow": 600000000
}
},
"incomeStatement": {
"currency": "IDR",
"reportDate": "2025-12-31",
"endDate": "2025-12-31",
"revenue": {
"totalRevenue": 1000000000
},
"income": {
"netIncome": 400000000
}
}
}
]

18
tests/fixtures/msn_insights_bbca.json vendored Normal file
View file

@ -0,0 +1,18 @@
[
{
"instrumentId": "bn91jc",
"displayName": "Bank Central Asia Tbk PT",
"insights": [
{
"insightName": "Valuation",
"category": "Valuation",
"insightStatement": "Shares trade near historical averages."
},
{
"insightName": "Asset Quality",
"category": "Risk",
"insightStatement": "Loan quality remains stable."
}
]
}
]

15
tests/fixtures/msn_news_bbca.json vendored Normal file
View file

@ -0,0 +1,15 @@
{
"value": [
{
"id": "news-1",
"title": "BCA reports steady growth",
"url": "https://example.com/news/bca-growth",
"abstract": "BCA delivered steady quarterly growth across lending and deposits.",
"provider": {
"name": "Contoso News"
},
"publishedDateTime": "2026-03-20T10:00:00Z",
"readTimeMin": 3
}
]
}

26
tests/fixtures/msn_profile_bbca.json vendored Normal file
View file

@ -0,0 +1,26 @@
[
{
"id": "bn91jc",
"symbol": "BBCA.JK",
"shortName": "BBCA",
"longName": "Bank Central Asia Tbk PT",
"description": "PT Bank Central Asia Tbk provides commercial banking services in Indonesia.",
"sector": "Financial Services",
"industry": "Banks",
"website": "https://www.bca.co.id",
"fullTimeEmployees": 24100,
"address": "Menara BCA, Grand Indonesia",
"city": "Jakarta",
"country": "Indonesia",
"phone": "+62-21-23588000",
"officers": [
{
"name": "Jahja Setiaatmadja",
"title": "President Director",
"age": 69,
"yearBorn": 1955,
"totalPay": 12000000000
}
]
}
]

View file

@ -0,0 +1,31 @@
{
"count": 2,
"quote": [
{
"symbol": "BBCA.XIDX",
"shortName": "BBCA",
"price": 9875,
"priceChange": 117,
"priceChangePercent": 1.2,
"pricePreviousClose": 9758,
"price52wHigh": 10500,
"price52wLow": 8000,
"accumulatedVolume": 12300000,
"averageVolume": 10000000,
"marketCap": 1215200000000000
},
{
"symbol": "BBRI.XIDX",
"shortName": "BBRI",
"price": 5100,
"priceChange": 210,
"priceChangePercent": 4.3,
"pricePreviousClose": 4890,
"price52wHigh": 5400,
"price52wLow": 3900,
"accumulatedVolume": 22200000,
"averageVolume": 18000000,
"marketCap": 780000000000000
}
]
}

20
tests/fixtures/msn_sentiment_bbca.json vendored Normal file
View file

@ -0,0 +1,20 @@
[
{
"symbol": "BBCA.JK",
"displayName": "Bank Central Asia Tbk PT",
"sentimentStatistics": [
{
"timeRangeName": "1D",
"bullish": 10,
"bearish": 2,
"neutral": 3
},
{
"timeRangeName": "1W",
"bullish": 25,
"bearish": 5,
"neutral": 7
}
]
}
]