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

@credenceanalytics/cogencis-selectfeed-parser

Package Overview
Dependencies
Maintainers
13
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@credenceanalytics/cogencis-selectfeed-parser

Cogencis selectfeed parser to convert live feed data to the JSON format

  • 0.0.1
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
13
Weekly downloads
 
Created
Source

cogencis-selectfeed-parser

The cogencis-selectfeed-parser convert the live feed data info JSON format.

Install

npm install @credenceanalytics/cogencis-selectfeed-parser

Use

const Dataparser = require("@credenceanalytics/cogencis-selectfeed-parser");

const sampleData = "1234;Ok;9=VRAJ VRAJLAL THAKKER;4=82.0075;5=82.0175;1=1690356964;104=1690356964;10024=1690376764;10006=1690376764;103=1";

const field_mapping = {
    "4": "bid",
    "5": "ask"
}

const dataparserObj = new Dataparser(field_mapping);
jsondata = dataparserObj.converttojson(sampleData);
console.log(jsondata);

Keywords

FAQs

Package last updated on 11 Aug 2023

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