Stock market closing price

Martin Luce martinluce at eclipse.co.uk
Wed Mar 1 17:47:33 EST 2017


Hi Rudolf

Thank you. I will have a go at this on Friday when I return and see if I can make it do what I want

Martin

Date: Tue, 28 Feb 2017 18:38:42 +0000
From: Rudolf Bargholz <rudolf at bargholz.ch <mailto:rudolf at bargholz.ch>>
To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com <mailto:omnisdev-en at lists.omnis-dev.com>>
Subject: AW: Stock market closing prices
Message-ID:
	<AM5PR0601MB23075DC5B2B8C5FEC66F8040DE560 at AM5PR0601MB2307.eurprd06.prod.outlook.com <mailto:AM5PR0601MB23075DC5B2B8C5FEC66F8040DE560 at AM5PR0601MB2307.eurprd06.prod.outlook.com>>
	
Content-Type: text/plain; charset="iso-8859-1"

Hi Martin,

If you call the following in Omnis:

HTTPPage ('http://www.webservicex.net/stockquote.asmx/GetQuote?symbol=MSFT' <http://www.webservicex.net/stockquote.asmx/GetQuote?symbol=MSFT'>) Returns #S1

this will return information about the MSFT symbol. The rest is parsing:

HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET <http://asp.net/>
Date: Tue, 28 Feb 2017 18:36:17 GMT
Content-Length: 746

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://www.webserviceX.NET/ <http://www.webservicex.net/>"><StockQuotes><Stock><Symbol>MSFT</Symbol><Last>63.785</Last><Date>2/28/2017</Date><Time>1:21pm</Time><Change>-0.445</Change><Open>64.110</Open><High>64.200</High><Low>63.760</Low><Volume>9363079</Volume><MktCap>492.90B</MktCap><PreviousClose>64.230</PreviousClose><PercentageChange>-0.693%</PercentageChange><AnnRange>48.035 - 65.910</AnnRange><Earns>2.125</Earns><P-E>30.016</P-E><Name>Microsoft Corporation</Name></Stock></StockQuotes></string>

Does this help?

Regards

Rudolf Bargholz


More information about the omnisdev-en mailing list