Gemini Crypto Exchange Logo
Order Events

Workflow

  1. Client submits order to Gemini exchange
  2. Is the order accepted?
    • Yes, order is accepted
      1. Gemini sends an accepted order event
      2. Gemini sends zero or more initial fill events
      3. Does the order have non-zero remaining quantity?
        • Yes, the order has non-zero remaining quantity
          • Gemini sends a booked event
          • the order rests until
            • client sends a cancel request
              • Is the order cancelled?
                1. Yes, the order is cancelled
                  • Gemini sends a cancelled event followed by a closed event
                  • No further order events about this order
                2. No, the cancel request could not be fulfilled
                  • Gemini sends a cancel_rejected event explaining why the order cancel request could not be fulfilled.
                  • The order continues to rest on the books
            • a trade executes, partially or completely filling the order
              • Gemini sends a fill event with details about the trade, including remaining quantity
              • Is the order completely filled?
                1. Yes, the order is completely filled

                  • Gemini sends a closed event
                  • No further order events about this order
                2. No, the order has remaining quantity

                  • The order continues to rest on the books
        • No, the order has been completely filled
          • Gemini sends a closed event
          • No further order events about this order
    • No, order is rejected
      • Gemini responds with a rejected order event explaining why the order was rejected
      • No further order events about this order