Files
louiscklaw a5027646c7 update,
2025-01-31 21:11:36 +08:00

30 lines
706 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

https://openapi.futunn.com/futu-api-doc/opend/opend-cmd.html
連 futu api;
用 python real time track 5-10 隻 stock 嘅 1 minute k line (open, high, low, close)
Q: 你呢個想要幾耐 loop 一次?
A: around 5 sec (API 限制: 每 30 秒内最多请求 10 次查询当日成交接口)
刷新一次,攞 5 - 10 隻 stock
計 kdj;
如果 k < 25 and k > d, 就開倉;
同開倉價相差正負 1% 就平倉
e.g.
...
HKD 101.00 <-- 平倉價
...
HKD 100.00 <-- 假設開倉價
...
HKD 99.00 <-- 平倉價
...
---
同埋想問下可唔可以加多個 condition🙂 如果單個股全日 2 trade 觸發止蝕 stop 嗰隻股 全日所有股如果觸發 5 個止蝕就 stop program
---