Fubon Trade Tools
Project description
python
相依性
pyzmq>=23.1, !=23.1.1, <=25.1
https://pyip.org/project/pyzmq/
nest-asyncio>=1.4.3, !=1.5.0, <=1.6
https://pyip.org/project/nest-asyncio/
persizmq>=1.0, !=1.0.0, <=1.0.3
https://pypi.org/project/persizmq/
描述
使用MessageQueue技術進行跨平台跨程序間的訊息傳遞, 主要的功能是讓Python用戶可以對FubonAPI套件傳遞交易訊息, 再由FubonAPI套件與Fubon E01API進行交易串接.
EasyPy我們使用了許多非同步及多執行緒來處理訊息傳遞, 以確保交易訊息傳遞過程式花費最少的等待時間, 且可必免訊息阻塞.
之後, 我們會再陸續更新EasyPy功能, 如支援期貨交易, 提供經濟數據查詢.
安裝
python -m pip install FubonEasyPy
Python3.10.x <3.11
使用
from FubonEasyPy import *
def req_changed(sender, msg):
print('%s' % msg)
def sub_changed(sender, msg):
print('%s' % msg)
t = TradePy("xxx.xxx.xxx.xxx")
t.TradeeventsREQ.Changed += req_changed
t.TradeeventsSUB.Changed += sub_changed
# 交易
t.stock(account="xxxxx", symbol="1101", price=50, qty=1)
#查詢
t.QueryRequest(account="xxxxx")
TradePy(Address:)
Address:為FubonAPI套件的主機位址。
更版記錄
2023.8.0
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file FubonEasyPy-2023.8.9.tar.gz.
File metadata
- Download URL: FubonEasyPy-2023.8.9.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21f03b385804e247b71e2b97e30d48c380fe683e18872d0477f0aef647de4a42
|
|
| MD5 |
1c99e96265eaf50085ff03ebc4e44311
|
|
| BLAKE2b-256 |
ad0d7b3d1b8277e95a72a512635ac0d7239bcf43c6295dd38ae72fd41eaa3893
|
File details
Details for the file FubonEasyPy-2023.8.9-py3-none-any.whl.
File metadata
- Download URL: FubonEasyPy-2023.8.9-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab9c0811a2ff59e1d87f71538e96c324f6d0e356f1ce0a963cacf436440fd597
|
|
| MD5 |
41b50dd327baf440aa1d495ce0f5f025
|
|
| BLAKE2b-256 |
45e9dd7cd55b9f5fb1ad831832d80b5e928904e850d081f63e72c7351767b804
|