@riocrypto/common-server 1.0.2148 → 1.0.2149
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.
|
@@ -61,7 +61,7 @@ declare class ClusterClient {
|
|
|
61
61
|
receiverCLABE: string;
|
|
62
62
|
amount: number;
|
|
63
63
|
}): Promise<string>;
|
|
64
|
-
placeEmarketsTrade(externalTradeId: string): Promise<
|
|
64
|
+
placeEmarketsTrade(externalTradeId: string): Promise<EmarketsFXTrade>;
|
|
65
65
|
getEmarketsTrade(id: string): Promise<EmarketsFXTrade>;
|
|
66
66
|
}
|
|
67
67
|
export declare const buildClusterClient: () => Promise<ClusterClient>;
|
|
@@ -392,11 +392,12 @@ class ClusterClient {
|
|
|
392
392
|
}
|
|
393
393
|
placeEmarketsTrade(externalTradeId) {
|
|
394
394
|
return __awaiter(this, void 0, void 0, function* () {
|
|
395
|
-
yield this.axios.post(`${this.baseUrl}/api/emarkets/trades`, { externalTradeId }, {
|
|
395
|
+
const response = yield this.axios.post(`${this.baseUrl}/api/emarkets/trades`, { externalTradeId }, {
|
|
396
396
|
headers: {
|
|
397
397
|
"x-cluster-api-key": this.clusterApiKey,
|
|
398
398
|
},
|
|
399
399
|
});
|
|
400
|
+
return response.data;
|
|
400
401
|
});
|
|
401
402
|
}
|
|
402
403
|
getEmarketsTrade(id) {
|