@@ -24,18 +24,21 @@ Any quotes data displayed on finviz.com is delayed by 15 minutes for NASDAQ, and
24
24
25
25
from finviz.screener import Screener
26
26
27
- filters = ['exch_nasd', 'cap_large'] # Shows companies in NASDAQ with a market cap from $10bln. to $200bln.
28
- order = '-price' # Orders the results by price descending
29
-
30
- stocks = Screener(filters, order, rows=50) # Get the first 50 results
27
+ filters = ['exch_nasd', 'idx_sp500'] # Shows companies in NASDAQ which are in the S&P500
28
+ stocks = Screener(filters=filters, order='price') # Get the first 50 results sorted by price ascending
31
29
32
30
# Export the screener results to .csv
33
31
stocks.to_csv()
34
32
35
33
# Create a SQLite database
36
34
stocks.to_sqlite()
37
35
38
- ### Download results as a chart
36
+ # Print the table into the console
37
+ print(stocks)
38
+
39
+ ![ alt text] ( https://i.imgur.com/cb7UdxB.png )
40
+
41
+ ### Download results as charts
39
42
40
43
stocks.get_charts(period='m', chart_type='c', size='l', ta=False) # Monthly, Candles, Large, No Technical Analysis
41
44
@@ -52,16 +55,7 @@ Any quotes data displayed on finviz.com is delayed by 15 minutes for NASDAQ, and
52
55
# ta=True > display technical analysis
53
56
# ta=False > ignore technical analysis
54
57
58
+ ### Documentation
55
59
56
-
57
- Below, you can see all of the possible arguments that can be passed through Screener():
58
-
59
- | Argument | Type | Example | Default |
60
- | :--- | :---: | :---: | :---: |
61
- | tickers | list | [ 'AAPL', 'ATVI', 'TSLA'] | None |
62
- | filters | list | [ 'exch_nasd', 'cap_large'] | None |
63
- | order | string | '-price' | None |
64
- | signal | string | 'ta_topgainers' | None |
65
- | table | string | 'Performance' | 'Overview' |
66
- | rows | string | 43 | Maximum |
60
+ You can read the rest of the documentation inside the docstrings.
67
61
0 commit comments