Socket
Socket
Sign inDemoInstall

necessitatibusexpedita

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

necessitatibusexpedita

Isomorphic Javascript client for Polygon.io Stocks, Forex, and Crypto APIs


Version published
Maintainers
1
Created
Source

Launchpad REST API

  • import all the rest submodule or a specific submodule
// The entire rest submodule
import { restClient } from "@polygon.io/client-js";
// A specific submodule, in this instance the reference client
import { referenceClient } from "@polygon.io/client-js";

// Headers required to use the Launchpad product.
const edgeHeaders = {
  // X-Polygon-Edge-ID is a required Launchpad header. It identifies the Edge User requesting data.
  'X-Polygon-Edge-ID': sampleEdgeID,
  // X-Polygon-Edge-IP-Address is a required Launchpad header. It denotes the originating IP Address of the Edge User requesting data.
  'X-Polygon-Edge-IP-Address': 192.0.2.1,
  // X-Polygon-Edge-User-Agent is an optional Launchpad header. It denotes the originating UserAgent of the Edge User requesting data.
  'X-Polygon-Edge-User-Agent': useragent
}

const rest = restClient("API KEY", "https://api.polygon.io");
rest.forex.previousClose("C:EURUSD", {}, { headers: edgeHeaders }).then(/* your success handler */);

const reference = referenceClient("API KEY", "https://api.polygon.io");
reference.tickers({}, { headers: edgeHeaders }).then(/* your success handler */);

Keywords

FAQs

Package last updated on 01 Apr 2024

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc