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.

Installation

pip install PyTwits

Example Usage

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

import pytwits


def main():

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


if __name__ == '__main__':
    main()

Output

Symbol: AAPL - Title: Apple Inc.

Documentation

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

License

MIT

Project details


Download files

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

Source Distribution

PyTwits-1.0.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

PyTwits-1.0.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file PyTwits-1.0.1.tar.gz.

File metadata

  • Download URL: PyTwits-1.0.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for PyTwits-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f7de0f248dbed9afc43674935cb506dd9e6850603daf0e08ab3c0dcb8d68fd4c
MD5 3ef75ccc4a08800fe5b3c08c00bf7efc
BLAKE2b-256 787b9c7787389343ca337b22bfa1f8904dfcf7bf0f7b20345f47c216067b53f1

See more details on using hashes here.

File details

Details for the file PyTwits-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: PyTwits-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for PyTwits-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b7b4d480cfe60671a996bc69e63dbee546f7689e39a4d934ca4c4ac445ca95c7
MD5 87ce07a726acf804e6edae872830e3d0
BLAKE2b-256 a9a7ec2487fa83324550a77ade4d532c4e42f9442c7069c18a7ccc35c4f0abd6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page