@riocrypto/common 1.0.1535 → 1.0.1537
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;
|
|
@@ -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
|
+
}
|