当我试图使用CURL:(这里的示例:)创建消息时
curl https://api.stocktwits.com/api/2/messages/create.json -F access_token=<access_token> -F body="Creating a new message with a chart. \$ticker" -F chart="http://i.imgur.com/vMlZa.gif"
一切正常工作。
但当我替换图表并尝试另一个请求时:
curl https://api.stocktwits.com/api/2/mes
我的目标是通过Python从stocktwits下载tweet。
我找到了杰森·豪里写的。遗憾的是,我没能让它运行起来。到目前为止,我所做的是下载"api.py“和"requestors.py”脚本,并在后面的“ST_ACCESS_TOKEN”中替换为我的访问令牌。但是,当我运行命令get_watched_stocks(my_watchlist_id)时,我得到以下错误:
ipython-input-12-b889976b3838> in get_watched_stocks(wl_id)
115 """ Get list of s
我已经获得了消费者密钥、消费者秘密和访问令牌,但我不知道如何获取访问令牌秘密。这段代码可以工作,但我只需要访问令牌密码。提前感谢!
#!/usr/bin/python
#Import the necessary methods from tweepy library
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
#Variables that contains the user credentials to access stocktw
我尝试从Amazon AWS实例使用stocktwits api,但它总是回复
"{"response":{"status":429},"errors":[{"message":"Rate limit exceeded. Client may not make more than 200 requests an hour."}]}"
我尝试从两个不同的手动输入以下应用程序接口调用,都返回了相同的错误。在我家用笔记本电脑上的Chrome浏览器上,它工作正常,并返回了预期的json。
是否所有AWS都