Node Google Finance API wrapper for free. No API key is required!
npm install google-finance-quote3.0.0 <= x doesn't support proxies.
js
// ESM
import { Finance, symbols, currencyCodesSymbols, cryptoCurrencyCodesSymbols } from "google-finance-quote";
// CJS
const { Finance, symbols, currencyCodesSymbols, cryptoCurrencyCodesSymbols } = require("google-finance-quote");
console.log(symbols); // Returns available symbols.
console.log(currencyCodesSymbols); // Returns available currency codes symbols.
console.log(cryptoCurrencyCodesSymbols); // Returns available crypto currency codes symbols.
const finance = new Finance(); // You can use this: new Finance({ from 'USD', to: 'JPY' });
finance
.setFrom('USD')
.setTo('JPY');
(async () => {
console.log(await finance.quote()); // { success: true, rate: 150.94225699999998 }
})();
``