twder - 新台幣匯率擷取 (New Taiwan Dollar Exchange Rate)
擷取台灣銀行新台幣匯率報價
Quick Start
>>> import twder
>>> twder.currencies()
['CNY', 'THB', 'SEK', 'USD', 'IDR', 'AUD', 'NZD', 'PHP', 'MYR', 'GBP', 'ZAR', 'CHF', 'VND', 'EUR', 'KRW', 'SGD', 'JPY', 'CAD', 'HKD']
>>> twder.now_all() # 擷取目前所有幣別報價
{'THB': ('2017/01/06 16:00', '0.7918', '0.9348', '0.8803', '0.9203'), ...}
# {貨幣代碼: (時間, 現金買入, 現金賣出, 即期買入, 即期賣出), ...}
>>> twder.now('JPY') # 擷取目前特定幣別報價
('2017/01/06 16:00', '0.2668', '0.2778', '0.2732', '0.2772')
# (時間, 現金買入, 現金賣出, 即期買入, 即期賣出)
>>> twder.past_day('JPY') # 擷取昨天報價
[('2017/01/06 09:02:04', '0.2671', '0.2781', '0.2735', '0.2775'), ...]
# [(時間, 現金買入, 現金賣出, 即期買入, 即期賣出), ...]
>>> twder.past_six_month('JPY') # 擷取前六個月報價
[('2017/01/06', '0.2668', '0.2778', '0.2732', '0.2772'), ...]
# [(時間, 現金買入, 現金賣出, 即期買入, 即期賣出), ...]
>>> twder.specify_month('JPY', 2016, 12) # 擷取特定年月報價
[('2016/12/30', '0.2672', '0.2782', '0.2736', '0.2776'), ...]
# [(時間, 現金買入, 現金賣出, 即期買入, 即期賣出), ...]
APIs
currencies()
currency_name_dict()
now(currency)
now_all()
past_day(currency)
past_six_month(currency)
specify_month(currency, year, month)
Metadata
Release files for twder 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| twder-0.2.2.tar.gz | 4.3 kB | Without provenance | Details for twder-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| twder-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for twder-0.2.2-py3-none-any.whl |
Total release size: 8.9 kB
Release files / twder-0.2.2.tar.gz
| Download URL | twder-0.2.2.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc6ffe674aa6288fa46d32cf5f495809ec63687b4d5dbc8531491bf6d1f7686e
|
|
BLAKE2b-256 checksum How to use checksums |
8c2f69beb95fa68f66d4df6ace5917427a6eb953930ad28ad8a945c8ce2671ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.1
|
Release files / twder-0.2.2-py3-none-any.whl
| Download URL | twder-0.2.2-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cec44ffa4b8fb7cfb86ca5715f80c3fe0848b2c044c3873887d83b6312adfce3
|
|
BLAKE2b-256 checksum How to use checksums |
cd61fb61e8b7327aedddd1f90f53582ebcc3ec44161e9f66cede72e894d3c1de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.1
|
Security for twder 0.2.2
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.