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.5.2.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for fugle_trade-0.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45a1190ff15b16adcafdff653af1ca096528b70d7d3a4ac36fd2d0d9394d38fe |
|
MD5 | 3822c9ed0f6ee1e321981e2f90700a9e |
|
BLAKE2b-256 | 8981ecb72af4fcaa5ee1ccfa8212fe7ad7c32da2c7dd067ca462de1bcf8433e1 |