View source for Module:Stock tickers/NYSE
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local getArgs = require('Module:Arguments').getArgs
local p = {}
function p.GetURL(frame)
local args = getArgs(frame)
return p._GetURL(args)
end
function p._GetURL(args)
local ticker = args[1]
local exchange = args.exchange
-- By default the exchange will be NYSE
if not exchange then exchange = 'NYSE' end
-- Get corrected ticker
ticker = p.FormatTickerURL(ticker)
-- NYSE official URL
url = 'https://www.nyse.com/quote/' .. exchangeCode[exchange] .. ':' .. ticker
000
1:0
Template used on this page:
Return to Module:Stock tickers/NYSE.