Use a REST API.
The code part could not be simpler:
http://docwiki.embarcadero.com/RADStudio/Berlin/en/Tutorial:_Using_the_REST_Client_Library_to_Access_REST-based_Web_Services
Follow the instructions in the tutorial.
I could copy paste it all here, but it's a bit much.
Once you got that working make the following changes for stocks:
(see: http://www.example-code.com/DelphiDll/rest_simple.asp)
BaseURL: dev.markitondemand.com/MODApis/Api/v2/Quote
Change the parameter to:
parameter.name:= 'symbol'
parameter.value:= 'AAPL' //Apple whatever ticker you feel like.
I'm not sure if this particular site can return json data, but I know it does do xml in the following format:
<?xml version="1.0" encoding="utf-8" ?>
<StockQuote>
<Status>SUCCESS</Status>
<Name>Apple Inc</Name>
<Symbol>AAPL</Symbol>
<LastPrice>94.91</LastPrice>
<Change>-2.91</Change>
<ChangePercent>-2.9748517686</ChangePercent>
<Timestamp>Thu Apr 28 15:17:03 UTC-04:00 2016</Timestamp>
<MSDate>42488.6368402778</MSDate>
<MarketCap>526236372530</MarketCap>
<Volume>4965478</Volume>
<ChangeYTD>105.26</ChangeYTD>
<ChangePercentYTD>-9.8327949838</ChangePercentYTD>
<High>97.88</High>
<Low>94.88</Low>
<Open>97.61</Open>
</StockQuote>