list_payment_orders
Retrieve and filter payment orders for USDC/USDT transactions by currency, status, or pagination to manage cryptocurrency payments.
Instructions
List payment orders with optional filters.
Args:
currency: Filter by currency (USDC/USDT)
status: Filter by order status
page: Page number (1 to n)
page_size: Page size (default 10)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | ||
| status | No | ||
| page | No | ||
| page_size | No |
Implementation Reference
- server.py:187-214 (handler)The handler function for the 'list_payment_orders' tool. It is registered via the @mcp.tool() decorator and implements the logic to fetch payment orders from the Infini API using the InfiniClient, applying optional filters for currency, status, pagination.@mcp.tool() def list_payment_orders( currency: Optional[str] = None, status: Optional[str] = None, page: int = 1, page_size: int = 10 ) -> str: """ List payment orders with optional filters. Args: currency: Filter by currency (USDC/USDT) status: Filter by order status page: Page number (1 to n) page_size: Page size (default 10) """ params = { "page": page, "page_size": page_size } if currency: params["currency"] = currency if status: params["status"] = status result = client.request("GET", "/order/list", params=params) return str(result)