Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blp-rest

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blp-rest

Bloomberg RESTish API

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bpl-rest

This module provides a simplified API to Bloomberg's node-blp using clues.js backed by promises. The module.exports exposes a function that solves for results of a particular command with supplied inputs. The only command so far is get and the inputs should be ticker and field (or inputs as a JSON object in native form). Results are narrowed down, depending on the input parameters. If only one ticker and one field is supplied, the result will be the particular result value. If multiple fields are chosen the results will be an associative array with the field names as keys.

To install the package run:

$ npm install blp-rest

A simple REST example is included (requires express).
To start the server on port 3000 execute from the package directory:

node example.js

For the last price of Apple as a simple number:

http://localhost:3000/blp/get?ticker=AAPL EQUITY&field=PX_LAST

For an associative array, showing both last price and volume:

http://localhost:3000/blp/get?ticker=AAPL EQUITY&field=PX_LAST,VOLUME

And finally, inputs can also be defined in the SDK native form:

http://localhost:3000/blp/get?inputs={"securities":[AAPL EQUITY"],"fields":["PX_LAST","VOLUME"]}

Creative Commons License
blp-rest is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Commercial options available.

Keywords

FAQs

Package last updated on 19 Jun 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc