name: live_order_lifecycle
timeout: 10s
steps:
  - id: submit
    action: submit_live_order
    request:
      account_id: live-acct-1
      instrument_id: KRX:005930
      side: buy
      quantity: "1"
      order_type: kis_best_limit
      broker: kis
      operator_confirmed: true
      operator_id: operator-1
      confirmation_reason: "approved for smoke test"
      idempotency_key: "smoke-001"
    expect:
      status: ok
      live_order_status: submitted
  - id: get
    action: get_live_order
    request:
      account_id: live-acct-1
      live_order_id: "{{steps.submit.live_order.id}}"
    expect:
      status: ok
  - id: cancel
    action: cancel_live_order
    request:
      account_id: live-acct-1
      live_order_id: "{{steps.submit.live_order.id}}"
    expect:
      status: ok
      live_order_status: canceled
