Thu Apr 28, 2016 7:16 pm (PDT) . Posted by:
I must be doing something wrong. I put in the JSON URL:"http://www.cefconnect.com/api/v3/DailyPricing?props=Ticker,Name,DistributionRateNAV,LastUpdated,Discount,DistributionRatePrice,ReturnOnNAV,CategoryId,CategoryName,IsManagedDistribution,Price,PriceChange,NAV,NAVPublished,Cusip/
in Cell D7.
I put in "{" in D8.
I don't get the site broken down as it should be. Under Find Nest I get 32767.
Ron
From: "Randy Harmelink rharmelink@gmail.com [smf_addin]" <smf_addin@yahoogroups.com>
To: smf_addin@yahoogroups.com
Sent: Wednesday, April 20, 2016 4:28 PM
Subject: Re: [smf_addin] CEFconnect.com [Solved]
There are so many ways to go about it, that it depends so much on what you're trying to extract and how you're planning to use it. For example, try this:
1. Open the SMF-Quick-Webpage-Examination.xls template.
2. Go to the "By Cascading Value" worksheet
3. Enter your URL in the "Web Page" entry cell
4. Enter "{" into the "String" entry cell
The result should be the entire file broken up line by line. I see 553 different lines.
Then, you could add columns for each field you want to extract, using the column header to do the extraction from that column of data, using the smfStrExtr() function.
Depends on whether you want to build a table, or do it ticker by ticker. However, if you do build the table, you can always use VLOOKUP() to find the individual pieces of data you're interested in.
On Wed, Apr 20, 2016 at 1:42 PM, hashky@yahoo.com [smf_addin] <smf_addin@yahoogroups.com> wrote:
Is there an easier way to do the following?
I got the spreadsheet going. Below are the typical equations for text and value fields. As I looked at the data, it seems that "{" and "}" designated a change database records. So I did a string extract (smfStrExtr) to limit the returns to text between the brackets. This way I am assured that I have the information is for the right Ticker.
Typical Ticker VMO
Text
=(smfStrExtr(smfStrExtr(RCHGetWebData("http://www.cefconnect.com/api/v3/DailyPricing?props=Ticker,Name,DistributionRateNAV,LastUpdated,Discount,DistributionRatePrice,ReturnOnNAV,CategoryId,CategoryName,IsManagedDistribution,Price,PriceChange,NAV,NAVPublished,Cusip/","""Ticker"":"""&B93&"""",400,-1),"{","}"),"""Name"":",","))
Values
=smfConvertData(smfStrExtr(smfStrExtr(RCHGetWebData("http://www.cefconnect.com/api/v3/DailyPricing?props=Ticker,Name,DistributionRateNAV,LastUpdated,Discount,DistributionRatePrice,ReturnOnNAV,CategoryId,CategoryName,IsManagedDistribution,Price,PriceChange,NAV,NAVPublished,Cusip/","""Ticker"":"""&B93&"""",400,-1),"{","}"),"""DistributionRatePrice"":",","))
There is probably very little interest in the group in closed end funds. They have more risk than open end funds. If anyone wants a copy I will post.
#yiv5584094062 #yiv5584094062 -- #yiv5584094062ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv5584094062 #yiv5584094062ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv5584094062 #yiv5584094062ygrp-mkp #yiv5584094062hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv5584094062 #yiv5584094062ygrp-mkp #yiv5584094062ads {margin-bottom:10px;}#yiv5584094062 #yiv5584094062ygrp-mkp .yiv5584094062ad {padding:0 0;}#yiv5584094062 #yiv5584094062ygrp-mkp .yiv5584094062ad p {margin:0;}#yiv5584094062 #yiv5584094062ygrp-mkp .yiv5584094062ad a {color:#0000ff;text-decoration:none;}#yiv5584094062 #yiv5584094062ygrp-sponsor #yiv5584094062ygrp-lc {font-family:Arial;}#yiv5584094062 #yiv5584094062ygrp-sponsor #yiv5584094062ygrp-lc #yiv5584094062hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv5584094062 #yiv5584094062ygrp-sponsor #yiv5584094062ygrp-lc .yiv5584094062ad {margin-bottom:10px;padding:0 0;}#yiv5584094062 #yiv5584094062actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv5584094062 #yiv5584094062activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv5584094062 #yiv5584094062activity span {font-weight:700;}#yiv5584094062 #yiv5584094062activity span:first-child {text-transform:uppercase;}#yiv5584094062 #yiv5584094062activity span a {color:#5085b6;text-decoration:none;}#yiv5584094062 #yiv5584094062activity span span {color:#ff7900;}#yiv5584094062 #yiv5584094062activity span .yiv5584094062underline {text-decoration:underline;}#yiv5584094062 .yiv5584094062attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv5584094062 .yiv5584094062attach div a {text-decoration:none;}#yiv5584094062 .yiv5584094062attach img {border:none;padding-right:5px;}#yiv5584094062 .yiv5584094062attach label {display:block;margin-bottom:5px;}#yiv5584094062 .yiv5584094062attach label a {text-decoration:none;}#yiv5584094062 blockquote {margin:0 0 0 4px;}#yiv5584094062 .yiv5584094062bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv5584094062 .yiv5584094062bold a {text-decoration:none;}#yiv5584094062 dd.yiv5584094062last p a {font-family:Verdana;font-weight:700;}#yiv5584094062 dd.yiv5584094062last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv5584094062 dd.yiv5584094062last p span.yiv5584094062yshortcuts {margin-right:0;}#yiv5584094062 div.yiv5584094062attach-table div div a {text-decoration:none;}#yiv5584094062 div.yiv5584094062attach-table {width:400px;}#yiv5584094062 div.yiv5584094062file-title a, #yiv5584094062 div.yiv5584094062file-title a:active, #yiv5584094062 div.yiv5584094062file-title a:hover, #yiv5584094062 div.yiv5584094062file-title a:visited {text-decoration:none;}#yiv5584094062 div.yiv5584094062photo-title a, #yiv5584094062 div.yiv5584094062photo-title a:active, #yiv5584094062 div.yiv5584094062photo-title a:hover, #yiv5584094062 div.yiv5584094062photo-title a:visited {text-decoration:none;}#yiv5584094062 div#yiv5584094062ygrp-mlmsg #yiv5584094062ygrp-msg p a span.yiv5584094062yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv5584094062 .yiv5584094062green {color:#628c2a;}#yiv5584094062 .yiv5584094062MsoNormal {margin:0 0 0 0;}#yiv5584094062 o {font-size:0;}#yiv5584094062 #yiv5584094062photos div {float:left;width:72px;}#yiv5584094062 #yiv5584094062photos div div {border:1px solid #666666;height:62px;overflow:hidden;width:62px;}#yiv5584094062 #yiv5584094062photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv5584094062 #yiv5584094062reco-category {font-size:77%;}#yiv5584094062 #yiv5584094062reco-desc {font-size:77%;}#yiv5584094062 .yiv5584094062replbq {margin:4px;}#yiv5584094062 #yiv5584094062ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv5584094062 #yiv5584094062ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv5584094062 #yiv5584094062ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv5584094062 #yiv5584094062ygrp-mlmsg select, #yiv5584094062 input, #yiv5584094062 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv5584094062 #yiv5584094062ygrp-mlmsg pre, #yiv5584094062 code {font:115% monospace;}#yiv5584094062 #yiv5584094062ygrp-mlmsg * {line-height:1.22em;}#yiv5584094062 #yiv5584094062ygrp-mlmsg #yiv5584094062logo {padding-bottom:10px;}#yiv5584094062 #yiv5584094062ygrp-msg p a {font-family:Verdana;}#yiv5584094062 #yiv5584094062ygrp-msg p#yiv5584094062attach-count span {color:#1E66AE;font-weight:700;}#yiv5584094062 #yiv5584094062ygrp-reco #yiv5584094062reco-head {color:#ff7900;font-weight:700;}#yiv5584094062 #yiv5584094062ygrp-reco {margin-bottom:20px;padding:0px;}#yiv5584094062 #yiv5584094062ygrp-sponsor #yiv5584094062ov li a {font-size:130%;text-decoration:none;}#yiv5584094062 #yiv5584094062ygrp-sponsor #yiv5584094062ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv5584094062 #yiv5584094062ygrp-sponsor #yiv5584094062ov ul {margin:0;padding:0 0 0 8px;}#yiv5584094062 #yiv5584094062ygrp-text {font-family:Georgia;}#yiv5584094062 #yiv5584094062ygrp-text p {margin:0 0 1em 0;}#yiv5584094062 #yiv5584094062ygrp-text tt {font-size:120%;}#yiv5584094062 #yiv5584094062ygrp-vital ul li:last-child {border-right:none !important;}#yiv5584094062
Thu Apr 28, 2016 7:31 pm (PDT) . Posted by:
Hmmm. Mine looks like this:
*Web Page:*
http://www.cefconnect.com/api/v3/DailyPricing?props=Ticker,Name,DistributionRateNAV,LastUpdated,Discount,DistributionRatePrice,ReturnOnNAV,CategoryId,CategoryName,IsManagedDistribution,Price,PriceChange,NAV,NAVPublished,Cusip/
*String:* {
*Find Next* *Start* *Web page content*
*--* *1* [{"Ticker":"MFM","Name":"MFS Municipal
Income","DistributionRateNAV":5.09,"LastUpdated":"2016-04-27T00:00:00","Discount":-3.97,"DistributionRatePrice":5.30,"ReturnOnNAV":7.43,"CategoryId":1,"CategoryName":"Tax-Free
Income-High
Yield","IsManagedDistribution":false,"Price":7.25000,"PriceChange":-0.06,"NAV":7.550000,"NAVPublished":"2016-04-27T00:00:00"},{"Ticker":"CXE","Name":"MFS
High Income
Municipal","DistributionRateNAV":5.44,"LastUpdated":"2016-04-27T00:00:00","Discount":-4.54,"DistributionRat
*2* *2* {"Ticker":"MFM","Name":"MFS Municipal
Income","DistributionRateNAV":5.09,"LastUpdated":"2016-04-27T00:00:00","Discount":-3.97,"DistributionRatePrice":5.30,"ReturnOnNAV":7.43,"CategoryId":1,"CategoryName":"Tax-Free
Income-High
Yield","IsManagedDistribution":false,"Price":7.25000,"PriceChange":-0.06,"NAV":7.550000,"NAVPublished":"2016-04-27T00:00:00"},{"Ticker":"CXE","Name":"MFS
High Income
Municipal","DistributionRateNAV":5.44,"LastUpdated":"2016-04-27T00:00:00","Discount":-4.54,"DistributionRate
*353* *354* {"Ticker":"CXE","Name":"MFS High Income
Municipal","DistributionRateNAV":5.44,"LastUpdated":"2016-04-27T00:00:00","Discount":-4.54,"DistributionRatePrice":5.70,"ReturnOnNAV":7.58,"CategoryId":1,"CategoryName":"Tax-Free
Income-High
Yield","IsManagedDistribution":false,"Price":5.26000,"PriceChange":-0.03,"NAV":5.510000,"NAVPublished":"2016-04-27T00:00:00"},{"Ticker":"CMU","Name":"MFS
High Yield Municipal
Trust","DistributionRateNAV":5.58,"LastUpdated":"2016-04-27T00:00:00","Discount":-1.91,"Distri
*358* *711* {"Ticker":"CMU","Name":"MFS High Yield Municipal
Trust","DistributionRateNAV":5.58,"LastUpdated":"2016-04-27T00:00:00","Discount":-1.91,"DistributionRatePrice":5.68,"ReturnOnNAV":7.49,"CategoryId":1,"CategoryName":"Tax-Free
Income-High
Yield","IsManagedDistribution":false,"Price":4.85570,"PriceChange":-0.01,"NAV":4.950000,"NAVPublished":"2016-04-27T00:00:00"},{"Ticker":"NMZ","Name":"Nuveen
Muni High Inc
Opp","DistributionRateNAV":6.58,"LastUpdated":"2016-04-27T00:00:00","Discount":2.02,"Distribu
*363* *1073* {"Ticker":"NMZ","Name":"Nuveen Muni High Inc
Opp","DistributionRateNAV":6.58,"LastUpdated":"2016-04-27T00:00:00","Discount":2.02,"DistributionRatePrice":6.45,"ReturnOnNAV":6.91,"CategoryId":1,"CategoryName":"Tax-Free
Income-High
Yield","IsManagedDistribution":false,"Price":14.14000,"PriceChange":0.00,"NAV":13.860000,"NAVPublished":"2016-04-27T00:00:00"},{"Ticker":"MAV","Name":"Pioneer
Muni High Inc
Adv","DistributionRateNAV":6.69,"LastUpdated":"2016-04-27T00:00:00","Discount":11.71,"Distribution
On Thu, Apr 28, 2016 at 7:13 PM, Ron Spruell hashky@
...wrote:
>
>
> I must be doing something wrong. I put in the JSON URL:
> "
> http://www.cefconnect.com/api/v3/DailyPricing?props=Ticker,Name,DistributionRateNAV,LastUpdated,Discount,DistributionRatePrice,ReturnOnNAV,CategoryId,CategoryName,IsManagedDistribution,Price,PriceChange,NAV,NAVPublished,Cusip/
>
> in Cell D7.
>
> I put in "{" in D8.
>
> I don't get the site broken down as it should be. Under Find Nest I get
> 32767.
>
>