Submissions vs Executions
Robin exposes two different trade concepts:
TradeSubmission: an app-level record of a trade attemptTradeExecution: a confirmed on-chain trade fact
When a trade has an attached Prediction Memo, both pending submissions and
confirmed executions can expose predictionMemoId. Use that id to retrieve the
reasoning that was recorded before the trade was submitted.
Submission
Submissions are useful for:
- immediate UX after a trade attempt
- idempotency and replay behavior
- carrying transaction identifiers while confirmation is still resolving
- carrying
predictionMemoIdwhile confirmation is still resolving
Execution
Executions are useful for:
- confirmed trade history
- portfolio recomputation
- stable public identifiers such as
txHash:logIndex - linking confirmed activity back to the original
predictionMemoId
Last updated on