Skip to content

Commit fc155ef

Browse files
committed
WIP
1 parent 4bddfc4 commit fc155ef

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

020_get_outstanding_shares

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tickers_air = [ 'EZJ', 'RYAAY' ] # Ryanair RYA:LN, RYAAY:US, RYAOF over the coun
1111
tickers_social = [ 'NFLX', 'FB', 'TWTR', 'ETSY', 'LNKD' ]
1212
tickers_factory = [ 'TSLA', 'IMG', 'IFX', 'SIE' ]
1313
tickers_online_retail = [ 'AMZN', 'EBAY', 'EBA', 'BABA' ]
14-
tickers_pay = [ 'PYPL', '2PP', 'SQ' ]
14+
tickers_pay = [ 'PYPL', '2PP', 'SQ', 'VM' ]
1515
tickers_it = [ 'GOOG', 'GOOGL', 'AAPL', 'TEAM', 'GDDY' ]
1616
tickers_health = [ 'FIT' ]
1717

@@ -29,9 +29,8 @@ def process_tickers(list, function):
2929

3030
@stopit.threading_timeoutable(default='not finished')
3131
def outstanding_shares(ticker):
32-
database_id = 'RAYMOND'
33-
current_request = database_id + '/' + ticker.upper().strip() + '_TOTAL_COMMON_SHARES_OUTSTANDING_Q'
34-
outstanding_shares_filename = conf_info.fundamentals_dir + 'outstanding_shares_' + database_id + '_' + ticker.upper() + '.csv'
32+
current_request = conf_info.quandl_out_shares_db_id + '/' + ticker.upper().strip() + '_TOTAL_COMMON_SHARES_OUTSTANDING_Q'
33+
outstanding_shares_filename = conf_info.fundamentals_dir + conf_info.get_quandle_outstanding_shares_filename(ticker)
3534

3635
try:
3736
print 'Processing ticker ' + ticker

modules/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*pyc

modules/config_details.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ def get_stock_prices_pre_2016_02_filename(ticker):
1111
return stock_prices_ticker_pre_filename_prefix + ticker.upper() + '.csv'
1212
def get_stock_prices_post_2016_02_filename(ticker):
1313
return stock_prices_ticker_post_filename_prefix + ticker.upper() + '.csv'
14+
15+
quandl_out_shares_db_id = 'RAYMOND'
16+
17+
def get_quandle_outstanding_shares_filename(ticker):
18+
return 'outstanding_shares_' + quandl_out_shares_db_id + '_' + ticker.upper() + '.csv'
19+

modules/config_details.pyc

-1001 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)