@riocrypto/common 1.0.1616 → 1.0.1617
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.
|
@@ -33,7 +33,7 @@ class RioAdminClient {
|
|
|
33
33
|
}
|
|
34
34
|
getLiquidityAvailable() {
|
|
35
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
const { data } = yield this.axios.get(`/api/
|
|
36
|
+
const { data } = yield this.axios.get(`/api/liquidity/usd/total`);
|
|
37
37
|
return data;
|
|
38
38
|
});
|
|
39
39
|
}
|
|
@@ -234,7 +234,6 @@ export declare class RioClient {
|
|
|
234
234
|
createKushkiBankPayment(orderId: string): Promise<any>;
|
|
235
235
|
updateAuth(update: AuthUpdate, id: string): Promise<Auth>;
|
|
236
236
|
getInvoice(orderId: string): Promise<Invoice>;
|
|
237
|
-
getCryptoBalance(asset: Crypto, userId?: string): Promise<number>;
|
|
238
237
|
createOnboardingByLink(userType: UserType, countryOfOperation: Country, brokerId?: string, referrerId?: string): Promise<{
|
|
239
238
|
id: string;
|
|
240
239
|
kycLink: string;
|
|
@@ -51,7 +51,7 @@ class RioClient {
|
|
|
51
51
|
}
|
|
52
52
|
getLiquidityAvailable() {
|
|
53
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
const { data } = yield this.axios.get(`/api/
|
|
54
|
+
const { data } = yield this.axios.get(`/api/liquidity/usd/total`);
|
|
55
55
|
return data;
|
|
56
56
|
});
|
|
57
57
|
}
|
|
@@ -744,16 +744,6 @@ class RioClient {
|
|
|
744
744
|
return response.data;
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
|
-
getCryptoBalance(asset, userId) {
|
|
748
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
749
|
-
const response = yield this.axios.get(`/api/wallet/balances/${asset}`, {
|
|
750
|
-
params: {
|
|
751
|
-
userId: userId ? userId : undefined,
|
|
752
|
-
},
|
|
753
|
-
});
|
|
754
|
-
return response.data.balance;
|
|
755
|
-
});
|
|
756
|
-
}
|
|
757
747
|
createOnboardingByLink(userType, countryOfOperation, brokerId, referrerId) {
|
|
758
748
|
return __awaiter(this, void 0, void 0, function* () {
|
|
759
749
|
const { data } = yield this.axios.post(`/api/onboardings/${countryOfOperation}/link`, {
|