@riocrypto/common 1.0.1279 → 1.0.1281
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.
|
@@ -182,6 +182,14 @@ export declare class RioAdminClient {
|
|
|
182
182
|
volume: number;
|
|
183
183
|
revenue: number;
|
|
184
184
|
}[]>;
|
|
185
|
+
getTotalUsers(months: number): Promise<{
|
|
186
|
+
businessUsers: number;
|
|
187
|
+
individualUsers: number;
|
|
188
|
+
}[]>;
|
|
189
|
+
getAverageMonthlyVolumes(userId?: string): Promise<{
|
|
190
|
+
volume: number;
|
|
191
|
+
revenue: number;
|
|
192
|
+
}>;
|
|
185
193
|
getBitsoX(bidPrice: number, bidAmount: number): Promise<{
|
|
186
194
|
x: number;
|
|
187
195
|
}>;
|
|
@@ -604,6 +604,27 @@ class RioAdminClient {
|
|
|
604
604
|
return response.data;
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
|
+
getTotalUsers(months) {
|
|
608
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
609
|
+
const response = yield this.axios.get(`/api/data/users/total`, {
|
|
610
|
+
params: {
|
|
611
|
+
months,
|
|
612
|
+
},
|
|
613
|
+
});
|
|
614
|
+
return response.data;
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
getAverageMonthlyVolumes(userId) {
|
|
618
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
619
|
+
const response = yield this.axios.get(`/api/data/volume/average`, {
|
|
620
|
+
params: {
|
|
621
|
+
type: "month",
|
|
622
|
+
userId: userId ? userId : undefined,
|
|
623
|
+
},
|
|
624
|
+
});
|
|
625
|
+
return response.data;
|
|
626
|
+
});
|
|
627
|
+
}
|
|
607
628
|
getBitsoX(bidPrice, bidAmount) {
|
|
608
629
|
return __awaiter(this, void 0, void 0, function* () {
|
|
609
630
|
const response = yield this.axios.get(`/api/admin/bitso/x`, {
|