2023.01 將tradingview策略的訊號自動發送至bingX交易所
使用heroku當作雲端站台時所需要的子項目
交易員開平倉程式碼範例
- 於交易所創建api後填入
api_key = "" # put your api_key
secret_key = "" # put your secret_key
在tradingview alert中訊息欄所放置之訊息,可藉由快訊提取自己所需的部分在程式中使用
data = json.loads(request.data)
- 在 command 中輸入 flask run 以在本地端進行測試
- 測試訊息可使用 tradingview alert 傳出之訊息
- 使用 insomnia 將訊號 post 至本地端 http://localhost:5000/webhook
- 確認沒問題即可將程式推上雲端主機完成運行
如果有任何問題歡迎提出issue, 或直接 email 我 parker178912.en08@nycu.edu.tw !!
Feel free to post issue if there are some problems, or you can email me by parker178912.en08@nycu.edu.tw .