Socket
Socket
Sign inDemoInstall

forex-quotes

Package Overview
Dependencies
23
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.5 to 6.0.0

lib/src/ForgeClient.d.ts

2

LICENSE.md
MIT License
Copyright (c) 2019 Forex API LLC
Copyright (c) 2020 Forex API LLC

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

{
"name": "forex-quotes",
"version": "5.0.5",
"version": "6.0.0",
"description": "Realtime forex quote API client",

@@ -26,4 +26,4 @@ "main": "./lib/ForgeClient.js",

"prepublish": "npm run build",
"lint": "tslint --project ./tsconfig.json 'src/**/*.ts'",
"lint-fix": "tslint --fix --project ./tsconfig.json 'src/**/*.ts'",
"lint": "tslint --project ./tsconfig.json \"src/**/*.ts\"",
"lint-fix": "tslint --fix --project ./tsconfig.json \"src/**/*.ts\"",
"build": "npm run lint && tsc"

@@ -30,0 +30,0 @@ },

@@ -61,9 +61,9 @@ # javascript-forex-quotes

// Subscribe to a single currency pair
client.subscribeTo('EURUSD');
client.subscribeTo('EUR/USD');
// Subscribe to an array of currency pairs
client.subscribeTo([
'GBPJPY',
'AUDCAD',
'EURCHF',
'GBP/JPY',
'AUD/CAD',
'EUR/CHF',
]);

@@ -75,9 +75,9 @@

// Unsubscribe from a single currency pair
client.unsubscribeFrom('EURUSD');
client.unsubscribeFrom('EUR/USD');
// Unsubscribe from an array of currency pairs
client.unsubscribeFrom([
'GBPJPY',
'AUDCAD',
'EURCHF'
'GBP/JPY',
'AUD/CAD',
'EUR/CHF'
]);

@@ -107,3 +107,3 @@

// Get quotes for specified symbols:
client.getQuotes(['EURUSD', 'GBPJPY', 'AUDUSD']).then(response => {
client.getQuotes(['EUR/USD', 'GBP/JPY', 'AUD/USD']).then(response => {
console.log(response);

@@ -110,0 +110,0 @@ });

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc