Why I can't download Yahoo data with Datafeed toolbox fetch function?
    3 ビュー (過去 30 日間)
  
       古いコメントを表示
    
I'm trying to download data using fetch function, but with some tickers I can't get the data.
For example:
When I try to download from TLEVISACPO.MX I get NaN's but the yahoo ticker is correct.
var =
    Symbol: {'TLEVISACPO.MX'}
      Last: 0
      Date: NaN
      Time: 0.7722
    Change: NaN
      Open: NaN
      High: NaN
       Low: NaN
    Volume: NaN
This is one of the Tickers which I can download the data
>> var=fetch(yahoo,'GAPB.MX')
var =
    Symbol: {'GAPB.MX'}
      Last: 93.9000
      Date: 735936
      Time: 0.6729
    Change: 1.2600
      Open: 92.9200
      High: 94.1100
       Low: 90.6000
    Volume: 1020912
Anyone know whats the problem?
With the next tickers I only get NaN's:
COMERCIUBC.MX, GSANBORB-1.MX, LIVEPOLC-1.MX, MFRISCOA-1.MX, NAFTRACISHRS.MX, etc.
I think the problem is the length of the ticker or the hyphen. If it is the problem, how can I solve it?
Thanks.
0 件のコメント
回答 (1 件)
  Kawee Numpacharoen
    
 2016 年 11 月 2 日
        I can't seems to replicate the problem you have. It works well for me.
>> c = yahoo;
>> var=fetch(c,'GAPB.MX')
var = 
    struct with fields:
      Symbol: {'GAPB.MX'}
        Last: 178.70
        Date: 736635.00
        Time: 0.58
      Change: -3.99
        Open: 184.00
        High: 184.63
         Low: 177.40
      Volume: 1453053.00
>> var=fetch(c,'TLEVISACPO.MX')
var = 
    struct with fields:
      Symbol: {'TLEVISACPO.MX'}
        Last: 93.49
        Date: 736635.00
        Time: 0.58
      Change: 0.49
        Open: 93.24
        High: 94.14
         Low: 92.77
      Volume: 3834566.00
0 件のコメント
参考
カテゴリ
				Help Center および File Exchange で Web Services についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!