openfigi | Simple wrapper and a command-line tool | REST library
kandi X-RAY | openfigi Summary
kandi X-RAY | openfigi Summary
Simple wrapper and a command-line tool for Bloomberg's OpenFIGI API. The API specification is located at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Call OpenFigi
- Perform a batch request
- Fetch the response from the server
- Enqueue a request
openfigi Key Features
openfigi Examples and Code Snippets
> ofg --help
Usage: ofg [OPTIONS] ID_TYPE [ID_VALUES]...
Calls OpenFIGI API with the specified arguments
ID_TYPE must be one of the following: ID_ISIN, ID_BB_UNIQUE, ID_SEDOL,
ID_COMMON, ID_WERTPAPIER, ID_CUSIP, ID_CINS, ID_BB, ID_ITALY, I
>>> import openfigi
>>>
>>> conn = openfigi.OpenFigi("32577205-8353-4cb9-b11e-3b9bbfd1fde2")
>>> conn.enqueue_request(id_type='ID_WERTPAPIER', id_value='XM91CQ', mic_code='EUWX')
>>> print(conn.fetch_resp
pip install openfigi
git clone https://github.com/jwergieluk/openfigi.git
cd openfigi
pip install .
Community Discussions
Trending Discussions on openfigi
QUESTION
Would like to implement the following POST
request with curl
with the httr
package in R
ANSWER
Answered 2019-Aug-29 at 13:09The following seems to work if you just translate the curl. Is that sufficient?
QUESTION
I want to develop a small feature, which converts an ISIN to a symbol using Springs RestTemplates. I'm running into an error which states the following:
...ANSWER
Answered 2018-Nov-25 at 06:41Your JSON data
is inside a JSON array, so use wrapper class OpenFigiListResponse
:
QUESTION
I'm trying to interface the OpenFIGI API from a browser application, which I am hosting locally by using node's http-server. My POST-request looks like this
...ANSWER
Answered 2017-Jul-17 at 09:18OpenFIGI API responses don’t include the Access-Control-*
response headers needed to make browsers allow your frontend JavaScript code to access the responses. So if you want to send the requests from your frontend code, your only option is use a proxy.
To try making the request through a public CORS proxy, try changing your code to:
QUESTION
I need to make the following call to an open API (https://www.openfigi.com/api)
Curl Example:
...ANSWER
Answered 2017-Jul-15 at 16:14This is just an exercise of creating DTOs which match the shape of the JSON you want to output and JSON you want to receive. To emit the exact the exact JSON property names you can either use [DataMember]
on the Request DTO, or JsConfig.EmitCamelCaseNames = true
to tell ServiceStack to serialize properties in camelCase or you can use JsConfig.With() to create a Custom Scope.
I've created a Live example of this in Gistlyn which you can use to experiment against Bloomberg's API.
I've used [DataMember]
attribute here as it will work independent of your Json Serialization config. You don't need to do this for the Response DTO because ServiceStack Serializers is case-insensitive.
So to send the Request that matches the shape of that JSON you can use:
QUESTION
I am trying to run the following Nodejs program to retrieve data from OpenFigi. But, not getting any information whereas curl request returns the data.
...ANSWER
Answered 2017-Apr-05 at 01:54You didn't give method type
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install openfigi
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page