Requirements for client order id

Hi Coinbase,

I have two questions about the client order id when submitting new orders:

  • Does it need to be an actual UUID? Or can it be any string really?
  • How unique does it need to be? Can I reuse client order ids? Across days? Across (FIX) connections?
  • I am interested in the answers for both FIX and HTTP


Hello @mickeymouse96 . Welcome to the forum! Thank you for taking an interest in using our Coinbase APIs. For the details regarding your concern, we will check on this for you with our team. We will get back to you once we have more information. Keep in touch!

Hello @mickeymouse96. Welcome to the forum! Thank you for taking interest in our Coinbase APIs.The answers to your questions are as follows:

  • The client order id (client_oid) must be in UUID format which is generated by your trading application (for example: ef359184-6c68-4d34-9559-fcea14a7dad3). It can’t be in a string format. You will receive an “Invalid order id” error response if it’s not in UUID format. Also, please ensure you are copying your Client Order ID exactly as it is displayed.
  • The client_oid will stay in the orders database and be associated with the order if the order doesn’t get canceled with zero fills.
  • We don’t enforce or check for unique client_oid and it will be down to your implementation to make sure you are not repeating client_oid, if you do, you may encounter issues.

We hope this helps!