Coder Social home page Coder Social logo

qutke, R Package for Qutke project

R Package for Qutke project provided by Qutke.com .

https://console.qutke.com/api.html

INSTALL

library(devtools)
install_github('qutke/qutke')

DEMO

library(qutke)

key<-'ff5ed58edf645c6581e8148db1130dc310fbab5fdccc4b2a9ea0be30f4128ace'
init(key)


keyMap1<-getMD(data='keyMap',qtid='000001.SZ,000001.SH',key=key)
keyMap2<-getMD(data='keyMap',qtid=c('000001.SZ','000001.SH'),key=key)

stock1<-getDailyQuote(data='mktDaily',qtid=c('000001.SZ','000002.SZ'),key=key)
stock2<-getDailyQuote(data='mktDaily',startdate='2015-10-01',enddate='2015-10-10',key=key)
stock3<-getDailyQuote(data='mktFwdDaily',qtid=c('000001.SZ','000002.SZ'),key=key)
stock4<-getDailyQuote(data='mktFwdDaily',startdate='2015-10-01',enddate='2015-10-10',key=key)
stock5<-getDailyQuote(data='mktDataIndex',qtid=c('000001.SH','000002.SH'),key=key)
stock6<-getDailyQuote(data='mktDataIndex',startdate='2015-10-01',enddate='2015-10-10',key=key)
stock7<-getDailyQuote(data='securitiesMargin',SecuMarket=90,key=key)
stock8<-getDailyQuote(data='securitiesMargin',startdate='2015-10-01',enddate='2015-10-10',key=key)
stock9<-getDailyQuote(data='fwdRet',startdate='2016-01-05',enddate='2016-01-07',key=key)
stock10<-getDailyQuote(data='fwdRet',qtid=c('000001.SZ','000002.SZ'),key=key)
stock11<-getDailyQuote(data='fwdRet_Index',startdate='2016-01-05',enddate='2016-01-07',key=key)
stock12<-getDailyQuote(data='fwdRet_Index',qtid=c('000001.SH','000002.SH'),key=key)
stock13<-getDailyQuote(data='volatility',startdate='2016-01-05',enddate='2016-01-07',key=key)
stock14<-getDailyQuote(data='volatility',qtid=c('000001.SZ','000002.SZ'),key=key)
stock15<-getDailyQuote(data='thirdBoardQuote',startdate='2016-01-05',enddate='2016-01-07',key=key)
stock16<-getDailyQuote(data='thirdBoardQuote',qtid=c('835528.SB'),key=key)
stock17<-getDailyQuote(data='blockTradingIntent',startdate='2015-11-30',enddate='2016-01-20',key=key)
stock18<-getDailyQuote(data='blockTradingIntent',qtid=c('122915.SH'),key=key)
stock19<-getDailyQuote(data='spotTransaction',startdate='2016-01-11',enddate='2016-01-20',key=key)
stock20<-getDailyQuote(data='spotTransaction',ProductCode=c('6989','6987'),key=key)
stock21<-getDailyQuote(data='interestRateIndex',startdate='2015-06-18',enddate='2015-06-21',key=key)
stock22<-getDailyQuote(data='interestRateIndex',startdate='2015-06-20',enddate='2016-01-20',key=key)
stock23<-getDailyQuote(data='fundsPerformance',qtid=c('510060.SH','510070.SH'),key=key)
stock24<-getDailyQuote(data='fundsPerformance',startdate='2016-01-01',enddate='2016-01-20',key=key)
stock25<-getDailyQuote(data='tradingCapitalFlow',qtid=c('510060.SH','510070.SH'),key=key)
stock26<-getDailyQuote(data='tradingCapitalFlow',startdate='2016-01-11',enddate='2016-01-12',key=key)
stock27<-getDailyQuote(data='stockNewestPerformance',qtid=c('510060.SH','510070.SH'),key=key)
stock28<-getDailyQuote(data='stockNewestPerformance',startdate='2016-01-11',enddate='2016-01-12',key=key)

industry1<-getIndustry(data='industryType',date='2015-12-02',key=key)
industry2<-getIndustry(data='industryType',date='2015-12-02',qtid=c('000001.SZ','000002.SZ'),key=key)
industry3<-getIndustry(data='industryType',date='2015-12-02',CompanyCode=6,key=key)
industry4<-getIndustry(data='swsIndexL1',key=key)
industry6<-getIndustry(data='mktData_SWSIndex',date='2015-12-02',qtid=c('801890','801770'),key=key)
industry7<-getIndustry(data='indexWeight_SWS',date='2015-12-02',qtind='801180',qtid=c('000001.SZ','000002.SZ'),key=key)

date1<-getDate(data='tradingDay',key=key)
date2<-getDate(data='tradingDay',startdate='2015-10-10',enddate='2015-12-30',key=key)

qtstock1<-getQtStock(data='stockBeta',qtid=c('000001.SZ','000002.SZ'),key=key)
qtstock2<-getQtStock(data='stockBeta',startdate='2015-10-01',enddate='2015-10-10',key=key)
qtstock3<-getQtStock(data='financialIndex',qtid=c('000001.SZ','000002.SZ'),key=key)
qtstock4<-getQtStock(data='financialIndex',startdate='2015-10-10',enddate='2015-12-30',key=key)
qtstock5<-getQtStock(data='indexWeight',qtid=c('000001.SZ','000002.SZ'),key=key)
qtstock6<-getQtStock(data='indexWeight',startdate='2015-10-10',enddate='2015-10-20',key=key)

companyInfo1<-getCompanyInfo(data='shareStru',CompanyCode='224448',date='2016-01-07',key=key)

Qutke.com's Projects

books icon books

【编程随想】收藏的电子书清单(多个学科,含下载链接)

cobra icon cobra

Source Code Security Audit (源代码安全审计)

ruibe icon ruibe

用于对外经济贸易大学金融培训的R包

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.