Skip to main content

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

MIT

Project details


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.2.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

fugle_trade-1.2.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file fugle_trade-1.2.0.tar.gz.

File metadata

  • Download URL: fugle_trade-1.2.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.12.4 Linux/6.5.0-1023-azure

File hashes

Hashes for fugle_trade-1.2.0.tar.gz
Algorithm Hash digest
SHA256 543eda12097f9bbc16970e95265f64a0f3f28d26e7691e6c3571226127511fdf
MD5 d497e153b13d718c345e660aab8671a8
BLAKE2b-256 651e7d1675cf4c7e4add2f7a2980d2df3aeae9485bafc997a320b3617c9ef3cb

See more details on using hashes here.

File details

Details for the file fugle_trade-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: fugle_trade-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.12.4 Linux/6.5.0-1023-azure

File hashes

Hashes for fugle_trade-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2839ab7a7986ca84071dc51f4607e243f4c74438c01d1a37b513942be7ebe0de
MD5 55e4ba289019498d2a689ea22e28af67
BLAKE2b-256 d3f8037cd43522caa237872d4743931a13d9820ed99ad31cc344d0ed36496f9c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page