@riocrypto/common 1.0.1275 → 1.0.1277
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,6 +174,10 @@ export declare class RioAdminClient {
|
|
|
174
174
|
volume: number;
|
|
175
175
|
revenue: number;
|
|
176
176
|
}>;
|
|
177
|
+
getVolumeAndRevenue(days?: Number, months?: Number, userId?: string): Promise<{
|
|
178
|
+
volume: number;
|
|
179
|
+
revenue: number;
|
|
180
|
+
}>;
|
|
177
181
|
getBitsoX(bidPrice: number, bidAmount: number): Promise<{
|
|
178
182
|
x: number;
|
|
179
183
|
}>;
|
|
@@ -582,6 +582,18 @@ class RioAdminClient {
|
|
|
582
582
|
return response.data;
|
|
583
583
|
});
|
|
584
584
|
}
|
|
585
|
+
getVolumeAndRevenue(days, months, userId) {
|
|
586
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
587
|
+
const response = yield this.axios.get(`/api/data/volume`, {
|
|
588
|
+
params: {
|
|
589
|
+
days: days ? days : undefined,
|
|
590
|
+
months: months ? months : undefined,
|
|
591
|
+
userId: userId ? userId : undefined,
|
|
592
|
+
},
|
|
593
|
+
});
|
|
594
|
+
return response.data;
|
|
595
|
+
});
|
|
596
|
+
}
|
|
585
597
|
getBitsoX(bidPrice, bidAmount) {
|
|
586
598
|
return __awaiter(this, void 0, void 0, function* () {
|
|
587
599
|
const response = yield this.axios.get(`/api/admin/bitso/x`, {
|