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
|
@@ -53,7 +53,7 @@ export enum StockStatsKey {
|
|
|
53
53
|
|
|
54
54
|
export interface TopMover {
|
|
55
55
|
symbol: string;
|
|
56
|
-
|
|
56
|
+
percent_change: number;
|
|
57
57
|
}
|
|
58
58
|
export class FinancialFundamentalsClient extends Client {
|
|
59
59
|
async getStockDividends(symbol: string, region: Region): Promise<StockDividend[]> {
|
package/src/client/live-price.ts
CHANGED
|
@@ -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 {
|
|
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:
|
|
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
|
|
30
|
+
livePriceUrlClient = new LivePriceClient(config, logger);
|
|
31
31
|
url = await livePriceUrlClient.getWebSocketUrl("2459", Region.Tr);
|
|
32
32
|
|
|
33
33
|
ws = new LivePriceWebSocketClient({
|