feat(exchanges): add Ondo Perps exchange adapter

This commit is contained in:
discountry
2026-07-11 15:10:40 +08:00
parent 6b5f2542a4
commit 1f2c2150e0
20 changed files with 2181 additions and 4 deletions
+10
View File
@@ -81,6 +81,16 @@ describe("command parser", () => {
});
});
it("parses the Ondo Perps exchange alias", () => {
for (const exchange of ["ondoperps", "ondoperp"]) {
const command = parseCommandArgv(["exchange", "capabilities", "--exchange", exchange]);
expect(command).toMatchObject({
kind: "exchange-capabilities",
exchange: "ondoperps",
});
}
});
it("throws for unsupported option", () => {
expect(() => parseCommandArgv(["doctor", "--unknown"])).toThrow(CommandParseError);
});