Client Order ID
About
Client order ID is a client-supplied order identifier that Gemini will echo back to you in all subsequent messages about that order.
Although this identifier is optional, Gemini strongly recommends supplying client_order_id
when placing orders using the New Order endpoint.
This makes it easy to track the Order Events: Accepted and Order Events: Booked responses in your Order Events WebSocket subscription.
Visibility
Your client order ids are only visible to the Gemini exchange and you. They are never on any public API endpoints.
Uniqueness
Gemini recommends that your client order IDs should be unique per trading session.
Examples
Order Event
Order Event subscription Accepted event showing client_order_id.
[ { "type" : "accepted", "order_id" : "372456298", "event_id" : "372456299", "client_order_id": "20170208_example", "api_session" : "AeRLptFXoYEqLaNiRwv8", "symbol" : "btcusd", "side" : "buy", "order_type" : "exchange limit", "timestamp" : "1478203017", "timestampms" : 1478203017455, "is_live" : true, "is_cancelled" : false, "is_hidden" : false, "avg_execution_price" : "0", "original_amount" : "14.0296", "price" : "1059.54" } ]plain
Order status
Order Status endpoint for the same order, showing client_order_id.
{ "avg_execution_price": "0.00", "client_order_id": "20170208_example", "exchange": "gemini", "executed_amount": "0", "id": "372456298", "is_cancelled": false, "is_hidden": false, "is_live": true, "order_id": "372456298", "original_amount": "14.0296", "price": "1059.54", "remaining_amount": "14.0296", "side": "buy", "symbol": "btcusd", "timestamp": "1478203017", "timestampms": 1478203017455, "type": "exchange limit", "was_forced": false }plain