Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
songyi00 committed Mar 6, 2024
2 parents 0fc26f8 + 1edafe5 commit d6453ce
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
25 changes: 17 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
# Payout Server
<img width="1317" alt="image" src="https://github.com/Nexters/payout-server/assets/52441906/5db4b8f8-946f-4975-b030-5633e7daa51d">

<p align="center"><img src="https://github.com/Nexters/payout-server/assets/66549638/b2566cc8-724b-4b3a-8824-48926f122319"/></p>

Nexters 24기 저점매수 팀의 미국 주식 배당금 계산 서비스 Payout server repository입니다.

# 🔗 Link
<h3> 📈 미국 배당 투자자를 위한 배당금 진단 서비스, Payout </h3>

- <h5> 1분 내로 간단하게, 배당 포트폴리오 셀프 체크할 수 있어요 </h5>
- <h5> 포트폴리오 밸런스 진단, 섹터별 인사이트를 제공해요 </h5>
- <h5> 월간 / 연간 배당금 체크, 종목별 주요 배당 정보를 알 수 있어요 </h5>


## 🔗 Link
[Payout Link](https://pay-out.us)

# 🛠️ Tech Stack

## 🛠️ Tech Stack
<p align="center"><img width="651" alt="스크린샷 2024-03-02 오전 12 04 28" src="https://github.com/Nexters/payout-server/assets/66549638/493843fe-6da7-4db5-8097-4f221d11669c"></p>

# ⛓️ System architecture
## ⛓️ System architecture
![제목 없음](https://github.com/Nexters/payout-client/assets/66549638/b0961bac-23fc-40da-8de7-2960f6035683)

# 🗺️ ERD
![dividend (1)](https://github.com/Nexters/payout-server/assets/66549638/b46c3017-1e1c-4941-a6cf-85457f2f553f)
## 💻 Backend Developer
|<img src="https://avatars.githubusercontent.com/u/66549638?v=4" width="150" height="150"/>|<img src="https://avatars.githubusercontent.com/u/52441906?v=4" width="150" height="150"/>|
|:-:|:-:|
|[@chominho96](https://github.com/chominho96)|[@songyi00](https://github.com/songyi00)|

Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,9 @@ class StockQueryServiceTest {
@Test
void 종목_상세_정보의_배당날짜를_올해기준으로_반환한다() {
// given
int expectedMonth = 3;
int expectedDayOfMonth = 1;
LocalDate expectedDate = LocalDate.now().minusYears(1).plusDays(1);
int lastYear = LocalDate.now().getYear() - 1;
Instant exDividendDate = LocalDate.of(lastYear, 3, 1).atStartOfDay().toInstant(UTC);
Instant exDividendDate = LocalDate.now().minusYears(1).plusDays(1).atStartOfDay().toInstant(UTC);
Stock appl = StockFixture.createStock(AAPL, Sector.TECHNOLOGY, 2.0);
Dividend dividend = DividendFixture.createDividendWithPaymentDate(appl.getId(), 0.5, exDividendDate);

Expand All @@ -116,7 +115,7 @@ class StockQueryServiceTest {
StockDetailResponse actual = stockQueryService.getStockByTicker(appl.getTicker());

// then
assertThat(actual.earliestPaymentDate()).isEqualTo(LocalDate.of(lastYear + 1, expectedMonth, expectedDayOfMonth));
assertThat(actual.earliestPaymentDate()).isEqualTo(LocalDate.of(lastYear + 1, expectedDate.getMonth(), expectedDate.getDayOfMonth()));
}

@Test
Expand Down
6 changes: 3 additions & 3 deletions batch/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ spring:

schedules:
cron:
stock: "0 2 * * * *"
stock: "0 0 2 * * *"
dividend:
past: "0 4 * * * 0"
future: "0 4 * * * *"
past: "0 0 4 * * 0"
future: "0 0 4 * * *"

financial:
fmp:
Expand Down

0 comments on commit d6453ce

Please sign in to comment.