Featured post

Fixed Income Trading: New venues

A simple question came up recently in a conversation – how many new Fixed Income trading venues are there?  I could not think of anywhere th...

Sunday, 24 July 2016

Openfigi+ cURL = ?

Having a look at Bloomberg/OMG OpenFigi again...
prompt$ curl -v -X POST 'https://api.openfigi.com/v1/mapping'        --header 'Content-Type: text/json'                  --data '[{"idType":"ID_ISIN","idValue":"GB00BH4HKS39","exchCode":"GB"}]'
*   Trying 69.191.242.126...
* Connected to api.openfigi.com (69.191.242.126) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
* Server certificate: api.openfigi.com
* Server certificate: Symantec Class 3 EV SSL CA - G3
* Server certificate: VeriSign Class 3 Public Primary Certification Authority - G5
> POST /v1/mapping HTTP/1.1
> Host: api.openfigi.com
> User-Agent: curl/7.43.0
> Accept: */*
> Content-Type: text/json
> Content-Length: 63
* upload completely sent off: 63 out of 63 bytes
< HTTP/1.1 200 OK
< X-Request-Id: a61a388e-650a-45b2-ad0b-03e2b97bb818
< Cache-Control: private, no-cache, no-store, must-revalidate
< Expires: 0
< Pragma: no-cache
< Content-Type: application/json; charset=utf-8
< Content-Length: 267
< ETag: W/"10b-FgTOXKjBDO42ZDdYoInYnA"
< Vary: Accept-Encoding
< Date: Sun, 24 Jul 2016 19:05:22 GMT
< Connection: close
< Set-Cookie: SRV=NJ02; path=/
< Strict-Transport-Security: max-age=15552000
* Closing connection 0
[{"data":[{"figi":"BBG000DT2TH7","securityType":"Common Stock","marketSector":"Equity","ticker":"VODI","name":"VODAFONE GROUP PLC","uniqueID":"EQ0010160500001002","exchCode":"GB","shareClassFIGI":"BBG001S6PJ31","compositeFIGI":"BBG000DT2N99","uniqueIDFutOpt":null}]}]

If we parse out the JSON we get:
"figi":"BBG000DT2TH7"
"securityType":"Common Stock"
"marketSector":"Equity"
"ticker":"VODI"
"name":"VODAFONE GROUP PLC"
"uniqueID":"EQ0010160500001002"
"exchCode":"GB"
"shareClassFIGI":"BBG001S6PJ31"
"compositeFIGI":"BBG000DT2N99"
"uniqueIDFutOpt":null 

This is good, but we don't get the well recognised Bloomberg identifier - VOD LN.


No comments:

Post a Comment