Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

grs 台灣股市股票股價擷取

主要開發擷取台灣股市(TWSE)股價資料,資料來源 證券交易所網站 。

版本資訊

Authors:

Toomore Chiang

Version:

0.0.1x of 2012/03/10

Python Version:

Python 2.6-2.7

Report Issue or get involved

Quick Start

簡單計算

from grs import stock

g = stock(2618)       # 擷取長榮航股價
print g.MA(5)         # 計算五日均價與持續天數
print g.MAV(5)        # 計算五日均量與持續天數

擷取 12 個月份資料

g = stock(2618, 12)

輸出 CSV 檔

g.out_putfile('/dev/shm/2618.csv')

其他功能

顯示台灣時間:TWTime

適用於其他時區查詢台灣當地時間。

from grs import TWTime

t = TWTime()
t.now                 # 顯示台灣此刻時間
t.localtime           # 顯示當地此刻時間

判斷台灣股市是否開市:twseopen

from grs import twseopen
from datetime import datetime

t = twseopen()

t.Dday(datetime.today())       # 判斷今天是否開市,回傳 True or False
t.Dday(datetime(2012, 12, 22)) # 判斷 2012/12/22 是否開市

Metadata

Release files for grs 0.0.1a0310

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for grs 0.0.1a0310
File Size Uploaded Provenance Actions
grs-0.0.1a0310.tar.gz 9.1 kB Without provenance Details for grs-0.0.1a0310.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for grs 0.0.1a0310
File Interpreter ABI Platform Actions
grs-0.0.1a0310-py2.7.egg Legacy Egg format - - Details for grs-0.0.1a0310-py2.7.egg

Total release size: 22.7 kB

Release files / grs-0.0.1a0310.tar.gz

Download URL grs-0.0.1a0310.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f66a39438c4e2715c7adb0a3eea2056fbc5fa52470d5fd9d3af1742027a19b9d
BLAKE2b-256 checksum
How to use checksums
3f699c5b4a883153daeeb173902f2d5b9a2b203dbd731fa770d5b5e0fd541dcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / grs-0.0.1a0310-py2.7.egg

Download URL grs-0.0.1a0310-py2.7.egg
Size 13.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
2942898a21d3dc33a974bc175d44e4be971bd645ecc84ef69d81fe9a7ce92866
BLAKE2b-256 checksum
How to use checksums
52f2906bbde12c1e001928d5c1145242a389a74929c2bdad2030ebf6ede35ca2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for grs 0.0.1a0310

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page