But when I try with 2 symbols it gives malformed results. The value ABRA.TA is in responseHeader whereas the other value for symbol VOD.L is in responseLoad. Do we know the reason:
{ "ExtractionRequest":{ "@odata.type":"#DataScope.Select.Api.Extractions.ExtractionRequests.ElektronTimeseriesExtractionRequest","ContentFieldNames":["Instrument ID","Open","High","Low","Last","Volume","Bid","Ask","Trade Date"],"IdentifierList":{ "@odata.type":"#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList","InstrumentIdentifiers":[{ "Identifier":"ABRA.TA","IdentifierType":"Ric"},{ "Identifier":"VOD.L","IdentifierType":"Ric"}]},"Condition":{ "ReportDateRangeType":"Range","QueryStartDate":"2021-06-16","QueryEndDate":"2021-06-16"}}}
Output JobId à "JobId":"0x0798ba575c8cc4e8"
Output – as you can see for first symbol the value is in responseHeader. Do you know why is that? Am I missing something in the request?
(`responseHeader`responseLoad)!(("HTTP/1.1 200 Connection established";"";"HTTP/1.1 200 OK";"Cache-Control: no-cache";"Pragma: no-cache";"Content-Length: 190";"Content-Type: text/plain";"Expires: -1";"Accept-Ranges: bytes";"Server: Microsoft-IIS/10.0";"X-Request-Execution-Correlation-Id: CiD/9015517/AAAAAA.0798f8af17ecc631/RA";"X-App-Id: Custom.RestApi";"X-App-Version: 14.5.72.64";"Date: Thu, 17 Jun 2021 19:53:59 GMT";"";"Instrument ID,Open,High,Low,Last,Volume,Bid,Ask,Trade Date";"ABRA.TA,402.8,405,397.2,403.4,348532,404.1,404.2,2021/06/16");"VOD.L,131.84,132.34,130.16,130.16,48953005,130.16,130.18,2021/06/16")
Here is the curl call
time:2021.06.18D21:55:36.340475000 tz:gmt logLevel:INFO messageType:Sending command: curl -s -i -v -X GET -x "http://35.56.104.42:8080" -H "Prefer: respond-async" -H "Content-Type: Accept-Encoding: gzip, deflate" -H "X-Dire
ct-Download: true" -H "Authorization: Token _NS2jybP3FylhQRPzmnpnTc_KHubnlGpQEr1Qibq7c_r67qivze6fs5b2PNb4Hezf3YSigLDtYLD8jyjj1IROkioj_HK1yf8-zrEW2eWq7n0GEf3
Tuihug6gli-Z7dGBHJ1WDFm_be44rpsqAtCwipVB-JgYa_rBp6nDcMN0mjH-UC4DcXnsJUivXkTqJjoRvBIk3y8xhp4cfX--8ziR-7KEH7a6B65_1zEhfZbs" "https://selectapi.datascope.refin
c81f')/%24value"
Here is the verbose output
* Trying 35.56.104.42:8080...
* Connected to 35.56.104.42 (35.56.104.42) port 8080 (#0)
* allocate connect buffer!
* Establish HTTP proxy tunnel to selectapi.datascope.refinitiv.com:443
> CONNECT selectapi.datascope.refinitiv.com:443 HTTP/1.1
> Host: selectapi.datascope.refinitiv.com:443
> User-Agent: curl/7.69.1
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 Connection established
<
* Proxy replied 200 to CONNECT request
* CONNECT phase completed!
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /local/int/live/0/miniconda3/ssl/cacert.pem
CApath: none
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* CONNECT phase completed!
* CONNECT phase completed!
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [91 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [4738 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [333 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [70 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: C=US; postalCode=10036; ST=New York; L=New York; street=3 Times Square; O=REFINITIV US LLC; CN=selectapi1.datascope.refinitiv.com
* start date: Feb 25 00:00:00 2021 GMT
* expire date: Feb 25 23:59:59 2022 GMT
* subjectAltName: host "selectapi.datascope.refinitiv.com" matched cert's "selectapi.datascope.refinitiv.com"
* issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO RSA Organization Validation Secure Server CA
* SSL certificate verify ok.
} [5 bytes data]
> GET /RestApi/v1/Extractions/RawExtractionResults('0x079950eba1acc81f')/%24value HTTP/1.1
> GET /RestApi/v1/Extractions/RawExtractionResults('0x079950eba1acc81f')/%24value HTTP/1.1
> Host: selectapi.datascope.refinitiv.com
> User-Agent: curl/7.69.1
> Accept: */*
> Prefer: respond-async
> Content-Type: Accept-Encoding: gzip, deflate
> X-Direct-Download: true
> Authorization: Token _NS2jybP3FylhQRPzmnpnTc_KHubnlGpQEr1Qibq7c_r67qivze6fs5b2PNb4Hezf3YSigLDtYLD8jyjj1IROkioj_HK1yf8-zrEW2eWq7n0GEf3ImrqQgEQ1S3zAemlhPwLnA-WuyHeRZLe0R8v8J1DXw_UOH1_BhGHpvQ9w7rhFaqxY2mvTuihug6gli-Z7dGBHJ1WDFm_be44rpsqAtCwipVB-JgYa_rBp6nDcMN0mjH-UC4DcXnsJUivXkTqJjoRvBIk3y8xhp4cfX--8ziR-7KEH7a6B65_1zEhfZbs
>
{ [5 bytes data]
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Cache-Control: no-cache
< Pragma: no-cache
< Content-Length: 180
< Content-Type: text/plain
< Expires: -1
< Accept-Ranges: bytes
< Server: Microsoft-IIS/10.0
< X-Request-Execution-Correlation-Id: CiD/9015517/AAAAAA.079950ec16acc81f/RA
< X-App-Id: Custom.RestApi
< X-App-Version: 14.5.72.64
< Date: Fri, 18 Jun 2021 21:55:46 GMT
<
{ [180 bytes data]
* Connection #0 to host 35.56.104.42 left intact