@riocrypto/common-server 1.0.2161 → 1.0.2163

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.
@@ -81,7 +81,7 @@ declare class ClusterClient {
81
81
  stopExternalTradingAlgorithm(id: string): Promise<ExternalTradingAlgorithm>;
82
82
  getExternalTradingAlgorithm(id: string): Promise<ExternalTradingAlgorithm>;
83
83
  getExternalTrade(id: string): Promise<ExternalTrade>;
84
- placeExternalTrade({ provider, type, originCurrency, destinationCurrency, originAmount, destinationAmount, limitPrice, emarketsOrderType, }: {
84
+ placeExternalTrade({ provider, type, originCurrency, destinationCurrency, originAmount, destinationAmount, limitPrice, emarketsOrderType, arbitrageSessionId, }: {
85
85
  provider: ExternalTradingProvider;
86
86
  type: ExternalTradeType;
87
87
  originCurrency: Crypto | Fiat;
@@ -90,6 +90,7 @@ declare class ClusterClient {
90
90
  destinationAmount: number;
91
91
  limitPrice: number;
92
92
  emarketsOrderType: "TOD" | "TOM" | "SPT";
93
+ arbitrageSessionId?: string;
93
94
  }): Promise<ExternalTrade>;
94
95
  }
95
96
  export declare const buildClusterClient: () => Promise<ClusterClient>;
@@ -478,7 +478,7 @@ class ClusterClient {
478
478
  return response.data;
479
479
  });
480
480
  }
481
- placeExternalTrade({ provider, type, originCurrency, destinationCurrency, originAmount, destinationAmount, limitPrice, emarketsOrderType, }) {
481
+ placeExternalTrade({ provider, type, originCurrency, destinationCurrency, originAmount, destinationAmount, limitPrice, emarketsOrderType, arbitrageSessionId, }) {
482
482
  return __awaiter(this, void 0, void 0, function* () {
483
483
  const response = yield this.axios.post(`${this.baseUrl}/api/trading/external/trades`, {
484
484
  provider,
@@ -489,6 +489,7 @@ class ClusterClient {
489
489
  destinationAmount,
490
490
  limitPrice,
491
491
  emarketsOrderType,
492
+ arbitrageSessionId,
492
493
  }, {
493
494
  headers: {
494
495
  "x-cluster-api-key": this.clusterApiKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2161",
3
+ "version": "1.0.2163",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",