Skip to main content

An API wrapper for the TickerTick API in Python

Project description

PyTickerTick : An API wrapper for the TickerTick API in Python

Usage

import tickertick as tt
import tickertick.query as query
ticker1 = tt.get_tickers(
    query = 'Ama',
    no = 5
) # Search for any tickers matching 'Ama'

ticker2 = tt.get_tickers(
    query = 'aa',
    no = 2
) # Search for any tickers matching 'aa'

feed1 = tt.get_feed(
    query = query.And(
        query.BroadTicker('aapl'),
        query.StoryType(query.StoryTypes.SEC)
    )
) # SEC filings from Apple Inc.

feed2 = tt.get_feed(
    query = query.Or(
        query.BroadTicker('meta'),
        query.BroadTicker('aapl'),
        query.BroadTicker('amzn'),
        query.BroadTicker('nflx'),
        query.BroadTicker('goog')
    )
) # News stories about FAANG stocks	

feed3 = tt.get_feed(
    query = query.And(
        query.Or(
            query.BroadTicker('meta'),
            query.BroadTicker('goog'),
        ),
        query.Site('reddit')
    )
) # News stories about Meta (meta) and Google (goog) from reddit.com	

feed4 = tt.get_feed(
    query = query.Diff(
        query.Or(
            query.BroadTicker('meta'),
            query.BroadTicker('goog'),
        ),
        query.Site('reddit')
    )
) # News stories about Meta (meta) and Google (goog) not from reddit.com	

feed5 = tt.get_feed(
    query = query.Diff(
        query.Entity('Elon Musk')
        query.Site('nytimes')
    )
) # Stories with Elon Musk in titles not from NY Times	

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

pytickertick-1.0.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

pytickertick-1.0.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

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