support lighter spot

This commit is contained in:
discountry
2025-12-07 21:37:58 +08:00
parent 5f79b134f2
commit 180f47b6e0
89 changed files with 11921 additions and 124 deletions
+4
View File
@@ -194,6 +194,7 @@ export class LighterSigner {
triggerPrice: params.triggerPrice,
orderExpiry: params.orderExpiry.toString(),
nonce: params.nonce.toString(),
accountIndex: this.accountIndex.toString(),
});
const txInfo = String(result);
@@ -224,6 +225,7 @@ export class LighterSigner {
marketIndex: params.marketIndex,
orderIndex: params.orderIndex.toString(),
nonce: params.nonce.toString(),
accountIndex: this.accountIndex.toString(),
});
const txInfo = String(result);
@@ -251,6 +253,7 @@ export class LighterSigner {
timeInForce: params.timeInForce,
scheduledTime: params.scheduledTime.toString(),
nonce: params.nonce.toString(),
accountIndex: this.accountIndex.toString(),
});
const txInfo = String(result);
@@ -275,6 +278,7 @@ export class LighterSigner {
const result = await this.bridge.call("create_auth_token", {
apiKeyIndex: index,
deadlineMs: Math.floor(deadlineMs / 1000),
accountIndex: this.accountIndex.toString(),
});
return String(result ?? "");
}