@riocrypto/common-server 1.0.2726 → 1.0.2727

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.
@@ -11,7 +11,7 @@ declare class ClusterClient {
11
11
  newAmountCrypto?: number;
12
12
  useSamePrice?: boolean;
13
13
  }): Promise<Quote>;
14
- createQuote({ userId, side, country, fiat, crypto, amountFiat, amountCrypto, USBankTransferMethod, deferredPaymentType, twoWaySettlementType, twoWaySettlementDateOffset, netPrice, marketPrice, ignoreLiquidityError, orderType, limitNetPrice, timeInForceStartsAt, timeInForceEndsAt, }: {
14
+ createQuote({ userId, side, country, fiat, crypto, amountFiat, amountCrypto, USBankTransferMethod, deferredPaymentType, twoWaySettlementType, twoWaySettlementDateOffset, netPrice, marketPrice, ignoreLiquidityError, orderType, limitNetPrice, timeInForceStartsAt, timeInForceEndsAt, isBinanceRFQ, }: {
15
15
  userId: string;
16
16
  side: Side;
17
17
  country: Country;
@@ -30,9 +30,10 @@ declare class ClusterClient {
30
30
  limitNetPrice?: number;
31
31
  timeInForceStartsAt?: Date;
32
32
  timeInForceEndsAt?: Date;
33
+ isBinanceRFQ?: boolean;
33
34
  }): Promise<Quote>;
34
35
  getCryptoAddresses(userId: string, crypto: Crypto): Promise<CryptoAddress[]>;
35
- createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, bulkCryptoPaymentId, bulkBankPaymentId, bulkCryptoPayoutId, bulkBankPayoutId, TWAPSessionId, isBinanceRFQOrder, }: {
36
+ createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, bulkCryptoPaymentId, bulkBankPaymentId, bulkCryptoPayoutId, bulkBankPayoutId, TWAPSessionId, }: {
36
37
  quoteId: string;
37
38
  userAddressId?: string;
38
39
  payoutBankAccountId?: string;
@@ -44,7 +45,6 @@ declare class ClusterClient {
44
45
  bulkCryptoPayoutId?: string;
45
46
  bulkBankPayoutId?: string;
46
47
  TWAPSessionId?: string;
47
- isBinanceRFQOrder?: boolean;
48
48
  }): Promise<Order>;
49
49
  takeAxe({ axeId, userId, amount, crypto, userAddressId, payoutBankAccountId, deferredPaymentType, twoWaySettlementType, twoWaySettlementDateOffset, }: {
50
50
  axeId: string;
@@ -74,7 +74,7 @@ class ClusterClient {
74
74
  return response.data;
75
75
  });
76
76
  }
77
- createQuote({ userId, side, country, fiat, crypto, amountFiat, amountCrypto, USBankTransferMethod, deferredPaymentType, twoWaySettlementType, twoWaySettlementDateOffset, netPrice, marketPrice, ignoreLiquidityError, orderType, limitNetPrice, timeInForceStartsAt, timeInForceEndsAt, }) {
77
+ createQuote({ userId, side, country, fiat, crypto, amountFiat, amountCrypto, USBankTransferMethod, deferredPaymentType, twoWaySettlementType, twoWaySettlementDateOffset, netPrice, marketPrice, ignoreLiquidityError, orderType, limitNetPrice, timeInForceStartsAt, timeInForceEndsAt, isBinanceRFQ, }) {
78
78
  return __awaiter(this, void 0, void 0, function* () {
79
79
  const response = yield this.axios.post(`${this.baseUrl}/api/quotes`, {
80
80
  userId,
@@ -95,6 +95,7 @@ class ClusterClient {
95
95
  limitNetPrice,
96
96
  timeInForceStartsAt,
97
97
  timeInForceEndsAt,
98
+ isBinanceRFQ
98
99
  }, {
99
100
  headers: {
100
101
  "x-cluster-api-key": this.clusterApiKey,
@@ -113,7 +114,7 @@ class ClusterClient {
113
114
  return response.data;
114
115
  });
115
116
  }
116
- createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, bulkCryptoPaymentId, bulkBankPaymentId, bulkCryptoPayoutId, bulkBankPayoutId, TWAPSessionId, isBinanceRFQOrder, }) {
117
+ createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, bulkCryptoPaymentId, bulkBankPaymentId, bulkCryptoPayoutId, bulkBankPayoutId, TWAPSessionId, }) {
117
118
  return __awaiter(this, void 0, void 0, function* () {
118
119
  const response = yield this.axios.post(`${this.baseUrl}/api/orders`, {
119
120
  quoteId,
@@ -131,7 +132,6 @@ class ClusterClient {
131
132
  : undefined,
132
133
  bulkBankPaymentId: bulkBankPaymentId ? bulkBankPaymentId : undefined,
133
134
  TWAPSessionId: TWAPSessionId ? TWAPSessionId : undefined,
134
- isBinanceRFQOrder: isBinanceRFQOrder ? isBinanceRFQOrder : undefined,
135
135
  }, {
136
136
  headers: {
137
137
  "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.2726",
3
+ "version": "1.0.2727",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",