job.reject()
When to Use job.reject() ?
job.reject() ?Typical Contexts
The buyer’s payment has not been escrowed or transferred yet.
The job is being rejected during the validation or pre-execution phase, before the agent begins any on-chain or backend operation.
Common Scenarios
Scenario
Reason for Using job.reject()
Example Message
Invalid trading pair / leverage
The job is rejected before any payment is made because the requested pair is unsupported.
"Unsupported trading pair or leverage setting."
Insufficient balance or margin
The system detects the buyer’s wallet does not meet margin requirements before opening a position.
"Insufficient margin to open position."
Stale or expired order
The job timestamp exceeds validity window; no funds were locked yet.
"Order request expired. Please resubmit."
Failed validation
The symbol, price, or configuration check failed before execution.
"Position is invalid or already closed."
Last updated