feat: 添加 Lighter 适配器及相关功能,支持 trailing stops 和新的交易逻辑

This commit is contained in:
discountry
2025-09-30 22:08:05 +08:00
parent e83bdfccf9
commit c8b0ab1c8e
101 changed files with 90621 additions and 3 deletions
+2
View File
@@ -16,6 +16,8 @@ afterEach(() => {
describe("exchange factory", () => {
it("defaults to aster when no env is provided", () => {
delete process.env.EXCHANGE;
process.env.ASTER_API_KEY = "key";
process.env.ASTER_API_SECRET = "secret";
const adapter = createExchangeAdapter({ symbol: "BTCUSDT" });
expect(adapter).toBeInstanceOf(AsterExchangeAdapter);
expect(adapter.id).toBe("aster");