@riocrypto/common-server 1.0.2263 → 1.0.2265

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,6 +86,7 @@ declare class ClusterClient {
86
86
  isExternalTrade: boolean;
87
87
  }): Promise<EmarketsFXTrade>;
88
88
  retryEmarketsTrade(id: string): Promise<void>;
89
+ retryExternalTrade(id: string): Promise<void>;
89
90
  getEmarketsTrade(id: string): Promise<EmarketsFXTrade>;
90
91
  updateExternalTradingAlgorithmLimitPrice(id: string, limitPrice: number): Promise<void>;
91
92
  startExternalTradingAlgorithm({ type, provider, originCurrency, destinationCurrency, maxOriginAmount, maxDestinationAmount, limitPrice, replaceOrderDifferenceThreshold, isPostOnly, spread, clipSize, }: {
@@ -447,6 +447,11 @@ class ClusterClient {
447
447
  });
448
448
  });
449
449
  }
450
+ retryExternalTrade(id) {
451
+ return __awaiter(this, void 0, void 0, function* () {
452
+ yield this.axios.post(`${this.baseUrl}/api/trading/external/trades/${id}/retry`, {}, { headers: { "x-cluster-api-key": this.clusterApiKey } });
453
+ });
454
+ }
450
455
  getEmarketsTrade(id) {
451
456
  return __awaiter(this, void 0, void 0, function* () {
452
457
  const response = yield this.axios.get(`${this.baseUrl}/api/emarkets/bot/trades/${id}`, {
@@ -1,9 +1,11 @@
1
- import { BankAccountVerificationStatus } from "@riocrypto/common";
1
+ import { BankAccountVerificationStatus, Processor } from "@riocrypto/common";
2
2
  import { Mongoose, Model, Document } from "mongoose";
3
3
  interface BankAccountVerificationAttrs {
4
4
  bankAccountId: string;
5
5
  status: BankAccountVerificationStatus;
6
6
  amount: number;
7
+ provider?: Processor.SPEI_STP | Processor.SPEI_NVIO;
8
+ providerWithdrawalId?: string;
7
9
  }
8
10
  interface BankAccountVerificationModel extends Model<BankAccountVerificationDoc> {
9
11
  build(attrs: BankAccountVerificationAttrs): BankAccountVerificationDoc;
@@ -13,6 +15,8 @@ interface BankAccountVerificationDoc extends Document {
13
15
  bankAccountId: string;
14
16
  status: BankAccountVerificationStatus;
15
17
  amount: number;
18
+ provider?: Processor.SPEI_STP | Processor.SPEI_NVIO;
19
+ providerWithdrawalId?: string;
16
20
  }
17
21
  declare const buildBankAccountVerification: (mongoose: Mongoose) => BankAccountVerificationModel;
18
22
  export { buildBankAccountVerification, BankAccountVerificationDoc, BankAccountVerificationAttrs, };
@@ -19,6 +19,14 @@ const buildBankAccountVerification = (mongoose) => {
19
19
  type: Number,
20
20
  required: true,
21
21
  },
22
+ provider: {
23
+ type: String,
24
+ required: false,
25
+ },
26
+ providerWithdrawalId: {
27
+ type: String,
28
+ required: false,
29
+ },
22
30
  }, {
23
31
  toJSON: {
24
32
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2263",
3
+ "version": "1.0.2265",
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.1983",
31
+ "@riocrypto/common": "^1.0.1984",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",