@riocrypto/common-server 1.0.2212 → 1.0.2214
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, }: {
|
|
89
|
+
startExternalTradingAlgorithm({ type, provider, originCurrency, destinationCurrency, maxOriginAmount, maxDestinationAmount, limitPrice, replaceOrderDifferenceThreshold, spread, clipSize, }: {
|
|
90
90
|
type: ExternalTradingAlgorithmType;
|
|
91
91
|
provider: ExternalTradingProvider;
|
|
92
92
|
originCurrency: Crypto | Fiat;
|
|
@@ -94,6 +94,9 @@ declare class ClusterClient {
|
|
|
94
94
|
maxOriginAmount?: number;
|
|
95
95
|
maxDestinationAmount?: number;
|
|
96
96
|
limitPrice?: number;
|
|
97
|
+
replaceOrderDifferenceThreshold?: number;
|
|
98
|
+
spread?: number;
|
|
99
|
+
clipSize?: number;
|
|
97
100
|
}): Promise<ExternalTradingAlgorithm>;
|
|
98
101
|
stopExternalTradingAlgorithm(id: string): Promise<ExternalTradingAlgorithm>;
|
|
99
102
|
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, }) {
|
|
451
|
+
startExternalTradingAlgorithm({ type, provider, originCurrency, destinationCurrency, maxOriginAmount, maxDestinationAmount, limitPrice, replaceOrderDifferenceThreshold, 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,
|
|
@@ -458,6 +458,9 @@ class ClusterClient {
|
|
|
458
458
|
maxOriginAmount,
|
|
459
459
|
maxDestinationAmount,
|
|
460
460
|
limitPrice,
|
|
461
|
+
replaceOrderDifferenceThreshold,
|
|
462
|
+
spread,
|
|
463
|
+
clipSize,
|
|
461
464
|
}, {
|
|
462
465
|
headers: {
|
|
463
466
|
"x-cluster-api-key": this.clusterApiKey,
|
|
@@ -61,16 +61,6 @@ interface ArbitrageSessionAttrs {
|
|
|
61
61
|
allowAfterHoursTrading?: boolean;
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
|
-
algoOptions: {
|
|
65
|
-
topOfBook?: {
|
|
66
|
-
limitPrice?: number;
|
|
67
|
-
};
|
|
68
|
-
standardMarketMaking?: {
|
|
69
|
-
spread: number;
|
|
70
|
-
replaceOrderDifferenceThreshold: number;
|
|
71
|
-
limitPrice?: number;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
64
|
};
|
|
75
65
|
}
|
|
76
66
|
interface ArbitrageSessionModel extends Model<ArbitrageSessionDoc> {
|