MATLAB-package
=========
This is Quandl's MATLAB Package
License: MIT
For more information please contact raymond@quandl.com
## Installation ##
Download the folder "+Quandl" into the directory of your choice. Then within MATLAB go to file >> Set path... and add the directory containing "+Quandl" to the list (if it isn't already). That's it.
Two things to note, the '+' in "+Quandl" is important in the folder name. It tells Matlab to recognize get.m and auth.m as part of the Quandl package. Secondly, make sure you don't add the "+Quandl" folder in set path. You should be adding the folder that contains it.
### Dependencies ###
This package now REQUIRES urlread2. It can be found [here](http://www.mathworks.com/matlabcentral/fileexchange/35693-urlread2).
Unzip the package and place it in the same directory as +Quandl in the folder +urlread2.
## Usage ##
Once you've found the data you'd like to load into MATLAB on Quandl, copy the Quandl code from the description box and past it into the function.
>> data = Quandl.get('NSE/OIL');
To extend your access to the Quandl API, use your api key. To do this sign into your account (or create one) and go to [account settings page](https://www.quandl.com/account/api). Then copy your api key next time you call the function:
>> Quandl.api_key('yourauthenticationtoken');
Subsequently when you call:
>> data = Quandl.get('NSE/OIL');
MATLAB will remember your authentication token for the remainder of the session.
### Parameters ###
* Date truncation: `mydata = Quandl.get('NSE/OIL', 'start_date','yyyy-mm-dd','end_date','yyyy-mm-dd');`
* Frequency Change: `mydata = Quandl.get('NSE/OIL", 'collapse','annual');` ("weekly"|"monthly"|"quarterly"|"annual")
* Transformations: `mydata: = Quandl.get('NSE/OIL','transformation','rdiff');` ("diff"|"rdiff"|"normalize"|"cumulative")
* Return only n number of rows: `mydata = Quandl.get('NSE/OIL','rows',5);`
## Available Data Types ##
There are four options for which datatype you would like your data returned as, you choose your type as follows:
Quandl.get('NSE/OIL','type','ts')
* **Timeseries (default)**: returns a timeseries if only 1 column in data, tscollection if more. `('type','ts')`
* **Financial timeseries** :`('type','fints')`
* **CSV string**: `('type','ASCII')`
* **DataMatrix**: `('type','data')`
* **Cell Strings**: `('type','cellstr')`
As well a cell string array is returned with the headers. The syntax is as follows:
output = Quandl.get('NSE/OIL','type','fints')
[output headers] = Quandl.get('NSE/OIL','type','fints')
## Examples ##
>> data = Quandl.get('NSE/OIL','collapse','monthly');
>> ts = data.Open;
>> ts.TimeInfo.Format = 'yyyy-mm';
>> plot(ts);
## Datatables ##
To access datatables from the datatables api, you can use the Quandl.datatables function:
data = Quandl.datatable('ZACKS/EE')
It returns data in a table.
### Parameters ###
Parameters are specific to each datatable. This datatable's filter parameters are `ticker`, `per_type`, `per_end_date` and `qopts.columns`. The following function call returns the columns, per_end_date, per_type and eps_meant_est for all rows which ticker = AAPL.
data = Quandl.datatable('ZACKS/EE', 'ticker', 'AAPL', 'qopts.columns', {'per_end_date', 'per_type', 'eps_mean_est'})
This call returns all data for Apple and Microsoft:
data = Quandl.datatable('ZACKS/EE', 'ticker', {'AAPL', 'MSFT'})
## ALPHA ##
You can now search inside the Matlab Console
>> Quandl.search('crude oil');
>> Quandl.search('crude oil', 'results', 10, 'page', 3);
It is currently in **ALPHA** and only returns an xml object to the top node of the query results.
## Additional Resources ##
More help can be found at [Quandl](https://www.quandl.com) in our [API](https://www.quandl.com/docs/api) docs.
没有合适的资源?快使用搜索试试~ 我知道了~
基于Matlab的量化投资回测和实盘交易平台源代码,提供一致的回测及实时交易解决方案
共152个文件
m:60个
yaml:26个
txt:18个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 46 浏览量
2024-07-14
17:39:05
上传
评论
收藏 11.22MB ZIP 举报
温馨提示
项目安装 不需要安装,直接下载代码并使用。 您需要将路径添加到Matlab中。假设它被下载到d:\ workspace \ elitequant_matlab中,在Matlab中运行以下命令 javaaddpath('D:\Workspace\EliteQuant_Matlab\source\other\jnacl-0.1.0.jar') javaaddpath('D:\Workspace\EliteQuant_Matlab\source\other\jeromq-0.4.3.jar') javaaddpath('D:\Workspace\EliteQuant_Matlab\source\EliteQuant\+yaml\external\snakeyaml-1.9.jar') addpath('D:\Workspace\EliteQuant_Matlab\source\EliteQuant') 当然,您可以将它们永久添加到你的Matlab搜索路径中,这样您不必在每次开启新的Matlab时手动添加它。但是这是可选的。 回测 配置 strategy 目录下的 config_ba
资源推荐
资源详情
资源评论
收起资源包目录
基于Matlab的量化投资回测和实盘交易平台源代码,提供一致的回测及实时交易解决方案 (152个子文件)
DialogRsp.con 6B
Public.con 6B
QueryRsp.con 6B
Private.con 6B
TradingDay.con 6B
AMZN.csv 144KB
AAPL.csv 140KB
thosttraderapi.dll 1.76MB
EliteQuant.dll 1.57MB
thostmduserapi.dll 951KB
libzmq.dll 312KB
libsodium.dll 265KB
nanomsg.dll 222KB
Diagram.docx 47KB
eqserver.exe 227KB
LiveEngine.fig 28KB
ctp_demo.gif 5.47MB
ib_demo.gif 698KB
.gitignore 435B
selftest_report.html 3KB
jeromq-0.4.3.jar 419KB
snakeyaml-1.9.jar 260KB
jnacl-0.1.0.jar 19KB
libzmq.lib 7.86MB
nanomsg.lib 5KB
EliteQuant.lib 4KB
thosttraderapi.lib 4KB
thostmduserapi.lib 4KB
LiveEngine.m 15KB
urlread2.m 13KB
test_ReadYaml.m 9KB
TabManager.m 8KB
TabManager.m 8KB
DateTime.m 8KB
get.m 7KB
WriteYaml.m 5KB
ReadYamlRaw.m 5KB
BacktestEngine.m 4KB
Position.m 3KB
selftest_yamlmatlab.m 3KB
makematrices.m 3KB
mergeimports.m 3KB
PerformanceManager.m 3KB
doinheritance.m 3KB
search.m 2KB
LiveEventEngine.m 2KB
DataBoard.m 2KB
BacktestDataFeedLocal.m 2KB
BacktestEventEngine.m 2KB
http_paramsToString.m 2KB
MovingAverageCrossStrategy.m 2KB
BacktestDataFeedQuandl.m 2KB
PortfolioManager.m 2KB
api.m 2KB
test_WriteYaml.m 2KB
BacktestBrokerage.m 2KB
deflateimports.m 2KB
datatable.m 1KB
ReadYaml.m 1KB
SimpleQueue.m 1KB
datadump.m 1KB
OrderManager.m 1KB
StrategyBase.m 1022B
dependencies.m 1006B
dosubstitution.m 938B
FillEvent.m 874B
merge_struct.m 738B
GetYamlVals.m 734B
BarEvent.m 524B
OrderEvent.m 468B
TickEvent.m 402B
TimeVals2Cell.m 349B
api_key.m 329B
auth.m 316B
http_createHeader.m 300B
OrderStatus.m 244B
GeneralEvent.m 242B
EventType.m 200B
OrderType.m 146B
iscolumnvector.m 139B
isrowvector.m 136B
ismymatrix.m 101B
TickType.m 97B
isord.m 93B
retrievemultiplierfromfullsymbol.m 92B
issingle.m 82B
kwd_parent.m 69B
AccountManager.m 40B
usecase_struct_01.mat 12KB
import.mat 1KB
inheritance.mat 802B
time_variants.mat 763B
time.mat 536B
sequence_mapping.mat 350B
indentation.mat 335B
inheritance_multiple.mat 328B
floating_points.mat 290B
matrices.mat 278B
simple.mat 258B
import_def.mat 256B
共 152 条
- 1
- 2
资源评论
程序员柳
- 粉丝: 8137
- 资源: 1469
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功