Skip to content

πŸ“ˆπŸ“Š 졜근 180일간 νŠΉμ • μ£Όμ‹μ˜ μ΅œλŒ€μˆ˜μ΅μ„ μœ„ν•œ 맀수/맀도 λ‚ μ§œ κ³„μ‚°ν•΄μ£ΌλŠ” μ• ν”Œλ¦¬μΌ€μ΄μ…˜ πŸ“‰

Notifications You must be signed in to change notification settings

raccoonback/stock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

34 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

stock

πŸ“‹ Features

  1. Yahoo Finance API 데이터λ₯Ό μ‘°νšŒν•˜μ—¬ 180일간에 μ΅œλŒ€ μˆ˜μ΅μ„ λ‚Ό 수 μžˆλŠ” λ‚ μ§œ ꡬ간 탐색
  2. UniBits API 데이터λ₯Ό μ‘°νšŒν•˜μ—¬ 180일간에 μ΅œλŒ€ μˆ˜μ΅μ„ λ‚Ό 수 μžˆλŠ” λ‚ μ§œ ꡬ간 탐색

πŸ€” Verification

  1. Yahoo Finance API μ΄μš©ν•œ 검증
  • βœ” 일(day), μ£Ό(week) λ‹¨μœ„μ˜ μ΅œλŒ€ 수읡이 동일 μ—¬λΆ€ 확인
  • βœ” 일(day), μ›”(month) λ‹¨μœ„μ˜ μ΅œλŒ€ 수읡이 동일 μ—¬λΆ€ 확인
  ❗ 일(day), μ£Ό(week), μ›”(month)에 λŒ€ν•œ μ˜ˆμ™Έ 처리
  μ£Ό(week), μ›”(month) κ²½μš°μ—λŠ” μ‹œμž‘ λ‚ μ§œκ°€ 각각 첫 번째 μš”μΌ(μ›”μš”μΌ), 1일에 μ‹œμž‘ν•˜κΈ° λ•Œλ¬Έμ— μ˜€μ°¨κ°€ λ°œμƒν•œλ‹€.
  예λ₯Ό λ“€μ–΄μ„œ, λ§ˆμ§€λ§‰ λ‚ μ§œκ°€ 2020-10-21 κ²½μš°μ—λŠ” 일(day)λ‹¨μœ„λ‘œ μ‘°νšŒν•˜λ©΄ μ‹œμž‘ λ‚ μ§œκ°€ 2020-04-24 이닀.
  ν•˜μ§€λ§Œ μ£Ό(week)λ‹¨μœ„λ‘œ μ‘°νšŒν•˜λ©΄ 2020-04-20λΆ€ν„°μ˜ 데이터λ₯Ό κ°€μ Έμ˜€κ²Œ 되고, 윌(month)λ‹¨μœ„λ‘œλŠ” 2020-04-01λΆ€ν„°μ˜ 데이터λ₯Ό κ°€μ Έμ˜¨λ‹€.
  결과적으둜 μ£Ό(week)λ‹¨μœ„μ—μ„œλŠ” 20~23일에 λŒ€ν•œ λ…Έμ΄μ¦ˆ 데이터가 λ°œμƒν•˜κ³ , 윌(month)λ‹¨μœ„μ—μ„œλŠ” 01~23일에 λŒ€ν•œ 잘λͺ»λœ 데이터가 같이 μ‘°νšŒλ˜μ–΄ μ˜€μ°¨κ°€ λ°œμƒν•˜κ²Œ λœλ‹€.

  λ”°λΌμ„œ μ£Ό(week)λ‹¨μœ„ κ²½μš°μ—λŠ” 기쑴의 μ‹œμž‘ λ‚ μ§œλ‘œ λΆ€ν„°μ˜ λ‹€μŒμ£Ό μ›”μš”μΌλ‘œ μ •ν•˜κ³ , μ›”(month)λ‹¨μœ„μ—λŠ” λ‹€μŒλ‹¬ 1일을 μ‹œμž‘λ‚ μ§œλ‘œ μ„€μ •ν•œλ‹€.
  ν¬ν•¨λ˜μ§€ μ•Šμ€ λ‚ μ§œμ˜ λ°μ΄ν„°λŠ” 일(day)λ‹¨μœ„λ‘œ μΆ”κ°€ μ‘°νšŒν•˜μ—¬ 였차λ₯Ό μ œκ±°ν•œλ‹€.
  즉, 2020-04-20 κ²½μš°μ— μ£Ό(week)λ‹¨μœ„λŠ” 04-27일을 μ‹œμž‘ λ‚ μ§œλ‘œ μ„€μ •ν•΄ μ‘°νšŒν•˜κ³  24~26일에 λŒ€ν•œ 데이터λ₯Ό μΆ”κ°€λ‘œ μ‘°νšŒν•œλ‹€.
  λ˜ν•œ μ›”(month)λ‹¨μœ„λŠ” 05-01일을 μ‹œμž‘ λ‚ μ§œλ‘œ μ„€μ •ν•΄ μ‘°νšŒν•˜κ³  24~30일에 λŒ€ν•œ 데이터λ₯Ό μΆ”κ°€λ‘œ μ‘°νšŒν•œλ‹€.
  1. Yahoo Finance API와 UniBits APIλ₯Ό λΉ„κ΅ν•˜μ—¬ 검증
  • βœ” 일(day)λ‹¨μœ„λ‘œ μ΅œλŒ€ μˆ˜μ΅μ„ λ‚΄κΈ° μœ„ν•œ 맀수/맀도 λ‚ μ§œμ™€ μ΅œλŒ€ μˆ˜μ΅κΈˆμ— λŒ€ν•œ 동일 μ—¬λΆ€ 확인

πŸ“Ž ThirdParty API

🧨 Caution

  • Yahoo Finance APIλŠ” μ›”λ‹Ή 500개의 μš”μ²­λ§ŒμœΌλ‘œ μ œν•œν•˜κ³  있기 λ•Œλ¬Έμ—, λ§Žμ€ μš”μ²­ κ³Όμ •μ—μ„œ 데이터 μ‘°νšŒκ°€ λ§‰νž 수 μžˆμŠ΅λ‹ˆλ‹€.
  • λ˜ν•œ, Yahoo Finance API μš”μ²­ μ²˜λ¦¬κ°€ 였래 걸리기 λ•Œλ¬Έμ— μ΄ˆκΈ°μ— 차트 λ Œλ”λ§μ΄ 였래 지연될 수 μžˆμŠ΅λ‹ˆλ‹€.

πŸ•Ά How to run

Prepared

application.yml νŒŒμΌμ— Stock Third Party API μΆ”κ°€ ν•„μš”

Run

./gradlew bootRun

./gradlew test

🏷 Development environment

  • springboot 2.3.4
  • java 8
  • junit
  • thymeleaf
  • javascript

About

πŸ“ˆπŸ“Š 졜근 180일간 νŠΉμ • μ£Όμ‹μ˜ μ΅œλŒ€μˆ˜μ΅μ„ μœ„ν•œ 맀수/맀도 λ‚ μ§œ κ³„μ‚°ν•΄μ£ΌλŠ” μ• ν”Œλ¦¬μΌ€μ΄μ…˜ πŸ“‰

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published