@riocrypto/common-server 1.0.2298 → 1.0.2301
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.
|
@@ -9,7 +9,7 @@ declare class ClusterClient {
|
|
|
9
9
|
newAmountFiat?: number;
|
|
10
10
|
newAmountCrypto?: number;
|
|
11
11
|
}): Promise<Quote>;
|
|
12
|
-
createQuote({ userId, side, country, fiat, crypto, amountFiat, amountCrypto, USBankTransferMethod, settlementTime, netPrice, price, }: {
|
|
12
|
+
createQuote({ userId, side, country, fiat, crypto, amountFiat, amountCrypto, USBankTransferMethod, settlementTime, netPrice, price, ignoreLiquidityError, }: {
|
|
13
13
|
userId: string;
|
|
14
14
|
side: Side;
|
|
15
15
|
country: Country;
|
|
@@ -21,6 +21,7 @@ declare class ClusterClient {
|
|
|
21
21
|
settlementTime?: SettlementTime;
|
|
22
22
|
netPrice?: number;
|
|
23
23
|
price?: number;
|
|
24
|
+
ignoreLiquidityError?: boolean;
|
|
24
25
|
}): Promise<Quote>;
|
|
25
26
|
getNewChainedQuote(chainedOrderId: string, chainedQuote: ChainedQuote, newOriginAmount?: number): Promise<ChainedQuote>;
|
|
26
27
|
getBidQuote(userId: string, side: Side, country: Country, fiat: Fiat, crypto: Crypto, amountFiat?: number, amountCrypto?: number, USBankTransferMethod?: "ach_push" | "wire", netPrice?: string): Promise<Quote>;
|
|
@@ -73,7 +73,7 @@ class ClusterClient {
|
|
|
73
73
|
return response.data.quote;
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
createQuote({ userId, side, country, fiat, crypto, amountFiat, amountCrypto, USBankTransferMethod, settlementTime, netPrice, price, }) {
|
|
76
|
+
createQuote({ userId, side, country, fiat, crypto, amountFiat, amountCrypto, USBankTransferMethod, settlementTime, netPrice, price, ignoreLiquidityError, }) {
|
|
77
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
78
|
const response = yield this.axios.post(`${this.baseUrl}/api/quotes`, {
|
|
79
79
|
userId,
|
|
@@ -87,6 +87,7 @@ class ClusterClient {
|
|
|
87
87
|
settlementTime,
|
|
88
88
|
netPrice,
|
|
89
89
|
price,
|
|
90
|
+
ignoreLiquidityError,
|
|
90
91
|
}, {
|
|
91
92
|
headers: {
|
|
92
93
|
"x-cluster-api-key": this.clusterApiKey,
|
package/build/models/user.d.ts
CHANGED
|
@@ -125,6 +125,7 @@ interface UserAttrs {
|
|
|
125
125
|
};
|
|
126
126
|
attioRecordId?: string;
|
|
127
127
|
slackChannelId?: string;
|
|
128
|
+
telegramChatId?: string;
|
|
128
129
|
serviceFee?: {
|
|
129
130
|
[country in Country]?: {
|
|
130
131
|
[side in Side]?: number;
|
|
@@ -260,6 +261,7 @@ interface UserDoc extends Document {
|
|
|
260
261
|
};
|
|
261
262
|
};
|
|
262
263
|
slackChannelId?: string;
|
|
264
|
+
telegramChatId?: string;
|
|
263
265
|
serviceFee?: {
|
|
264
266
|
[country in Country]?: {
|
|
265
267
|
[side in Side]?: number;
|
package/build/models/user.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2301",
|
|
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.2015",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|