mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 09:18:08 +00:00
feat: 添加 Lighter 适配器及相关功能,支持 trailing stops 和新的交易逻辑
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user