-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtry2.py
More file actions
71 lines (57 loc) · 2.98 KB
/
try2.py
File metadata and controls
71 lines (57 loc) · 2.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
from blue.config import q_ticker
from blue.config import q_income
from blue.config import q_balance_sht
from blue.config import q_cashflw
from blue.config import q_industry
from blue.config import q_quotes
from pprint import pprint
ticker_string = '0001.HK:1211.HK:GOOG.NASDAQ:AMZN.NASDAQ:20MICRONS.NSE:500002.BSE:1301.TYO'
# QE = q_quotes.lastest_quote( ticker_string )
QE = q_quotes.range_quote( '2333.HK:1211.HK', start_date='2017-02-01', end_date='2017-02-09')
# QE = q_quotes.range_quote( '2333.HK:1211.HK', start_date='2017-02-01', end_date=None)
# QE = q_quotes.range_quote( '2333.HK:1211.HK', start_date=None, end_date='2017-02-09')
# QE = q_quotes.range_quote( '0001.HK:1211.HK:GOOG.NASDAQ:AMZN.NASDAQ', start_date=None, end_date='2017-02-09')
# print QE
# for k in QE.keys():
# print k, QE[k][0]['datetime'], '----->', QE[k][-1]['datetime']
# QE = q_quotes.date_quote( '1211.HK:500002.BSE:GOOG.NASDAQ:AMZN.NASDAQ', '2017-02-27:2017-02-28' )
quit()
industry_list = q_industry.getIndustryList( 'BSE:HK' )
print industry_list
# pprint( q_industry.getSectorsOf( 'Transportation/Logistics', bourse='NASDAQ' ), indent=2 )
# Y = q_industry.getTickersOf( 'Automotive', 'Automobiles:Tires', "HK" )
# quit()
##################################
ticker = 'GOOG.NASDAQ'
# ticker = '1301.TYO'
ticker = '0857.HK:0005.HK'
# ticker = '000001.SZ'
# ticker = '600000.SH'
# ticker = '20MICRONS.NSE'
# ticker = '500002.BSE'
ticker = '0175.HK:1211.HK:0857.HK:GOOG.NASDAQ:20MICRONS.NSE'
pprint( q_ticker.getName( ticker ) )
pprint( q_ticker.getIndustry( ticker ) )
# quit()
# print q_ticker.getSector( ticker )
# pprint( q_ticker.getDescription( ticker ) )
# pprint( q_ticker.getEmployeesCount( ticker ) )
# pprint( q_ticker.getStreetAddress( ticker ) )
# quit()
# q_income.jdk()
# q_balance_sht.y2k()
# q_cashflw.tbz()
# X = q_ticker.getIncomeStatementDetails( ticker, '2015:2016', '_FISCAL_NOTE_', return_raw=True)
# print q_ticker.getIncomeStatementDetails( ticker, 2015, 'Sales/Revenue', return_raw=True)
# print q_ticker.getIncomeStatementDetails( ticker, 2015, '_FISCAL_NOTE_', return_raw=True)
# X = q_ticker.getIncomeStatementDetails( ticker, '2015:2016', 'Sales/Revenue:Cost of Goods Sold (COGS) incl. D&A')
# quit()
# X = q_ticker.getIncomeStatementDetails( ticker, None, None )
# X = q_ticker.getBalanceSheetAssetsDetails( ticker, 2015, 'Total Investments and Advances:Net Property, Plant & Equipment:Total Accounts Receivable', return_raw=True)
# X = q_ticker.getBalanceSheetLiabilitiesDetails( ticker, 2015, 'Provision for Risks & Charges:Deferred Taxes:Other Current Liabilities', return_raw=True)
# X = q_ticker.getCashFlowOperatingActivityDetails( ticker, 2015, 'Funds from Operations:Net Operating Cash Flow', return_raw=True)
# X = q_ticker.getCashFlowInvestingActivityDetails( ticker, 2015, 'Net Investing Cash Flow:Purchase/Sale of Investments', return_raw=True)
# X = q_ticker.getCashFlowFinancingActivityDetails( ticker, 2015, None, return_raw=True)
X = q_ticker.getAccountingCurrency(ticker,2015)
pprint( X )
quit()