get_limit_orders
Retrieve active or historical limit orders for a wallet. Filter by input/output token and paginate results, all without executing transactions.
Instructions
Get active or historical limit orders for a wallet.
This function is FREE to call and does not execute any transactions.
Args: order_status: "active" or "history" (default: "active") wallet_address: Wallet to check (optional, defaults to configured wallet) input_mint: Filter by input token (optional) output_mint: Filter by output token (optional) page: Page number for pagination, 10 orders per page (optional)
Returns: Dictionary containing: - success: Boolean indicating if the request was successful - wallet_address: The wallet address that was queried - data: Array of order objects with details - hasMoreData: Boolean indicating if there are more pages - error: Error message if request failed
Example: >>> # Get active orders for configured wallet >>> result = await api.get_limit_orders(order_status="active") >>> if result["success"]: ... for order in result["data"]: ... print(f"Order {order['orderAccount']}: {order['makingAmount']} → {order['takingAmount']}") >>> >>> # Get order history with pagination >>> result = await api.get_limit_orders(order_status="history", page=1)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| input_mint | No | ||
| output_mint | No | ||
| order_status | No | active | |
| wallet_address | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||