示例#1
0
文件: demo.py 项目: yao5382/FinMind
        date = date)
print( UKStockPrice[:5] )
#---------------------------------------------------------------
print('load EuropeStockInfo')
EuropeStockInfo = Load.FinData(dataset = 'EuropeStockInfo')
print( EuropeStockInfo[:5] )

print('load EuropeStockPrice {} '.format(EuropeStockInfo.loc[2,'stock_id']))
EuropeStockPrice = Load.FinData(
        dataset = 'EuropeStockPrice',
        select = EuropeStockInfo.loc[2,'stock_id'],
        date = date)
print( EuropeStockPrice[:5] )
#---------------------------------------------------------------
print('load ExchangeRate list')
ExchangeRate_list = Load.FinDataList(dataset = 'ExchangeRate')
print( ExchangeRate_list[:5] )

print('load ExchangeRate {}'.format(ExchangeRate_list[3]))
ExchangeRate = Load.FinData(
        dataset = 'ExchangeRate',
        select = ExchangeRate_list[3],
        date = date)
print( ExchangeRate[:5] )

#---------------------------------------------------------------
print('load InstitutionalInvestors list')
InstitutionalInvestors_list = Load.FinDataList(dataset = 'InstitutionalInvestors')
print( InstitutionalInvestors_list[:5] )

print('load InstitutionalInvestors {}'.format(InstitutionalInvestors_list[3]))
示例#2
0
                            select=UKStockInfo.loc[2, 'stock_id'],
                            date=date)
print(UKStockPrice[:5])
#---------------------------------------------------------------
print('load EuropeStockInfo')
EuropeStockInfo = Load.FinData(dataset='EuropeStockInfo')
print(EuropeStockInfo[:5])

print('load EuropeStockPrice {} '.format(EuropeStockInfo.loc[2, 'stock_id']))
EuropeStockPrice = Load.FinData(dataset='EuropeStockPrice',
                                select=EuropeStockInfo.loc[2, 'stock_id'],
                                date=date)
print(EuropeStockPrice[:5])
#---------------------------------------------------------------
print('load ExchangeRate list')
ExchangeRate_list = Load.FinDataList(dataset='ExchangeRate')
print(ExchangeRate_list[:5])

print('load ExchangeRate {}'.format(ExchangeRate_list[3]))
ExchangeRate = Load.FinData(dataset='ExchangeRate',
                            select=ExchangeRate_list[3],
                            date=date)
print(ExchangeRate[:5])

#---------------------------------------------------------------
print('load InstitutionalInvestors list')
InstitutionalInvestors_list = Load.FinDataList(
    dataset='InstitutionalInvestors')
print(InstitutionalInvestors_list[:5])

print('load InstitutionalInvestors {}'.format(InstitutionalInvestors_list[3]))
示例#3
0
文件: demo.py 项目: ptabc/FinMind
print(UKStockPrice[:5])
# ---------------------------------------------------------------
print("load EuropeStockInfo")
EuropeStockInfo = Load.FinData(dataset="EuropeStockInfo")
print(EuropeStockInfo[:5])

print("load EuropeStockPrice {} ".format(EuropeStockInfo.loc[2, "stock_id"]))
EuropeStockPrice = Load.FinData(
    dataset="EuropeStockPrice",
    select=EuropeStockInfo.loc[2, "stock_id"],
    date=date,
)
print(EuropeStockPrice[:5])
# ---------------------------------------------------------------
print("load ExchangeRate list")
ExchangeRate_list = Load.FinDataList(dataset="ExchangeRate")
print(ExchangeRate_list[:5])

print("load ExchangeRate {}".format(ExchangeRate_list[3]))
ExchangeRate = Load.FinData(dataset="ExchangeRate",
                            select=ExchangeRate_list[3],
                            date=date)
print(ExchangeRate[:5])

# ---------------------------------------------------------------

print("load InstitutionalInvestors")
InstitutionalInvestors = Load.FinData(dataset="InstitutionalInvestors",
                                      date=date)
print(InstitutionalInvestors[:5])
示例#4
0
print(UKStockPrice[:5])
# ---------------------------------------------------------------
print("load EuropeStockInfo")
EuropeStockInfo = Load.FinData(dataset="EuropeStockInfo")
print(EuropeStockInfo[:5])

print("load EuropeStockPrice {} ".format(EuropeStockInfo.loc[2, "stock_id"]))
EuropeStockPrice = Load.FinData(
    dataset="EuropeStockPrice",
    select=EuropeStockInfo.loc[2, "stock_id"],
    date=date,
)
print(EuropeStockPrice[:5])
# ---------------------------------------------------------------
print("load ExchangeRate list")
ExchangeRate_list = Load.FinDataList(dataset="ExchangeRate")
print(ExchangeRate_list[:5])

print("load ExchangeRate {}".format(ExchangeRate_list[3]))
ExchangeRate = Load.FinData(dataset="ExchangeRate",
                            select=ExchangeRate_list[3],
                            date=date)
print(ExchangeRate[:5])

# ---------------------------------------------------------------

print("load InstitutionalInvestors")
InstitutionalInvestors = Load.FinData(dataset="InstitutionalInvestors",
                                      date=date)
print(InstitutionalInvestors[:5])