# Fugle Trade Python SDK
## 事前準備
可以參考 https://developer.fugle.tw/docs/trading/prerequisites 完成申請金鑰相關步驟
## QuickStart
```python
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
[MIT](LICENSE)
Raw data
{
"_id": null,
"home_page": "https://github.com/fugle-dev/fugle-trade-python#readme",
"name": "fugle-trade",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.7",
"maintainer_email": null,
"keywords": "fugle, trade, stock",
"author": "Fortuna Intelligence Co., Ltd.",
"author_email": "development@fugle.tw",
"download_url": "https://files.pythonhosted.org/packages/65/1e/7d1675cf4c7e4add2f7a2980d2df3aeae9485bafc997a320b3617c9ef3cb/fugle_trade-1.2.0.tar.gz",
"platform": null,
"description": "# Fugle Trade Python SDK\n\n## \u4e8b\u524d\u6e96\u5099\n\n\u53ef\u4ee5\u53c3\u8003 https://developer.fugle.tw/docs/trading/prerequisites \u5b8c\u6210\u7533\u8acb\u91d1\u9470\u76f8\u95dc\u6b65\u9a5f\n\n## QuickStart\n\n```python\nfrom configparser import ConfigParser\nfrom fugle_trade.sdk import SDK\nfrom fugle_trade.order import OrderObject\nfrom fugle_trade.constant import (APCode, Trade, PriceFlag, BSFlag, Action)\n\nconfig = ConfigParser()\nconfig.read('./config.ini')\nsdk = SDK(config)\nsdk.login()\n\norder = OrderObject(\n buy_sell = Action.Buy,\n price = 28.00,\n stock_no = \"2884\",\n quantity = 2,\n ap_code = APCode.Common\n)\nsdk.place_order(order)\n\n```\n\n## Detail\n\n\u6240\u6709 function \u8ddf response \u53ef\u4ee5\u5728\u5c08\u5c6c\u6587\u4ef6\u9801\u67e5\u5230\u76f8\u95dc\u8cc7\u8a0a\n\nhttps://developer.fugle.tw/docs/trading/reference/python\n\n\n## License\n\n[MIT](LICENSE)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": null,
"version": "1.2.0",
"project_urls": {
"Documentation": "https://developer.fugle.tw/docs/trading/intro",
"Homepage": "https://github.com/fugle-dev/fugle-trade-python#readme",
"Repository": "https://github.com/fugle-dev/fugle-trade-python"
},
"split_keywords": [
"fugle",
" trade",
" stock"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d3f8037cd43522caa237872d4743931a13d9820ed99ad31cc344d0ed36496f9c",
"md5": "55e4ba289019498d2a689ea22e28af67",
"sha256": "2839ab7a7986ca84071dc51f4607e243f4c74438c01d1a37b513942be7ebe0de"
},
"downloads": -1,
"filename": "fugle_trade-1.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "55e4ba289019498d2a689ea22e28af67",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.7",
"size": 8807,
"upload_time": "2024-07-16T08:30:06",
"upload_time_iso_8601": "2024-07-16T08:30:06.062708Z",
"url": "https://files.pythonhosted.org/packages/d3/f8/037cd43522caa237872d4743931a13d9820ed99ad31cc344d0ed36496f9c/fugle_trade-1.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "651e7d1675cf4c7e4add2f7a2980d2df3aeae9485bafc997a320b3617c9ef3cb",
"md5": "d497e153b13d718c345e660aab8671a8",
"sha256": "543eda12097f9bbc16970e95265f64a0f3f28d26e7691e6c3571226127511fdf"
},
"downloads": -1,
"filename": "fugle_trade-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "d497e153b13d718c345e660aab8671a8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.7",
"size": 7269,
"upload_time": "2024-07-16T08:30:07",
"upload_time_iso_8601": "2024-07-16T08:30:07.596014Z",
"url": "https://files.pythonhosted.org/packages/65/1e/7d1675cf4c7e4add2f7a2980d2df3aeae9485bafc997a320b3617c9ef3cb/fugle_trade-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-16 08:30:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "fugle-dev",
"github_project": "fugle-trade-python#readme",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "fugle-trade"
}