📌 置頂: 請把任何比你弱勢的用路人當作你的至親對待。跟前車保持安全車距 (2秒以上)。

監控川普推特轉錢的 trump2cash

In

,

Tags:



by

在看股票自動交易 bot 的時候發現這個:trump2cash

顧名思義,其演算法核心就是盯著川普的推特言論,用 google cloud NL API 來分析公司,再透過 tradeking API 下單。太狂啦。

The code is written in Python and is meant to run on a Google Compute Engine instance. It uses the Twitter Streaming APIs to get notified whenever Trump tweets. The entity detection and sentiment analysis is done using Google’s Cloud Natural Language API and the Wikidata Query Service provides the company data. The TradeKing API does the stock trading.

 


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.