Stock
Functions:
-
get_stock_data
–Get stock proces for a given symbol and date range.
-
get_stock_ticker
–Get company stock ticker from its name.
get_stock_data(symbol, start_date, end_date)
Get stock proces for a given symbol and date range.
Parameters:
-
symbol
(str
) –Stock symbol.
-
start_date
(str
) –Start date in the format 'YYYY-MM-DD'.
-
end_date
(str
) –End date in the format 'YYYY-MM-DD'.
Returns:
-
list[tuple]
–List of tuples, each tuple contains a 'YYYY-MM-DD' date and the stock price.
Source code in tapeagents/tools/stock.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
get_stock_ticker(company_name)
Get company stock ticker from its name.
Source code in tapeagents/tools/stock.py
6 7 8 9 10 11 12 13 14 15 16 |
|