execute_limit_order
Sign and submit a pre-built limit order transaction on Solana to place an order that executes automatically when market conditions are met. Returns the transaction signature upon success.
Instructions
🚨 WARNING: THIS WILL CREATE A REAL LIMIT ORDER ON-CHAIN! 🚨
Sign and execute a limit order transaction.
This is a PAID operation that creates a limit order on the Solana blockchain. The order will execute automatically when market conditions are met.
Args: transaction: Base64 encoded unsigned transaction from create_limit_order request_id: Request ID from create_limit_order response
Returns: Dictionary containing: - success: Boolean indicating if the execution was successful - data: Contains 'signature' and status if successful - error: Error message if execution failed
Note: - This creates a limit order that may execute later - Orders have fees: 0.03% (stable pairs) or 0.1% (other pairs) - Plus automatic referral fees (2.55%) - Minimum order size is $5 USD
Example: >>> # First create the order >>> order = await api.create_limit_order(...) >>> if order["success"]: ... # Then execute it ... result = await api.execute_limit_order( ... transaction=order["data"]["transaction"], ... request_id=order["data"]["requestId"] ... ) ... if result["success"]: ... print(f"Limit order created! Signature: {result['data']['signature']}")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_id | Yes | ||
| transaction | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||