laplace-api 1.1.6 → 1.2.0

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.6",
3
+ "version": "1.2.0",
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[]> {
@@ -36,7 +36,7 @@ function getSSELivePrice<T>(
36
36
  return client.sendSSERequest<T>(url);
37
37
  }
38
38
 
39
- export class LivePriceWebSocketUrlClient extends Client {
39
+ export class LivePriceClient extends Client {
40
40
  async getWebSocketUrl(
41
41
  externalUserId: string,
42
42
  region: Region
@@ -2,14 +2,14 @@ import { Logger } from "winston";
2
2
  import { LaplaceConfiguration } from "../utilities/configuration";
3
3
  import { Region } from "../client/collections";
4
4
  import "./client_test_suite";
5
- import { LivePriceWebSocketUrlClient } from "../client/live-price";
5
+ import { LivePriceClient } from "../client/live-price";
6
6
  import {
7
7
  BISTStockLiveData,
8
8
  LivePriceWebSocketClient,
9
9
  } from "../client/live-price-web-socket";
10
10
 
11
11
  describe("LivePrice", () => {
12
- let livePriceUrlClient: LivePriceWebSocketUrlClient;
12
+ let livePriceUrlClient: LivePriceClient;
13
13
  let url: string;
14
14
  let ws: LivePriceWebSocketClient;
15
15
 
@@ -27,7 +27,7 @@ describe("LivePrice", () => {
27
27
  debug: jest.fn(),
28
28
  } as unknown as Logger;
29
29
 
30
- livePriceUrlClient = new LivePriceWebSocketUrlClient(config, logger);
30
+ livePriceUrlClient = new LivePriceClient(config, logger);
31
31
  url = await livePriceUrlClient.getWebSocketUrl("2459", Region.Tr);
32
32
 
33
33
  ws = new LivePriceWebSocketClient({