@riocrypto/common 1.0.1278 → 1.0.1280
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.
|
@@ -174,13 +174,18 @@ export declare class RioAdminClient {
|
|
|
174
174
|
volume: number;
|
|
175
175
|
revenue: number;
|
|
176
176
|
}>;
|
|
177
|
-
|
|
177
|
+
getVolumeAndRevenueByDays(days?: Number, userId?: string): Promise<{
|
|
178
178
|
volume: number;
|
|
179
179
|
revenue: number;
|
|
180
|
-
}
|
|
180
|
+
}>;
|
|
181
|
+
getPastMonthsVolumeAndRevenue(months?: Number, userId?: string): Promise<{
|
|
181
182
|
volume: number;
|
|
182
183
|
revenue: number;
|
|
183
184
|
}[]>;
|
|
185
|
+
getAverageMonthlyVolumes(userId?: string): Promise<{
|
|
186
|
+
volume: number;
|
|
187
|
+
revenue: number;
|
|
188
|
+
}>;
|
|
184
189
|
getBitsoX(bidPrice: number, bidAmount: number): Promise<{
|
|
185
190
|
x: number;
|
|
186
191
|
}>;
|
|
@@ -582,12 +582,33 @@ class RioAdminClient {
|
|
|
582
582
|
return response.data;
|
|
583
583
|
});
|
|
584
584
|
}
|
|
585
|
-
|
|
585
|
+
getVolumeAndRevenueByDays(days, userId) {
|
|
586
586
|
return __awaiter(this, void 0, void 0, function* () {
|
|
587
587
|
const response = yield this.axios.get(`/api/data/volume`, {
|
|
588
588
|
params: {
|
|
589
|
-
days
|
|
590
|
-
|
|
589
|
+
days,
|
|
590
|
+
userId: userId ? userId : undefined,
|
|
591
|
+
},
|
|
592
|
+
});
|
|
593
|
+
return response.data;
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
getPastMonthsVolumeAndRevenue(months, userId) {
|
|
597
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
598
|
+
const response = yield this.axios.get(`/api/data/volume`, {
|
|
599
|
+
params: {
|
|
600
|
+
months,
|
|
601
|
+
userId: userId ? userId : undefined,
|
|
602
|
+
},
|
|
603
|
+
});
|
|
604
|
+
return response.data;
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
getAverageMonthlyVolumes(userId) {
|
|
608
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
609
|
+
const response = yield this.axios.get(`/api/data/volume/average`, {
|
|
610
|
+
params: {
|
|
611
|
+
type: "month",
|
|
591
612
|
userId: userId ? userId : undefined,
|
|
592
613
|
},
|
|
593
614
|
});
|