Skip to main content

한국거래소 기준 Datetime Functions 패키지

Project description

TradeDatetime

한국거래소 기준 Datetime Functions 패키지

사용법

패키지 설치 후 최초 1회 다음을 파이썬 인터프리터 또는 쥬피터에서 실행해야 합니다.

!주의 : 데이터 수집에 시간이 꽤 걸리니 자주 실행하면 안됩니다.

import trddt
trddt.build_HolidaysText()

그러면 trddt 패키지가 설치된 경로에 Holidays.txt 파일이 생성됩니다.

편의상 기본적으로 다음 연도(Next Year)까지 수집됩니다.

주식시장 특성상 00시 00분 부터 05시 59분까지는 이전일(어제)로 취급합니다.

예를들어, 오늘이 2023년 8월 11일 새벽 02시 00분 이라고 가정하면

trddt.date(day=None) # 날짜를 특정하지 않으면, 현재시각을 기준으로 자동계산됨
>> datetime.datetime(2023, 8, 10, 0, 0, tzinfo=datetime.timezone(datetime.timedelta(seconds=32400), '대한민국 표준시'))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trddt-0.3.2.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

trddt-0.3.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file trddt-0.3.2.tar.gz.

File metadata

  • Download URL: trddt-0.3.2.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for trddt-0.3.2.tar.gz
Algorithm Hash digest
SHA256 db2bafe760ff0015df7841d01c6b30440ea67426d5ea3d4dafd32842becd1125
MD5 a33fd17c87bc27d5d1aa48647561bb2f
BLAKE2b-256 318fc9c8a50abe4039f6e7d3662f1f497788e6cba002e0c6c85f59ab090c1878

See more details on using hashes here.

File details

Details for the file trddt-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: trddt-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for trddt-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 42aee137613514c3b5fcca1c78a26b05a6a60071298c3e6428520d573436fd38
MD5 e31f43cd72a99df019353747324067a8
BLAKE2b-256 1f1156bf29e1bffa16c9c1ddcabbec771f8ae9d6fdd5ab7c207cb958bc0200f8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page