laplace-api 1.1.7 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "laplace-api",
3
- "version": "1.1.7",
3
+ "version": "1.2.1",
4
4
  "description": "Client library for Laplace API for the US stock market and BIST (Istanbul stock market) fundamental financial data.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -53,7 +53,7 @@ export enum StockStatsKey {
53
53
 
54
54
  export interface TopMover {
55
55
  symbol: string;
56
- percentChange: number;
56
+ percent_change: number;
57
57
  }
58
58
  export class FinancialFundamentalsClient extends Client {
59
59
  async getStockDividends(symbol: string, region: Region): Promise<StockDividend[]> {
@@ -282,7 +282,9 @@ export class LivePriceWebSocketClient {
282
282
  const symbolsForRemove = symbols.filter(
283
283
  (s) => this.getHandlersForSymbol(s).length === 0
284
284
  );
285
- this.removeSymbols(symbolsForRemove);
285
+ if (symbolsForRemove.length > 0) {
286
+ this.removeSymbols(symbolsForRemove);
287
+ }
286
288
  };
287
289
  }
288
290