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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for pytickertick-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a9e3da357dc700480ac0edc1261d7894e28156c58d905cdea508fe3e5cd24c0 |
|
MD5 | 1569b97b27adf670bdc7d2db83f8e9e8 |
|
BLAKE2b-256 | 6ef13b905d3fab2889105a0f5255d561c98f96e05af38cd53f8ff9da6e824e8f |