@riocrypto/common 1.0.1510 → 1.0.1512
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.
|
@@ -55,6 +55,7 @@ import { Onboarding } from "../types/onboarding";
|
|
|
55
55
|
import { AlertTriggerCondition } from "../types/alert-trigger-condition";
|
|
56
56
|
import { Side } from "../types/side";
|
|
57
57
|
import { Alert } from "../types/alert";
|
|
58
|
+
import { AlertType } from "../types/alert-type";
|
|
58
59
|
export declare class RioAdminClient {
|
|
59
60
|
private axios;
|
|
60
61
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -83,7 +84,8 @@ export declare class RioAdminClient {
|
|
|
83
84
|
createTemporaryVerification(phoneNumber: string): Promise<{
|
|
84
85
|
code: string;
|
|
85
86
|
}>;
|
|
86
|
-
createAlert({ priceTrigger, liquidityTrigger, destinationType, telegramDestination, }: {
|
|
87
|
+
createAlert({ type, priceTrigger, liquidityTrigger, destinationType, telegramDestination, }: {
|
|
88
|
+
type: AlertType;
|
|
87
89
|
priceTrigger?: {
|
|
88
90
|
condition: AlertTriggerCondition;
|
|
89
91
|
value: number;
|
|
@@ -133,11 +133,12 @@ class RioAdminClient {
|
|
|
133
133
|
return data;
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
createAlert({ priceTrigger, liquidityTrigger, destinationType, telegramDestination, }) {
|
|
136
|
+
createAlert({ type, priceTrigger, liquidityTrigger, destinationType, telegramDestination, }) {
|
|
137
137
|
return __awaiter(this, void 0, void 0, function* () {
|
|
138
138
|
const { data } = yield this.axios.post("/api/alerts", {
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
type,
|
|
140
|
+
priceTrigger: priceTrigger ? priceTrigger : undefined,
|
|
141
|
+
liquidityTrigger: liquidityTrigger ? liquidityTrigger : undefined,
|
|
141
142
|
destinationType,
|
|
142
143
|
telegramDestination,
|
|
143
144
|
});
|
|
@@ -45,6 +45,7 @@ import { Onboarding } from "../types/onboarding";
|
|
|
45
45
|
import { Alert } from "../types/alert";
|
|
46
46
|
import { AlertTriggerCondition } from "../types/alert-trigger-condition";
|
|
47
47
|
import { Side } from "../types/side";
|
|
48
|
+
import { AlertType } from "../types/alert-type";
|
|
48
49
|
export declare class RioClient {
|
|
49
50
|
private axios;
|
|
50
51
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -56,7 +57,8 @@ export declare class RioClient {
|
|
|
56
57
|
}>;
|
|
57
58
|
exportOrders(page: number, startDate: Date, endDate: Date, query?: OrderQuery): Promise<Order[]>;
|
|
58
59
|
getOrders(page: number, limit?: number, query?: OrderQuery, includeOwnOrders?: boolean, startDate?: Date, endDate?: Date): Promise<Order[]>;
|
|
59
|
-
createAlert({ priceTrigger, liquidityTrigger, destinationType, telegramDestination, }: {
|
|
60
|
+
createAlert({ type, priceTrigger, liquidityTrigger, destinationType, telegramDestination, }: {
|
|
61
|
+
type: AlertType;
|
|
60
62
|
priceTrigger?: {
|
|
61
63
|
condition: AlertTriggerCondition;
|
|
62
64
|
value: number;
|
|
@@ -76,11 +76,12 @@ class RioClient {
|
|
|
76
76
|
return data;
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
createAlert({ priceTrigger, liquidityTrigger, destinationType, telegramDestination, }) {
|
|
79
|
+
createAlert({ type, priceTrigger, liquidityTrigger, destinationType, telegramDestination, }) {
|
|
80
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
81
|
const { data } = yield this.axios.post("/api/alerts", {
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
type,
|
|
83
|
+
priceTrigger: priceTrigger ? priceTrigger : undefined,
|
|
84
|
+
liquidityTrigger: liquidityTrigger ? liquidityTrigger : undefined,
|
|
84
85
|
destinationType,
|
|
85
86
|
telegramDestination,
|
|
86
87
|
});
|