Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions src/__mocks__/fixtures/v2/company.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
module.exports = {
'2371': [
2371: [
{
tosyo_33category: 'サービス業',
url: 'http://corporate.kakaku.com/',
company_name: 'カカクコム',
company_name_en: 'Kakaku.com Inc.',
fiscal_month: 3.0,
established_date: '1997/12',
established_date: '1997/12/01',
listing_date: '2003/10/09',
priority_market: 't1',
accounting_standard: 'IFRS',
latest_fiscal_year: 2020.0,
latest_fiscal_quarter: 1.0,
oldest_fiscal_year: 2008.0,
latest_fiscal_year: 2021.0,
latest_fiscal_quarter: 2.0,
oldest_fiscal_year: 2001.0,
oldest_fiscal_quarter: 4.0,
oldest_date: '2003-10-10',
fixed_tier_range: {
oldest_fiscal_year: 2015.0,
oldest_fiscal_quarter: 1.0,
latest_fiscal_year: 2020.0,
latest_fiscal_quarter: 1.0
oldest_fiscal_year: 2016.0,
oldest_fiscal_quarter: 3.0,
latest_fiscal_year: 2021.0,
latest_fiscal_quarter: 2.0,
oldest_date: '2016-11-13T00:00:00.000Z'
}
}
],
Expand Down Expand Up @@ -75,6 +77,10 @@ module.exports = {
name_jp: '取得可能な最古の決算四半期',
unit: 'なし'
},
oldest_date: {
name_jp: '取得可能な最古の日付',
unit: 'なし'
},
fixed_tier_range: {
oldest_fiscal_year: {
name_jp: '定額利用可能な下限の決算年度',
Expand All @@ -91,6 +97,10 @@ module.exports = {
latest_fiscal_quarter: {
name_jp: '定額利用可能な上限の決算四半期',
unit: 'なし'
},
oldest_date: {
name_jp: '定額利用可能な下限の日付',
unit: 'なし'
}
}
}
Expand Down
34 changes: 22 additions & 12 deletions src/__mocks__/fixtures/v3/company.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
module.exports = {
'data': {
data: {
tosyo_33category: 'サービス業',
url: 'http://corporate.kakaku.com/',
company_name: 'カカクコム',
company_name_en: 'Kakaku.com Inc.',
fiscal_month: 3.0,
established_date: '1997/12',
fiscal_month: 3,
established_date: '1997/12/01',
listing_date: '2003/10/09',
priority_market: 't1',
accounting_standard: 'IFRS',
latest_fiscal_year: 2020.0,
latest_fiscal_quarter: 1.0,
oldest_fiscal_year: 2008.0,
oldest_fiscal_quarter: 4.0,
fixed_tier_range: {
oldest_fiscal_year: 2015.0,
oldest_fiscal_quarter: 1.0,
latest_fiscal_year: 2020.0,
latest_fiscal_quarter: 1.0
latest_fiscal_year: 2021,
latest_fiscal_quarter: 2,
oldest_fiscal_year: 2001,
oldest_fiscal_quarter: 4,
oldest_date: '2003-10-10',
fixed_tier_range: {
oldest_fiscal_year: 2016,
oldest_fiscal_quarter: 3,
latest_fiscal_year: 2021,
latest_fiscal_quarter: 2,
oldest_date: '2016-11-13'
}
},
column_description: {
Expand Down Expand Up @@ -73,6 +75,10 @@ module.exports = {
name_jp: '取得可能な最古の決算四半期',
unit: 'なし'
},
oldest_date: {
name_jp: '取得可能な最古の日付',
unit: 'なし'
},
fixed_tier_range: {
oldest_fiscal_year: {
name_jp: '定額利用可能な下限の決算年度',
Expand All @@ -89,6 +95,10 @@ module.exports = {
latest_fiscal_quarter: {
name_jp: '定額利用可能な上限の決算四半期',
unit: 'なし'
},
oldest_date: {
name_jp: '定額利用可能な下限の日付',
unit: 'なし'
}
}
}
Expand Down
82 changes: 0 additions & 82 deletions src/__mocks__/fixtures/v3/daily-property.js

This file was deleted.

127 changes: 68 additions & 59 deletions src/__mocks__/fixtures/v3/daily.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
module.exports = {
column_description: {
cash_market_capital_ratio: {
name_jp: 'キャッシュ時価総額比率',
unit: '%'
},
debt_market_capital_ratio: {
name_jp: '有利子負債/時価総額比率',
unit: '倍'
ticker: {
name_jp: 'ティッカー',
unit: '単位無し'
},
dividend_yield_actual: {
name_jp: '配当利回り(実績)',
unit: '%'
day: {
name_jp: '日付',
unit: '単位無し'
},
dividend_yield_forecast: {
name_jp: '配当利回り(会社予想)',
unit: '%'
trading_volume: {
name_jp: '出来高',
unit: ''
},
ebitda_forecast: {
name_jp: 'EBITDA(会社予想)',
market_capital: {
name_jp: '時価総額',
unit: '百万円'
},
enterprise_value: {
Expand All @@ -28,24 +24,44 @@ module.exports = {
name_jp: 'EPS(会社予想)',
unit: '円'
},
per_forecast: {
name_jp: 'PER(会社予想)',
unit: '倍'
},
pbr: {
name_jp: 'PBR',
unit: '倍'
},
per_pbr: {
name_jp: 'PER×PBR',
unit: '単位無し'
},
ebitda_forecast: {
name_jp: 'EBITDA(会社予想)',
unit: '百万円'
},
ev_ebitda_forecast: {
name_jp: 'EV/EBITDA(会社予想)',
unit: '倍'
},
psr_forecast: {
name_jp: 'PSR(会社予想)',
unit: '倍'
},
pcfr_forecast: {
name_jp: 'PCFR',
unit: '倍'
},
ex_dividend: {
name_jp: '配当金(会社予想)',
unit: '円'
},
listing_years: {
name_jp: '上場年数',
unit: '年'
},
market_capital: {
name_jp: '時価総額',
unit: '百万円'
dividend_yield_forecast: {
name_jp: '配当利回り(会社予想)',
unit: '%'
},
net_income_growth_rate_forecast: {
name_jp: '純利益成長率(直近年度実績→会社予想)',
dividend_yield_actual: {
name_jp: '配当利回り(実績)',
unit: '%'
},
net_sales_growth_rate_forecast: {
Expand All @@ -56,52 +72,45 @@ module.exports = {
name_jp: '営業利益成長率(直近年度実績→会社予想)',
unit: '%'
},
pbr: {
name_jp: 'PBR',
unit: '倍'
},
pcfr_forecast: {
name_jp: 'PCFR',
unit: '倍'
net_income_growth_rate_forecast: {
name_jp: '純利益成長率(直近年度実績→会社予想)',
unit: '%'
},
per_forecast: {
name_jp: 'PER(会社予想)',
debt_market_capital_ratio: {
name_jp: '有利子負債/時価総額比率',
unit: '倍'
},
per_pbr: {
name_jp: 'PER×PBR',
unit: '単位無し'
},
psr_forecast: {
name_jp: 'PSR(会社予想)',
unit: '倍'
cash_market_capital_ratio: {
name_jp: 'キャッシュ時価総額比率',
unit: '%'
},
trading_volume: {
name_jp: '出来高',
unit: ''
listing_years: {
name_jp: '上場年数',
unit: ''
}
},
data: {
ticker: '2371',
day: '2020-09-06',
cash_market_capital_ratio: 4.98944759676063,
debt_market_capital_ratio: 1.48298604408628,
dividend_yield_actual: 1.40154169586545,
dividend_yield_forecast: 1.40154169586545,
ebitda_forecast: null,
enterprise_value: 567189541668.0,
trading_volume: 636600,
market_capital: 550294097166,
enterprise_value: 535358097166,
eps_forecast: 0.0,
ev_ebitda_forecast: null,
ex_dividend: 40.0,
listing_years: 17.0,
market_capital: 587800541668.0,
net_income_growth_rate_forecast: -100.0,
net_sales_growth_rate_forecast: -100.0,
operating_income_growth_rate_forecast: -100.0,
pbr: 13.3959420603934,
pcfr_forecast: 182.603461220255,
per_forecast: null,
pbr: 13.66,
per_pbr: null,
ebitda_forecast: null,
ev_ebitda_forecast: null,
psr_forecast: null,
trading_volume: 437700.0
pcfr_forecast: 170.95,
ex_dividend: 40,
dividend_yield_forecast: 1.5,
dividend_yield_actual: 1.5,
net_sales_growth_rate_forecast: -100.0,
operating_income_growth_rate_forecast: -100.0,
net_income_growth_rate_forecast: -100.0,
debt_market_capital_ratio: 1.6,
cash_market_capital_ratio: 4.31,
listing_years: 16
}
}
Loading