@riocrypto/common 1.0.1536 → 1.0.1538
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.
|
@@ -61,6 +61,7 @@ import { WebhookRegistration } from "../types/webhook-registration";
|
|
|
61
61
|
import { AdminActionType } from "../types/admin-action-type";
|
|
62
62
|
import { AdminAction } from "../types/admin-action";
|
|
63
63
|
import { ArbitrageSettings } from "../types/arbitrage-settings";
|
|
64
|
+
import { ArbitrageOpportunity } from "../types/arbitrage-opportunity";
|
|
64
65
|
export declare class RioAdminClient {
|
|
65
66
|
private axios;
|
|
66
67
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -344,4 +345,5 @@ export declare class RioAdminClient {
|
|
|
344
345
|
createArbitrageSettings(arbitrageSettings: ArbitrageSettings): Promise<ArbitrageSettings>;
|
|
345
346
|
getArbitrageSettings(): Promise<ArbitrageSettings>;
|
|
346
347
|
updateArbitrageSettings(arbitrageSettings: ArbitrageSettings): Promise<ArbitrageSettings>;
|
|
348
|
+
getArbitrageOpportunities(): Promise<ArbitrageOpportunity[]>;
|
|
347
349
|
}
|
|
@@ -1108,5 +1108,11 @@ class RioAdminClient {
|
|
|
1108
1108
|
return data;
|
|
1109
1109
|
});
|
|
1110
1110
|
}
|
|
1111
|
+
getArbitrageOpportunities() {
|
|
1112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1113
|
+
const { data } = yield this.axios.get("/api/arbitrage/opportunities");
|
|
1114
|
+
return data;
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1111
1117
|
}
|
|
1112
1118
|
exports.RioAdminClient = RioAdminClient;
|
package/build/index.d.ts
CHANGED
|
@@ -249,6 +249,7 @@ export * from "./types/admin-action";
|
|
|
249
249
|
export * from "./types/admin-action-type";
|
|
250
250
|
export * from "./types/admin-action-status";
|
|
251
251
|
export * from "./types/arbitrage-settings";
|
|
252
|
+
export * from "./types/arbitrage-opportunity";
|
|
252
253
|
export * from "./classes/Asset";
|
|
253
254
|
export * from "./classes/KYCFieldClass";
|
|
254
255
|
export * from "./classes/KYCFileClass";
|
package/build/index.js
CHANGED
|
@@ -265,6 +265,7 @@ __exportStar(require("./types/admin-action"), exports);
|
|
|
265
265
|
__exportStar(require("./types/admin-action-type"), exports);
|
|
266
266
|
__exportStar(require("./types/admin-action-status"), exports);
|
|
267
267
|
__exportStar(require("./types/arbitrage-settings"), exports);
|
|
268
|
+
__exportStar(require("./types/arbitrage-opportunity"), exports);
|
|
268
269
|
__exportStar(require("./classes/Asset"), exports);
|
|
269
270
|
__exportStar(require("./classes/KYCFieldClass"), exports);
|
|
270
271
|
__exportStar(require("./classes/KYCFileClass"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Fiat } from "./fiat";
|
|
2
|
+
import { Crypto } from "./crypto";
|
|
3
|
+
export interface ArbitrageOpportunity {
|
|
4
|
+
recipe: "BuyUSDTAtBitsoSellUSDAtBBVA";
|
|
5
|
+
minProfit: {
|
|
6
|
+
value: number;
|
|
7
|
+
currency: Fiat | Crypto;
|
|
8
|
+
};
|
|
9
|
+
amountAvailableToTrade: {
|
|
10
|
+
value: number;
|
|
11
|
+
currency: Fiat;
|
|
12
|
+
lastUpdated: Date;
|
|
13
|
+
frozen?: boolean;
|
|
14
|
+
};
|
|
15
|
+
expectedProfit: {
|
|
16
|
+
value: number;
|
|
17
|
+
currency: Fiat | Crypto;
|
|
18
|
+
};
|
|
19
|
+
}
|