@riocrypto/common-server 1.0.2186 → 1.0.2188

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, isExternalTrade, }: {
81
81
  amountToTrade: number;
82
82
  limitPrice: number;
83
83
  orderType: "TOD" | "TOM" | "SPT";
84
84
  side: Side;
85
+ isExternalTrade: boolean;
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, isExternalTrade, }) {
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, isExternalTrade }, {
425
425
  headers: {
426
426
  "x-cluster-api-key": this.clusterApiKey,
427
427
  },
@@ -4,7 +4,7 @@ interface EmarketsFXTradeAttrs {
4
4
  createdAt: Date;
5
5
  status: EmarketsFXTradeStatus;
6
6
  FXTradeId?: string;
7
- externalTradeId?: string;
7
+ isExternalTrade: boolean;
8
8
  side: Side;
9
9
  fiat: Fiat;
10
10
  amountToTrade: number;
@@ -19,7 +19,7 @@ interface EmarketsFXTradeDoc extends Document {
19
19
  side: Side;
20
20
  status: EmarketsFXTradeStatus;
21
21
  FXTradeId?: string;
22
- externalTradeId?: string;
22
+ isExternalTrade: boolean;
23
23
  fiat: Fiat;
24
24
  amountToTrade: number;
25
25
  amountReceived?: number;
@@ -22,8 +22,8 @@ const buildEmarketsFXTrade = (mongoose) => {
22
22
  FXTradeId: {
23
23
  type: String,
24
24
  },
25
- externalTradeId: {
26
- type: String,
25
+ isExternalTrade: {
26
+ type: Boolean,
27
27
  },
28
28
  fiat: {
29
29
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2186",
3
+ "version": "1.0.2188",
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.1926",
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",