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 details)
Built Distribution
File details
Details for the file pytickertick-1.0.0.tar.gz
.
File metadata
- Download URL: pytickertick-1.0.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ac0e9aba160efedc097a7832851ae31505e0847a3035c5b9b59e3dd9e7b5f8c |
|
MD5 | e3d44c12e82879d09224a8e395d37186 |
|
BLAKE2b-256 | 2dce1c1c30ebfb6a97a9e410cb5f9a977dd5052de543f4f5ad46e6624149ae71 |
File details
Details for the file pytickertick-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: pytickertick-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a9e3da357dc700480ac0edc1261d7894e28156c58d905cdea508fe3e5cd24c0 |
|
MD5 | 1569b97b27adf670bdc7d2db83f8e9e8 |
|
BLAKE2b-256 | 6ef13b905d3fab2889105a0f5255d561c98f96e05af38cd53f8ff9da6e824e8f |