Merge branch 'main' into main

This commit is contained in:
aryan
2025-01-03 22:55:22 +05:30
committed by GitHub
5 changed files with 279 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ import {
request_faucet_funds,
trade,
limitOrder,
batchOrder,
cancelAllOrders,
withdrawAll,
transfer,
@@ -52,6 +53,7 @@ import {
cancelListing,
fetchTokenReportSummary,
fetchTokenDetailedReport,
OrderParams,
} from "../tools";
import {
@@ -192,6 +194,13 @@ export class SolanaAgentKit {
return limitOrder(this, marketId, quantity, side, price);
}
async batchOrder(
marketId: PublicKey,
orders: OrderParams[],
): Promise<string> {
return batchOrder(this, marketId, orders);
}
async cancelAllOrders(marketId: PublicKey): Promise<string> {
return cancelAllOrders(this, marketId);
}