No project description provided
Reason this release was yanked:
bug version
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-1.1.0.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for fugle_trade-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c37a1295ca4ccca446446120a4d427671269d98239d297da4b2b0bba11e6d5fc |
|
MD5 | bbdbc6647285c301e9d464dde545d381 |
|
BLAKE2b-256 | 396d34c6e2af6c43689a8fa046bebd84618e71f14fddc0ade3be883df96fdd17 |