@riocrypto/common-server 1.0.2219 → 1.0.2221
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.
|
@@ -86,7 +86,7 @@ declare class ClusterClient {
|
|
|
86
86
|
}): Promise<EmarketsFXTrade>;
|
|
87
87
|
getEmarketsTrade(id: string): Promise<EmarketsFXTrade>;
|
|
88
88
|
updateExternalTradingAlgorithmLimitPrice(id: string, limitPrice: number): Promise<void>;
|
|
89
|
-
startExternalTradingAlgorithm({ type, provider, originCurrency, destinationCurrency, maxOriginAmount, maxDestinationAmount, limitPrice, replaceOrderDifferenceThreshold, spread, clipSize, }: {
|
|
89
|
+
startExternalTradingAlgorithm({ type, provider, originCurrency, destinationCurrency, maxOriginAmount, maxDestinationAmount, limitPrice, replaceOrderDifferenceThreshold, isPostOnly, spread, clipSize, }: {
|
|
90
90
|
type: ExternalTradingAlgorithmType;
|
|
91
91
|
provider: ExternalTradingProvider;
|
|
92
92
|
originCurrency: Crypto | Fiat;
|
|
@@ -97,6 +97,7 @@ declare class ClusterClient {
|
|
|
97
97
|
replaceOrderDifferenceThreshold?: number;
|
|
98
98
|
spread?: number;
|
|
99
99
|
clipSize?: number;
|
|
100
|
+
isPostOnly?: boolean;
|
|
100
101
|
}): Promise<ExternalTradingAlgorithm>;
|
|
101
102
|
stopExternalTradingAlgorithm(id: string): Promise<ExternalTradingAlgorithm>;
|
|
102
103
|
getExternalTradingAlgorithm(id: string): Promise<ExternalTradingAlgorithm>;
|
|
@@ -448,7 +448,7 @@ class ClusterClient {
|
|
|
448
448
|
});
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
|
-
startExternalTradingAlgorithm({ type, provider, originCurrency, destinationCurrency, maxOriginAmount, maxDestinationAmount, limitPrice, replaceOrderDifferenceThreshold, spread, clipSize, }) {
|
|
451
|
+
startExternalTradingAlgorithm({ type, provider, originCurrency, destinationCurrency, maxOriginAmount, maxDestinationAmount, limitPrice, replaceOrderDifferenceThreshold, isPostOnly, spread, clipSize, }) {
|
|
452
452
|
return __awaiter(this, void 0, void 0, function* () {
|
|
453
453
|
const response = yield this.axios.post(`${this.baseUrl}/api/trading/external/algorithms/start`, {
|
|
454
454
|
type,
|
|
@@ -461,6 +461,7 @@ class ClusterClient {
|
|
|
461
461
|
replaceOrderDifferenceThreshold,
|
|
462
462
|
spread,
|
|
463
463
|
clipSize,
|
|
464
|
+
isPostOnly,
|
|
464
465
|
}, {
|
|
465
466
|
headers: {
|
|
466
467
|
"x-cluster-api-key": this.clusterApiKey,
|
|
@@ -39,6 +39,7 @@ interface ArbitrageSessionAttrs {
|
|
|
39
39
|
replaceOrderDifferenceThreshold: number;
|
|
40
40
|
limitPrice?: number;
|
|
41
41
|
clipSize?: number;
|
|
42
|
+
isPostOnly?: boolean;
|
|
42
43
|
};
|
|
43
44
|
};
|
|
44
45
|
};
|
|
@@ -108,6 +109,7 @@ interface ArbitrageSessionDoc extends Document {
|
|
|
108
109
|
replaceOrderDifferenceThreshold: number;
|
|
109
110
|
limitPrice?: number;
|
|
110
111
|
clipSize?: number;
|
|
112
|
+
isPostOnly?: boolean;
|
|
111
113
|
};
|
|
112
114
|
};
|
|
113
115
|
};
|
|
@@ -24,6 +24,7 @@ interface ExternalTradingAlgorithmAttrs {
|
|
|
24
24
|
spread: number;
|
|
25
25
|
replaceOrderDifferenceThreshold: number;
|
|
26
26
|
limitPrice?: number;
|
|
27
|
+
isPostOnly?: boolean;
|
|
27
28
|
};
|
|
28
29
|
};
|
|
29
30
|
externalTradeIds: string[];
|
|
@@ -53,6 +54,7 @@ interface ExternalTradingAlgorithmDoc extends Document {
|
|
|
53
54
|
spread: number;
|
|
54
55
|
replaceOrderDifferenceThreshold: number;
|
|
55
56
|
limitPrice?: number;
|
|
57
|
+
isPostOnly?: boolean;
|
|
56
58
|
};
|
|
57
59
|
};
|
|
58
60
|
externalTradeIds: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2221",
|
|
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.1951",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|