Skip to main content

PyTwits is a REST-API Wrapper for StockTwits.

Project description

PyTwits is a REST-API Wrapper for the Social Trading Network StockTwits. Written in Python it enables the user to easily interact with StockTwits REST-API.


pip install PyTwits

Example Usage

Following example finds AAPL symbol and prints symbol label and title.

import pytwits

def main():

    stocktwits = pytwits.StockTwits()
    symbols ='search/symbols', q='AAPL')
    aapl = symbols[0]
    print("Symbol: {} - Title: {}".format(aapl.symbol, aapl.title))

if __name__ == '__main__':


Symbol: AAPL - Title: Apple Inc.


Documentation consists of examples for every API entry point. See docs/examples folder.



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PyTwits, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size PyTwits-1.0.1-py3-none-any.whl (7.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size PyTwits-1.0.1.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page