@riocrypto/common-server 1.0.2186 → 1.0.2187
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.
|
@@ -77,11 +77,12 @@ declare class ClusterClient {
|
|
|
77
77
|
receiverCLABE: string;
|
|
78
78
|
amount: number;
|
|
79
79
|
}): Promise<string>;
|
|
80
|
-
placeEmarketsTrade({ amountToTrade, limitPrice, orderType, side, }: {
|
|
80
|
+
placeEmarketsTrade({ amountToTrade, limitPrice, orderType, side, externalTradeId, }: {
|
|
81
81
|
amountToTrade: number;
|
|
82
82
|
limitPrice: number;
|
|
83
83
|
orderType: "TOD" | "TOM" | "SPT";
|
|
84
84
|
side: Side;
|
|
85
|
+
externalTradeId?: string;
|
|
85
86
|
}): Promise<EmarketsFXTrade>;
|
|
86
87
|
getEmarketsTrade(id: string): Promise<EmarketsFXTrade>;
|
|
87
88
|
updateExternalTradingAlgorithmLimitPrice(id: string, limitPrice: number): Promise<void>;
|
|
@@ -419,9 +419,9 @@ class ClusterClient {
|
|
|
419
419
|
return (_a = response.data) === null || _a === void 0 ? void 0 : _a.url;
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
|
-
placeEmarketsTrade({ amountToTrade, limitPrice, orderType, side, }) {
|
|
422
|
+
placeEmarketsTrade({ amountToTrade, limitPrice, orderType, side, externalTradeId, }) {
|
|
423
423
|
return __awaiter(this, void 0, void 0, function* () {
|
|
424
|
-
const response = yield this.axios.post(`${this.baseUrl}/api/emarkets/bot/trades`, { amountToTrade, limitPrice, orderType, side }, {
|
|
424
|
+
const response = yield this.axios.post(`${this.baseUrl}/api/emarkets/bot/trades`, { amountToTrade, limitPrice, orderType, side, externalTradeId }, {
|
|
425
425
|
headers: {
|
|
426
426
|
"x-cluster-api-key": this.clusterApiKey,
|
|
427
427
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2187",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@google-cloud/secret-manager": "^5.3.0",
|
|
29
29
|
"@google-cloud/storage": "^6.9.5",
|
|
30
30
|
"@hyperdx/node-opentelemetry": "^0.7.0",
|
|
31
|
-
"@riocrypto/common": "^1.0.
|
|
31
|
+
"@riocrypto/common": "^1.0.1927",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|