No project description provided
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fugle-trade-0.3.0.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for fugle_trade-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f6ae84fd03abb180651a25bd6f29ffe520f610f576001e7ab09f3a811c2df76 |
|
MD5 | 94da5ecd1f74b9310c7fce4031264dbb |
|
BLAKE2b-256 | fa91b8f9c3a969066e8dd1b01e32621b7d21c9d24ebe75853205c6271e96037d |