@riocrypto/common-server 1.0.2239 → 1.0.2241
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,6 +61,7 @@ declare class ClusterClient {
|
|
|
61
61
|
resetOrderFXData(orderId: string): Promise<void>;
|
|
62
62
|
deleteInvoice(id: string): Promise<void>;
|
|
63
63
|
deleteRecord(id: string): Promise<void>;
|
|
64
|
+
createRecord(orderId: string, force: boolean): Promise<void>;
|
|
64
65
|
registerUserWithCoincover(userId: string): Promise<void>;
|
|
65
66
|
importOrder(orderToImport: ImportOrderData): Promise<void>;
|
|
66
67
|
createInternalTransfer({ amount, currency, origin, destination, liquidityAutomationId, }: {
|
|
@@ -375,6 +375,15 @@ class ClusterClient {
|
|
|
375
375
|
});
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
|
+
createRecord(orderId, force) {
|
|
379
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
380
|
+
yield this.axios.post(`${this.baseUrl}/api/records`, { orderId, force }, {
|
|
381
|
+
headers: {
|
|
382
|
+
"x-cluster-api-key": this.clusterApiKey,
|
|
383
|
+
},
|
|
384
|
+
});
|
|
385
|
+
});
|
|
386
|
+
}
|
|
378
387
|
registerUserWithCoincover(userId) {
|
|
379
388
|
return __awaiter(this, void 0, void 0, function* () {
|
|
380
389
|
yield this.axios.post(`${this.baseUrl}/api/users/${userId}/coincover`, {}, {
|
|
@@ -118,6 +118,13 @@ interface ArbitrageSessionDoc extends Document {
|
|
|
118
118
|
clipSize?: number;
|
|
119
119
|
isPostOnly?: boolean;
|
|
120
120
|
};
|
|
121
|
+
standardMarketMakingWithTopOfBookFallback?: {
|
|
122
|
+
spread: number;
|
|
123
|
+
replaceOrderDifferenceThreshold: number;
|
|
124
|
+
limitPrice?: number;
|
|
125
|
+
clipSize?: number;
|
|
126
|
+
isPostOnly?: boolean;
|
|
127
|
+
};
|
|
121
128
|
};
|
|
122
129
|
};
|
|
123
130
|
providerB: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2241",
|
|
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.1970",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|