Jump to content
Medved Trader Forums

http api question


mlsignups

Recommended Posts

I have various lists in googlesheets of tickers i'm watching which contains a large amount of additional data for each symbol and would love to be able to click in googlesheets to change the symbol in MedVed.

If I type the URL line - for instance this: http://127.0.0.1:16239/req?SetLinkedSymbol(MSFT,TAN)  into my browser it changes the symbol so I know the MedVed settings are right.   But it sends and OK message back in a new browser tab (on top of my current tab) which means it's not usable for me to scroll down a list from within googlesheets.

So I did some research and was told that I could create a script in googlesheets that should do it.  The script that was suggested was this:

function sendHttpRequest()  {

var url = "http://127.0.0.1:16239/req?SetLinkedSymbol(MSFT,TAN)";

var options = { 'method': 'get' };

UrlFetchApp.fetch(url, options);

}

But I am getting an error message on the URLFetchApp line.   Info about this is here: https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app

I realize this is not a medved issue but wondering if you can supply any suggestions.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...