@riocrypto/common-server 1.0.2156 → 1.0.2157
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Quote, Fiat, Crypto, BitsoBankAccount, Side, Country, Order, CryptoAddress, BankAccount, ChainedQuote, AuthRole, Auth, ImportOrderData, TreasuryProvider, FXProvider, EmarketsFXTrade, ExternalTradingAlgorithm } from "@riocrypto/common";
|
|
1
|
+
import { Quote, Fiat, Crypto, BitsoBankAccount, Side, Country, Order, CryptoAddress, BankAccount, ChainedQuote, AuthRole, Auth, ImportOrderData, TreasuryProvider, FXProvider, EmarketsFXTrade, ExternalTradingAlgorithm, ExternalTrade } from "@riocrypto/common";
|
|
2
2
|
declare class ClusterClient {
|
|
3
3
|
private baseUrl;
|
|
4
4
|
private clusterApiKey;
|
|
@@ -72,6 +72,7 @@ declare class ClusterClient {
|
|
|
72
72
|
startExternalTradingAlgorithm(id: string): Promise<ExternalTradingAlgorithm>;
|
|
73
73
|
stopExternalTradingAlgorithm(id: string): Promise<ExternalTradingAlgorithm>;
|
|
74
74
|
getExternalTradingAlgorithm(id: string): Promise<ExternalTradingAlgorithm>;
|
|
75
|
+
getExternalTrade(id: string): Promise<ExternalTrade>;
|
|
75
76
|
}
|
|
76
77
|
export declare const buildClusterClient: () => Promise<ClusterClient>;
|
|
77
78
|
export {};
|
|
@@ -460,6 +460,16 @@ class ClusterClient {
|
|
|
460
460
|
return response.data;
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
|
+
getExternalTrade(id) {
|
|
464
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
465
|
+
const response = yield this.axios.get(`${this.baseUrl}/api/trading/external/trades/${id}`, {
|
|
466
|
+
headers: {
|
|
467
|
+
"x-cluster-api-key": this.clusterApiKey,
|
|
468
|
+
},
|
|
469
|
+
});
|
|
470
|
+
return response.data;
|
|
471
|
+
});
|
|
472
|
+
}
|
|
463
473
|
}
|
|
464
474
|
const buildClusterClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
465
475
|
// Retrieve secrets asynchronously
|