BSE Web Service
Click here for a complete list of operations.
SpotEOD
Spot End of Day. Updated once a day. Parameter AsOfDate must have the format : mm/dd/yyyy, where mm-Month, dd-Day, yyyy-Year. Ex: 11/14/2011 for November 14, 2011
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /BseWS/Intraday.asmx HTTP/1.1 Host: 195.28.176.74 Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "www.bvb.ro/SpotEOD" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <Header xmlns="www.bvb.ro"> <User>string</User> <Password>string</Password> </Header> </soap:Header> <soap:Body> <SpotEOD xmlns="www.bvb.ro"> <AsOfDate>string</AsOfDate> <exchangeSegment>string</exchangeSegment> </SpotEOD> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SpotEODResponse xmlns="www.bvb.ro"> <SpotEODResult> <Date xmlns="http://www.bvb.ro/">dateTime</Date> <Securities xmlns="http://www.bvb.ro/"> <TypeSpotEOD> <Symbolcode>string</Symbolcode> <Marketcode>string</Marketcode> <OpenPrice>decimal</OpenPrice> <HighPrice>decimal</HighPrice> <LowPrice>decimal</LowPrice> <ClosePrice>decimal</ClosePrice> <AvgPrice>decimal</AvgPrice> <ReferencePrice>decimal</ReferencePrice> <NetChgFromOfficialPrice>decimal</NetChgFromOfficialPrice> <PrcChgFromOfficialPrice>double</PrcChgFromOfficialPrice> <Volume>long</Volume> <Value>decimal</Value> <Trades>long</Trades> </TypeSpotEOD> <TypeSpotEOD> <Symbolcode>string</Symbolcode> <Marketcode>string</Marketcode> <OpenPrice>decimal</OpenPrice> <HighPrice>decimal</HighPrice> <LowPrice>decimal</LowPrice> <ClosePrice>decimal</ClosePrice> <AvgPrice>decimal</AvgPrice> <ReferencePrice>decimal</ReferencePrice> <NetChgFromOfficialPrice>decimal</NetChgFromOfficialPrice> <PrcChgFromOfficialPrice>double</PrcChgFromOfficialPrice> <Volume>long</Volume> <Value>decimal</Value> <Trades>long</Trades> </TypeSpotEOD> </Securities> <Indices xmlns="http://www.bvb.ro/"> <TypeIndexEOD> <Code>string</Code> <OpenValue>double</OpenValue> <CloseValue>double</CloseValue> <LowValue>double</LowValue> <HighValue>double</HighValue> <NetChange>double</NetChange> <PrcChange>double</PrcChange> </TypeIndexEOD> <TypeIndexEOD> <Code>string</Code> <OpenValue>double</OpenValue> <CloseValue>double</CloseValue> <LowValue>double</LowValue> <HighValue>double</HighValue> <NetChange>double</NetChange> <PrcChange>double</PrcChange> </TypeIndexEOD> </Indices> </SpotEODResult> </SpotEODResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /BseWS/Intraday.asmx HTTP/1.1 Host: 195.28.176.74 Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <Header xmlns="www.bvb.ro"> <User>string</User> <Password>string</Password> </Header> </soap12:Header> <soap12:Body> <SpotEOD xmlns="www.bvb.ro"> <AsOfDate>string</AsOfDate> <exchangeSegment>string</exchangeSegment> </SpotEOD> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <SpotEODResponse xmlns="www.bvb.ro"> <SpotEODResult> <Date xmlns="http://www.bvb.ro/">dateTime</Date> <Securities xmlns="http://www.bvb.ro/"> <TypeSpotEOD> <Symbolcode>string</Symbolcode> <Marketcode>string</Marketcode> <OpenPrice>decimal</OpenPrice> <HighPrice>decimal</HighPrice> <LowPrice>decimal</LowPrice> <ClosePrice>decimal</ClosePrice> <AvgPrice>decimal</AvgPrice> <ReferencePrice>decimal</ReferencePrice> <NetChgFromOfficialPrice>decimal</NetChgFromOfficialPrice> <PrcChgFromOfficialPrice>double</PrcChgFromOfficialPrice> <Volume>long</Volume> <Value>decimal</Value> <Trades>long</Trades> </TypeSpotEOD> <TypeSpotEOD> <Symbolcode>string</Symbolcode> <Marketcode>string</Marketcode> <OpenPrice>decimal</OpenPrice> <HighPrice>decimal</HighPrice> <LowPrice>decimal</LowPrice> <ClosePrice>decimal</ClosePrice> <AvgPrice>decimal</AvgPrice> <ReferencePrice>decimal</ReferencePrice> <NetChgFromOfficialPrice>decimal</NetChgFromOfficialPrice> <PrcChgFromOfficialPrice>double</PrcChgFromOfficialPrice> <Volume>long</Volume> <Value>decimal</Value> <Trades>long</Trades> </TypeSpotEOD> </Securities> <Indices xmlns="http://www.bvb.ro/"> <TypeIndexEOD> <Code>string</Code> <OpenValue>double</OpenValue> <CloseValue>double</CloseValue> <LowValue>double</LowValue> <HighValue>double</HighValue> <NetChange>double</NetChange> <PrcChange>double</PrcChange> </TypeIndexEOD> <TypeIndexEOD> <Code>string</Code> <OpenValue>double</OpenValue> <CloseValue>double</CloseValue> <LowValue>double</LowValue> <HighValue>double</HighValue> <NetChange>double</NetChange> <PrcChange>double</PrcChange> </TypeIndexEOD> </Indices> </SpotEODResult> </SpotEODResponse> </soap12:Body> </soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /BseWS/Intraday.asmx/SpotEOD?AsOfDate=string&exchangeSegment=string HTTP/1.1 Host: 195.28.176.74
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <TypeInfoEOD xmlns="www.bvb.ro"> <Date xmlns="http://www.bvb.ro/">dateTime</Date> <Securities xmlns="http://www.bvb.ro/"> <TypeSpotEOD> <Symbolcode>string</Symbolcode> <Marketcode>string</Marketcode> <OpenPrice>decimal</OpenPrice> <HighPrice>decimal</HighPrice> <LowPrice>decimal</LowPrice> <ClosePrice>decimal</ClosePrice> <AvgPrice>decimal</AvgPrice> <ReferencePrice>decimal</ReferencePrice> <NetChgFromOfficialPrice>decimal</NetChgFromOfficialPrice> <PrcChgFromOfficialPrice>double</PrcChgFromOfficialPrice> <Volume>long</Volume> <Value>decimal</Value> <Trades>long</Trades> </TypeSpotEOD> <TypeSpotEOD> <Symbolcode>string</Symbolcode> <Marketcode>string</Marketcode> <OpenPrice>decimal</OpenPrice> <HighPrice>decimal</HighPrice> <LowPrice>decimal</LowPrice> <ClosePrice>decimal</ClosePrice> <AvgPrice>decimal</AvgPrice> <ReferencePrice>decimal</ReferencePrice> <NetChgFromOfficialPrice>decimal</NetChgFromOfficialPrice> <PrcChgFromOfficialPrice>double</PrcChgFromOfficialPrice> <Volume>long</Volume> <Value>decimal</Value> <Trades>long</Trades> </TypeSpotEOD> </Securities> <Indices xmlns="http://www.bvb.ro/"> <TypeIndexEOD> <Code>string</Code> <OpenValue>double</OpenValue> <CloseValue>double</CloseValue> <LowValue>double</LowValue> <HighValue>double</HighValue> <NetChange>double</NetChange> <PrcChange>double</PrcChange> </TypeIndexEOD> <TypeIndexEOD> <Code>string</Code> <OpenValue>double</OpenValue> <CloseValue>double</CloseValue> <LowValue>double</LowValue> <HighValue>double</HighValue> <NetChange>double</NetChange> <PrcChange>double</PrcChange> </TypeIndexEOD> </Indices> </TypeInfoEOD>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /BseWS/Intraday.asmx/SpotEOD HTTP/1.1 Host: 195.28.176.74 Content-Type: application/x-www-form-urlencoded Content-Length: length AsOfDate=string&exchangeSegment=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <TypeInfoEOD xmlns="www.bvb.ro"> <Date xmlns="http://www.bvb.ro/">dateTime</Date> <Securities xmlns="http://www.bvb.ro/"> <TypeSpotEOD> <Symbolcode>string</Symbolcode> <Marketcode>string</Marketcode> <OpenPrice>decimal</OpenPrice> <HighPrice>decimal</HighPrice> <LowPrice>decimal</LowPrice> <ClosePrice>decimal</ClosePrice> <AvgPrice>decimal</AvgPrice> <ReferencePrice>decimal</ReferencePrice> <NetChgFromOfficialPrice>decimal</NetChgFromOfficialPrice> <PrcChgFromOfficialPrice>double</PrcChgFromOfficialPrice> <Volume>long</Volume> <Value>decimal</Value> <Trades>long</Trades> </TypeSpotEOD> <TypeSpotEOD> <Symbolcode>string</Symbolcode> <Marketcode>string</Marketcode> <OpenPrice>decimal</OpenPrice> <HighPrice>decimal</HighPrice> <LowPrice>decimal</LowPrice> <ClosePrice>decimal</ClosePrice> <AvgPrice>decimal</AvgPrice> <ReferencePrice>decimal</ReferencePrice> <NetChgFromOfficialPrice>decimal</NetChgFromOfficialPrice> <PrcChgFromOfficialPrice>double</PrcChgFromOfficialPrice> <Volume>long</Volume> <Value>decimal</Value> <Trades>long</Trades> </TypeSpotEOD> </Securities> <Indices xmlns="http://www.bvb.ro/"> <TypeIndexEOD> <Code>string</Code> <OpenValue>double</OpenValue> <CloseValue>double</CloseValue> <LowValue>double</LowValue> <HighValue>double</HighValue> <NetChange>double</NetChange> <PrcChange>double</PrcChange> </TypeIndexEOD> <TypeIndexEOD> <Code>string</Code> <OpenValue>double</OpenValue> <CloseValue>double</CloseValue> <LowValue>double</LowValue> <HighValue>double</HighValue> <NetChange>double</NetChange> <PrcChange>double</PrcChange> </TypeIndexEOD> </Indices> </TypeInfoEOD>