tessa.search

Searching symbols

Main function is tessa.search.search.search, which will return a tessa.search.search_result.SearchResult, offering all kinds of useful functionality.

Example use:

from tessa import search

>>> r = search("roche")                 # search
>>> r.p()                               # print result statistics
>>> r.filter(exchange="EBS").symbols    # filter and get list of resulting symbols

>>> r = search("jenny")                 # another search
>>> r.filter(source="coingecko").symbols # filter for source (i.e., yahoo or coingecko)

>>> r = search("carbon")                # yet another search
>>> r.filter(source="yahoo", type="ETF").symbols # filter for source and type
 1"""
 2# Searching symbols
 3
 4Main function is `tessa.search.search.search`, which will return a
 5`tessa.search.search_result.SearchResult`, offering all kinds of useful functionality.
 6
 7Example use:
 8
 9```python
10from tessa import search
11
12>>> r = search("roche")                 # search
13>>> r.p()                               # print result statistics
14>>> r.filter(exchange="EBS").symbols    # filter and get list of resulting symbols
15
16>>> r = search("jenny")                 # another search
17>>> r.filter(source="coingecko").symbols # filter for source (i.e., yahoo or coingecko)
18
19>>> r = search("carbon")                # yet another search
20>>> r.filter(source="yahoo", type="ETF").symbols # filter for source and type
21```
22
23"""
24
25from .search_result import SearchResult
26from .search import search