New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fugle

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fugle

Fugle API client library for JavaScript

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by25%
Maintainers
4
Weekly downloads
 
Created
Source

Fugle API Client

NPM version Build Status Coverage Status

[DEPRECATED] Fugle API client library for JavaScript

Deprecation Notice

This package is deprecated. Please use @fugle/realtime instead.

Install

$ npm install --save fugle

Browser

Add a <script> to your index.html:

<script src="/node_modules/fugle/dist/fugle.min.js"></script>

Node.js / Webpack

Import the module to your *.js file:

const Fugle = require('fugle')

Usage

The library support for REST API and WebSocket.

REST API

const fugle = new Fugle({ apiToken: 'demo' })

fugle
  .api('/intraday/quote', { symbolId: '2884' })
  .then(res => console.log(res.data))

Intraday odd lot trading:

fugle
  .api('/intraday/quote', { symbolId: '2884', oddLot: true })
  .then(res => console.log(res.data))

WebSocket

const fugle = new Fugle({ apiToken: 'demo' })

fugle
  .ws('/intraday/quote', { symbolId: '2884' })
  .onmessage = message => console.log(message.data)

Reference

Fugle API

License

MIT

Keywords

FAQs

Package last updated on 13 Sep 2021

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