Add limit order support on Manifest

This commit is contained in:
DonDuala
2024-12-29 21:57:51 -04:00
parent 4ae9051957
commit 284338af54
4 changed files with 138 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ import {
registerDomain,
request_faucet_funds,
trade,
limitOrder,
transfer,
getTokenDataByAddress,
getTokenDataByTicker,
@@ -138,6 +139,15 @@ export class SolanaAgentKit {
return trade(this, outputMint, inputAmount, inputMint, slippageBps);
}
async limitOrder(
marketId: PublicKey,
quantity: number,
side: string,
price: number,
): Promise<string> {
return limitOrder(this, marketId, quantity, side, price);
}
async lendAssets(amount: number): Promise<string> {
return lendAsset(this, amount);
}