Fugle Trade Python SDK
事前準備
可以參考 https://developer.fugle.tw/docs/trading/prerequisites 完成申請金鑰相關步驟
QuickStart
from configparser import ConfigParser
from fugle_trade.sdk import SDK
from fugle_trade.order import OrderObject
from fugle_trade.constant import (APCode, Trade, PriceFlag, BSFlag, Action)
config = ConfigParser()
config.read('./config.ini')
sdk = SDK(config)
sdk.login()
order = OrderObject(
buy_sell = Action.Buy,
price = 28.00,
stock_no = "2884",
quantity = 2,
ap_code = APCode.Common
)
sdk.place_order(order)
Detail
所有 function 跟 response 可以在專屬文件頁查到相關資訊
https://developer.fugle.tw/docs/trading/reference/python
License
Metadata
Release files for fugle-trade 1.2.0
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 |
|---|---|---|---|---|
| fugle_trade-1.2.0.tar.gz | 7.3 kB | Without provenance | Details for fugle_trade-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fugle_trade-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for fugle_trade-1.2.0-py3-none-any.whl |
Total release size: 16.1 kB
Release files / fugle_trade-1.2.0.tar.gz
| Download URL | fugle_trade-1.2.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
543eda12097f9bbc16970e95265f64a0f3f28d26e7691e6c3571226127511fdf
|
|
BLAKE2b-256 checksum How to use checksums |
651e7d1675cf4c7e4add2f7a2980d2df3aeae9485bafc997a320b3617c9ef3cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.12.4 Linux/6.5.0-1023-azure
|
Release files / fugle_trade-1.2.0-py3-none-any.whl
| Download URL | fugle_trade-1.2.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2839ab7a7986ca84071dc51f4607e243f4c74438c01d1a37b513942be7ebe0de
|
|
BLAKE2b-256 checksum How to use checksums |
d3f8037cd43522caa237872d4743931a13d9820ed99ad31cc344d0ed36496f9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.12.4 Linux/6.5.0-1023-azure
|
Security for fugle-trade 1.2.0
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.