Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Add bcode v3 daily#53

Merged
akiomik merged 5 commits intodevelopmentfrom
add-bcode-v3-daily
Nov 15, 2021
Merged

Add bcode v3 daily#53
akiomik merged 5 commits intodevelopmentfrom
add-bcode-v3-daily

Conversation

@akiomik
Copy link
Copy Markdown
Contributor

@akiomik akiomik commented Nov 15, 2021

No description provided.

@akiomik akiomik requested a review from shoe116 November 15, 2021 07:00
@akiomik akiomik self-assigned this Nov 15, 2021
Comment on lines +48 to +57
public isOndemandDailyApiPeriod(date: DateParam): boolean {
if (date.isLatest()) {
return false
}

const fixedTierRange = this.company['fixed_tier_range']
const fixedTierOldestDate = new Date(fixedTierRange['oldest_date'])

return date.toDate().valueOf() < fixedTierOldestDate.valueOf()
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/daily を呼ぶか /ondemand/daily を呼ぶかの判別用メソッド

import { Daily } from '~/entities/v3/daily'
import { DateParam } from '~/fiscal-periods/date-param'

export function bcodeDaily(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BCODE(ticker, 'YYYY-MM-DD', propertyName) で呼ばれた時に実行される関数本体です

@akiomik akiomik merged commit df55d48 into development Nov 15, 2021
@akiomik akiomik deleted the add-bcode-v3-daily branch November 15, 2021 07:27
@akiomik akiomik mentioned this pull request Nov 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants