FinMind:使用Python查全球股價、債券、原油價格

台灣股價,財報,歷年配息,融資融券,外資買賣

from FinMind.Mining import Mind

_2330 = Mind.Stock('2330','2019-01-01')
print(_2330.StockPrice)
_2330.FinancialStatements
_2330.ShareHolding
_2330.InstitutionalInvestors
_2330.MarginPurchaseShortSale
_2330.MonthRevenue
_2330.HoldingSharesPer
_2330.BalanceSheet

_2330.StockPrice['move_average'] = Mind.MoveAverage( _2330.StockPrice,days = 5,variable = 'close')
_2330.StockPrice['RSV'] = Mind.RSV(_2330.StockPrice,days = 5)
_2330.StockPrice['BIAS'] = Mind.BIAS(_2330.StockPrice,days = 5)

各國匯率

data = Load.FinData(dataset = 'ExchangeRate',select = ['Japan'],date = '2019-02-21')

各國央行利率

data = Load.FinData(dataset = 'InterestRate',select = ['ECB'],date = '2018-10-10')

各國債券

data = Load.FinData(dataset = 'Governmentbond',select = ['Canada 2-Month'],date = '2018-10-10')

金價

data = Load.FinData(dataset = 'GoldPrice',date = '2019-02-21')

油價

data = Load.FinData(dataset = 'CrudeOilPrices',select = ['Brent'],date = '2019-01-01')

Financial Data

Written by

Machine Learning / Deep Learning / Python / Flutter cakeresume.com/yanwei-liu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store