laplace-api 4.3.1 → 4.3.3
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 +1 -1
- package/src/client/live-price.ts +4 -8
package/package.json
CHANGED
package/src/client/live-price.ts
CHANGED
|
@@ -62,7 +62,7 @@ interface WebSocketUrlResponse {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
interface WebSocketUsageResponse {
|
|
65
|
-
|
|
65
|
+
externalUserID: string;
|
|
66
66
|
firstConnectionTime: Date;
|
|
67
67
|
uniqueDeviceCount: number;
|
|
68
68
|
}
|
|
@@ -290,17 +290,13 @@ export class LivePriceClient extends Client {
|
|
|
290
290
|
feedType: LivePriceFeed,
|
|
291
291
|
): Promise<WebSocketUsageResponse[]> {
|
|
292
292
|
const url = new URL(`${this["baseUrl"]}/api/v1/ws/report`);
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
year,
|
|
297
|
-
feedType
|
|
298
|
-
};
|
|
293
|
+
url.searchParams.append("month", month);
|
|
294
|
+
url.searchParams.append("year", year);
|
|
295
|
+
url.searchParams.append("feedType", feedType);
|
|
299
296
|
|
|
300
297
|
const response = await this.sendRequest<WebSocketUsageResponse[]>({
|
|
301
298
|
method: "GET",
|
|
302
299
|
url: url.toString(),
|
|
303
|
-
data: params,
|
|
304
300
|
});
|
|
305
301
|
|
|
306
302
|
return response;
|