Add Binance exchange support

- Updated the environment configuration to include Binance as a selectable exchange option.
- Enhanced the README documentation to reflect the addition of Binance.
- Implemented the Binance exchange adapter and integrated it into the existing exchange framework.
- Modified the basis arbitrage strategy to support Binance alongside existing exchanges.
- Added tests to ensure proper functionality and integration of Binance within the trading system.
This commit is contained in:
discountry
2026-02-27 11:21:47 +08:00
parent 227484152d
commit 4205d5dc12
18 changed files with 2143 additions and 17 deletions
+7
View File
@@ -49,4 +49,11 @@ describe("resolveSymbolFromEnv", () => {
expect(resolveSymbolFromEnv("standx")).toBe("ETH-USD");
});
it("supports binance symbol defaults when explicit exchange id is provided", () => {
delete process.env.EXCHANGE;
process.env.BINANCE_SYMBOL = "ETHUSDT";
expect(resolveSymbolFromEnv("binance")).toBe("ETHUSDT");
});
});