feat: update dependencies and add ccxt documentation for new features

This commit is contained in:
discountry
2025-10-23 19:36:42 +08:00
parent ea5da20311
commit f1ebfacaa2
7 changed files with 2006 additions and 379 deletions
+7 -1
View File
@@ -122,7 +122,13 @@ export class BackpackExchangeAdapter implements ExchangeAdapter {
this.initPromise = this.gateway
.ensureInitialized(this.symbol)
.then((value) => {
this.clearRetry();
if (process.env.BACKPACK_DEBUG === "1") {
console.error(`[BackpackExchangeAdapter] initialize succeeded`);
}
if (process.env.BACKPACK_DEBUG === "1") {
console.error(`[BackpackExchangeAdapter] initialize succeeded`);
}
this.clearRetry();
return value;
})
.catch((error) => {
File diff suppressed because it is too large Load Diff
-4
View File
@@ -19,9 +19,6 @@ function applyCommonFields(params: CreateOrderParams, intent: BaseOrderIntent):
if (intent.reduceOnly !== undefined) {
params.reduceOnly = toStringBoolean(intent.reduceOnly);
}
if (intent.closePosition !== undefined) {
params.closePosition = toStringBoolean(intent.closePosition);
}
return params;
}
@@ -85,4 +82,3 @@ export async function createClosePositionOrder(intent: ClosePositionIntent): Pro
);
return intent.adapter.createOrder(params);
}