---
updatedAt: 2026-09-16T12:35:49.000Z
agentTools:
  projectIndex: https://global-docs.upbit.com/llms.txt
---

# Get Order

Retrieves an order information by order UUID or Identifier.

<HTMLBlock>{`
<div class="callout-section">
    <div class="callout-title">
      <i class="fa-solid fa-circle-exclamation"></i> <b>Check the proper endpoint based on your region.</b>
  </div>
	<div>The examples in this page is written using Singapore fiat code(SGD). Set the quote currency to match your region. The base_url differs by country/region. Make sure to specify the correct region value for your environment.<br>
    <br>	
	- Singapore (sg): https://sg-api.upbit.com<br>
	- Indonesia (id): https://id-api.upbit.com<br>
  - Thailand (th): https://th-api.upbit.com
	</div>
</div>
`}</HTMLBlock>

<HTMLBlock>{`
<div class="callout-section">
  <div class="callout-title">
    <i class="fa-solid fa-circle-exclamation"></i> One of \`uuid\` or \`identifier\` must be included in the query request.
  </div>
  Although both parameters are optional, at least one must be included to specify the order to be queried. If both \`uuid\` and \`identifier\` are provided, the query will be based on the \`uuid\`.
</div>
`}</HTMLBlock>

<br />

<HTMLBlock>{`
<div class="accordion-changelog">
    <input type="checkbox" id="api-changelog">
    <label for="api-changelog">
        <div class="APISectionHeader-heading4MUMLbp4_nLs">Revision History <i class="fa-solid fa-angle-right"></i></div>
    </label>

    <div class="accordion-changelog-content">
        <table class="custom-table">
            <thead>
                <tr>
                    <th>Version</th>
                    <th>Date</th>
                    <th>Changes</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td class="code-col">v1.2.1</td>
                    <td class="code-col">2025-07-02</td>
                    <td>
                        <a href="https://global-docs.upbit.com/changelog/smp#/">
                            Addition of <code>Self-Match Prevention (SMP)</code> feature
                        </a>
                    </td>
                </tr>
                <tr>
                    <td class="code-col">v1.1.9</td>
                    <td class="code-col">2024-12-04</td>
                    <td>
                        <a href="https://global-docs.upbit.com/changelog/myorder_identifier#/">
                            Addition of <code>identifier</code> field
                        </a>
                    </td>
                </tr>
                <tr>
                    <td class="code-col">v1.1.1</td>
                    <td class="code-col">2024-04-22</td>
                    <td>
                        <a href="https://global-docs.upbit.com/changelog/new_ord_type_expand#/">
                            Addition of <code>ord_type: best,</code><br>
                            Addition of <code>time_in_force</code> parameter<br>
                            <span style="font-size: 90%;">(All Markets)</span>
                        </a>
                    </td>
                </tr>
                <tr>
                    <td class="code-col">v1.1.1</td>
                    <td class="code-col">2024-04-04</td>
                    <td>
                        <a href="https://global-docs.upbit.com/changelog/ioc_fok_btc#/">
                            Addition of <code>ord_type: best,</code><br>
                            Addition of <code>time_in_force</code> parameter<br>
                            <span style="font-size: 90%;">(BTC Market Upbit Indonesia and Thailand)</span>
                        </a>
                    </td>
                </tr>
                <tr>
                    <td class="code-col">v1.1.1</td>
                    <td class="code-col">2024-02-26</td>
                    <td>
                        <a href="https://global-docs.upbit.com/changelog/id_th_iocfok_226#/">
                            Addition of <code>ord_type: best,</code><br>
                            Addition of <code>time_in_force</code> parameter<br>
                            <span style="font-size: 90%;">(THB, IDR Market Upbit Indonesia and Thailand)</span>
                        </a>
                    </td>
                </tr>
                <tr>
                    <td class="code-col">v1.1.1</td>
                    <td class="code-col">2023-10-27</td>
                    <td>
                        <a href="https://global-docs.upbit.com/changelog/sg_iocfok#/">
                            Addition of <code>ord_type: best,</code><br>
                            Addition of <code>time_in_force</code> parameter<br>
                            <span style="font-size: 90%;">(Upbit Singapore only)</span>
                        </a>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>

<div class="APISectionHeader-heading4MUMLbp4_nLs">Rate Limit</div>
<div class="box-rate-limit">

Up to 30 calls per second are allowed. This is measured on an account basis and request counts are shared within the exchange 'default' group.
</div>
<br>
<div class="APISectionHeader-heading4MUMLbp4_nLs">API Key Permission</div>
<div class="box-rate-limit">

  This API requires <a href="auth">authentication</a>, and an API Key with [View Orders] permission must be used.<br>
  If you encounter an out_of_scope error, please check the permission settings in the API Key Management page.
</div>
`}</HTMLBlock>

<br />

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "EXCHANGE API",
    "version": "1.3.3"
  },
  "servers": [
    {
      "url": "https://{region}-api.upbit.com"
    }
  ],
  "components": {
    "schemas": {
      "Order": {
        "type": "object",
        "required": [
          "market",
          "uuid",
          "side",
          "ord_type",
          "state",
          "created_at",
          "remaining_volume",
          "executed_volume",
          "reserved_fee",
          "remaining_fee",
          "paid_fee",
          "locked",
          "trades_count",
          "smp_type",
          "prevented_volume",
          "prevented_locked"
        ],
        "properties": {
          "market": {
            "type": "string",
            "description": "Trading pair code.\n",
            "example": "SGD-BTC"
          },
          "uuid": {
            "type": "string",
            "description": "Unique identifier of the order.",
            "example": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae"
          },
          "side": {
            "type": "string",
            "enum": [
              "ask",
              "bid"
            ],
            "description": "Order direction (ask=sell, bid=buy).",
            "example": "ask"
          },
          "ord_type": {
            "type": "string",
            "enum": [
              "limit",
              "price",
              "market",
              "best"
            ],
            "description": "Order type.",
            "example": "limit"
          },
          "price": {
            "type": "string",
            "format": "decimal",
            "description": "Order price or total amount.\nFor limit orders, this is the unit price. For market buy orders, this is the total buy amount.\n",
            "example": 1000
          },
          "state": {
            "type": "string",
            "enum": [
              "wait",
              "watch",
              "done",
              "cancel"
            ],
            "description": "Order state.\n\n- `wait`: Pending execution\n- `watch`: Waiting for reservation order\n- `done`: Fully executed\n- `cancel`: Cancelled\n",
            "example": "wait"
          },
          "created_at": {
            "type": "string",
            "description": "Timestamp when the order was created.\n\n[Format] yyyy-MM-ddTHH:mm:ss+00:00\n",
            "example": "2025-06-25T15:42:25+09:00"
          },
          "volume": {
            "type": "string",
            "format": "decimal",
            "description": "Requested order volume.",
            "example": 10
          },
          "remaining_volume": {
            "type": "string",
            "format": "decimal",
            "description": "Remaining volume after execution.",
            "example": 8
          },
          "executed_volume": {
            "type": "string",
            "format": "decimal",
            "description": "Executed volume.",
            "example": 2
          },
          "reserved_fee": {
            "type": "string",
            "format": "decimal",
            "description": "Fee reserved for this order.",
            "example": 5
          },
          "remaining_fee": {
            "type": "string",
            "format": "decimal",
            "description": "Remaining fee.",
            "example": 5
          },
          "paid_fee": {
            "type": "string",
            "format": "decimal",
            "description": "Fee paid so far.",
            "example": 0
          },
          "locked": {
            "type": "string",
            "format": "decimal",
            "description": "Amount locked for this order.",
            "example": 0
          },
          "trades_count": {
            "type": "integer",
            "description": "Number of trades executed for this order.",
            "example": 1
          },
          "time_in_force": {
            "type": "string",
            "enum": [
              "fok",
              "ioc",
              "post_only"
            ],
            "description": "Time in force condition.",
            "example": "ioc"
          },
          "identifier": {
            "type": "string",
            "description": "Client-assigned order identifier specified at order creation.\n* The identifier field is only available for orders created after October 18, 2024.\n",
            "example": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae"
          },
          "smp_type": {
            "type": "string",
            "enum": [
              "cancel_maker",
              "cancel_taker",
              "reduce",
              "none"
            ],
            "description": "Self-Match Prevention (SMP) mode applied to the order.\nReturns `none` if SMP was not applied.",
            "example": "none"
          },
          "prevented_volume": {
            "type": "string",
            "format": "decimal",
            "description": "Volume cancelled due to Self-Match Prevention.\n",
            "example": "0"
          },
          "prevented_locked": {
            "type": "string",
            "format": "decimal",
            "description": "Asset unlocked due to Self-Match Prevention cancellation.\n  - For buy orders: cancelled amount\n  - For sell orders: cancelled volume\n",
            "example": "0"
          },
          "trades": {
            "type": "array",
            "description": "List of trades executed for this order (returned in individual order query).",
            "items": {
              "type": "object",
              "properties": {
                "market": {
                  "type": "string",
                  "description": "Trading pair code.",
                  "example": "SGD-BTC"
                },
                "uuid": {
                  "type": "string",
                  "description": "Unique identifier of the trade.",
                  "example": "795dff29-bba6-49b2-baab-63473ab7931c"
                },
                "price": {
                  "type": "string",
                  "format": "decimal",
                  "description": "Trade price.",
                  "example": "1375"
                },
                "volume": {
                  "type": "string",
                  "format": "decimal",
                  "description": "Trade volume.",
                  "example": "5.377594"
                },
                "funds": {
                  "type": "string",
                  "format": "decimal",
                  "description": "Trade funds (price × volume).",
                  "example": "7394.19175"
                },
                "trend": {
                  "type": "string",
                  "description": "Price trend of the trade.",
                  "example": "down"
                },
                "created_at": {
                  "type": "string",
                  "description": "Timestamp of the trade.",
                  "example": "2025-08-09T16:44:00.597751+09:00"
                },
                "side": {
                  "type": "string",
                  "description": "Order side of the trade.",
                  "example": "ask"
                }
              }
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "name",
              "message"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Error name."
              },
              "message": {
                "type": "string",
                "description": "Error message."
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "shell",
      "python",
      "java",
      "node"
    ]
  },
  "paths": {
    "/v1/order": {
      "get": {
        "operationId": "get-order",
        "summary": "Get Order",
        "description": "Retrieves an order information by order UUID or Identifier.",
        "tags": [
          "Exchange"
        ],
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --request GET \\\n--url 'https://sg-api.upbit.com/v1/order?uuid=3b67e543-8ad3-48d0-8451-0dad315cae73' \\\n--header 'Authorization: Bearer {JWT_TOKEN}' \\\n--header 'accept: application/json'\n"
            },
            {
              "language": "python",
              "install": "pip install requests pyjwt python-dotenv",
              "code": "import os\nimport uuid\nimport hashlib\nimport jwt\nimport requests\nfrom urllib.parse import unquote, urlencode\nfrom dotenv import load_dotenv\n\nload_dotenv()\n\nBASE_URL = \"https://sg-api.upbit.com\"\nPATH = \"/v1/order\"\n\nACCESS_KEY = os.environ[\"UPBIT_OPEN_API_ACCESS_KEY\"]\nSECRET_KEY = os.environ[\"UPBIT_OPEN_API_SECRET_KEY\"]\n\nparams = {\n  \"uuid\": \"3b67e543-8ad3-48d0-8451-0dad315cae73\",\n}\n\nquery_string = unquote(urlencode(params, doseq=True)).encode(\"utf-8\")\n\nm = hashlib.sha512()\nm.update(query_string)\nquery_hash = m.hexdigest()\n\npayload = {\n  \"access_key\": ACCESS_KEY,\n  \"nonce\": str(uuid.uuid4()),\n  \"query_hash\": query_hash,\n  \"query_hash_alg\": \"SHA512\",\n}\n\njwt_token = jwt.encode(payload, SECRET_KEY, algorithm=\"HS256\")\n\nheaders = {\n  \"Authorization\": f\"Bearer {jwt_token}\",\n  \"Accept\": \"application/json\",\n}\n\nres = requests.get(f\"{BASE_URL}{PATH}\", headers=headers, params=params)\nprint(res.json())\n"
            },
            {
              "language": "node",
              "name": "Axios",
              "install": "npm install axios jsonwebtoken uuid",
              "code": "const axios = require(\"axios\");\nconst crypto = require(\"crypto\");\nconst { sign } = require(\"jsonwebtoken\");\nconst { v4: uuidv4 } = require(\"uuid\");\nrequire(\"dotenv\").config();\n\nconst baseURL = \"https://sg-api.upbit.com\";\nconst path = \"/v1/order\";\n\nconst ACCESS_KEY = process.env.UPBIT_OPEN_API_ACCESS_KEY;\nconst SECRET_KEY = process.env.UPBIT_OPEN_API_SECRET_KEY;\n\nconst params = {\n  uuid: \"3b67e543-8ad3-48d0-8451-0dad315cae73\",\n};\n\nconst queryString = new URLSearchParams(params).toString();\n\nconst queryHash = crypto\n  .createHash(\"sha512\")\n  .update(queryString, \"utf-8\")\n  .digest(\"hex\");\n\nconst payload = {\n  access_key: ACCESS_KEY,\n  nonce: uuidv4(),\n  query_hash: queryHash,\n  query_hash_alg: \"SHA512\",\n};\n\nconst jwtToken = sign(payload, SECRET_KEY);\n\nconst options = {\n  method: \"GET\",\n  url: `${baseURL}${path}?${queryString}`,\n  headers: {\n    Authorization: `Bearer ${jwtToken}`,\n    Accept: \"application/json\",\n  },\n};\n\naxios\n  .request(options)\n  .then((response) => {\n    console.log(response.data);\n  })\n  .catch((error) => {\n    console.error(error.response ? error.response.data : error.message);\n  });\n"
            },
            {
              "language": "java",
              "code": "package main;\n\nimport com.auth0.jwt.JWT;\nimport com.auth0.jwt.algorithms.Algorithm;\nimport java.io.IOException;\nimport java.nio.charset.StandardCharsets;\nimport java.security.MessageDigest;\nimport java.security.NoSuchAlgorithmException;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Objects;\nimport java.util.UUID;\nimport java.util.stream.Collectors;\nimport okhttp3.OkHttpClient;\nimport okhttp3.Request;\nimport okhttp3.Response;\n\npublic class GetOrder {\n    private static final String BASE_URL = \"https://sg-api.upbit.com\";\n    private static final String PATH = \"/v1/order\";\n\n\n    public static void main(String[] args) throws NoSuchAlgorithmException, IOException {\n        String accessKey = System.getenv(\"UPBIT_OPEN_API_ACCESS_KEY\");\n        String secretKey = System.getenv(\"UPBIT_OPEN_API_SECRET_KEY\");\n\n        Map<String, String> params = new HashMap<>();\n        params.put(\"uuid\", \"3b67e543-8ad3-48d0-8451-0dad315cae73\");\n        String queryString = params.entrySet().stream()\n            .map(e -> e.getKey() + \"=\" + String.valueOf(e.getValue()))\n            .collect(Collectors.joining(\"&\"));\n\n        MessageDigest md = MessageDigest.getInstance(\"SHA-512\");\n        md.update(queryString.getBytes(StandardCharsets.UTF_8));\n        StringBuilder sb = new StringBuilder();\n        for (byte b : md.digest()) {\n            sb.append(String.format(\"%02x\", b));\n        }\n        String queryHash = sb.toString();\n\n        Algorithm algorithm = Algorithm.HMAC512(secretKey.getBytes(StandardCharsets.UTF_8));\n        String jwtToken = JWT.create()\n            .withClaim(\"access_key\", accessKey)\n            .withClaim(\"nonce\", UUID.randomUUID().toString())\n            .withClaim(\"query_hash\", queryHash)\n            .withClaim(\"query_hash_alg\", \"SHA512\")\n            .sign(algorithm);\n\n        String authHeader = \"Bearer \" + jwtToken;\n\n        OkHttpClient client = new OkHttpClient();\n        Request request = new Request.Builder()\n            .url(BASE_URL + PATH + \"?\" + queryString)\n            .get()\n            .addHeader(\"Content-Type\", \"application/json\")\n            .addHeader(\"Authorization\", authHeader)\n            .build();\n\n        try (Response response = client.newCall(request).execute()) {\n            System.out.println(response.code());\n            System.out.println(Objects.requireNonNull(response.body()).string());\n        }\n    }\n}\n"
            }
          ]
        },
        "parameters": [
          {
            "name": "uuid",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "UUID of the order to query.",
              "example": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae"
            },
            "allowReserved": true,
            "examples": {
              "default": {
                "value": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae"
              }
            }
          },
          {
            "name": "identifier",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Client-assigned identifier of the order to query.\n\nUsed when querying by the identifier assigned at order creation.\n",
              "example": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae"
            },
            "allowReserved": true,
            "examples": {
              "by_identifier": {
                "value": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Object of order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                },
                "examples": {
                  "Successful Example": {
                    "value": {
                      "market": "SGD-BTC",
                      "uuid": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae",
                      "side": "ask",
                      "ord_type": "limit",
                      "price": "153559.00",
                      "state": "done",
                      "created_at": "2025-07-04T15:00:00",
                      "volume": "1.0",
                      "remaining_volume": "0",
                      "executed_volume": "1.0",
                      "reserved_fee": "0",
                      "remaining_fee": "0",
                      "paid_fee": "383.8975",
                      "locked": "0",
                      "smp_type": "none",
                      "prevented_volume": "0",
                      "prevented_locked": "0",
                      "trades_count": 1,
                      "trades": [
                        {
                          "market": "SGD-BTC",
                          "uuid": "9e8f8eba-7050-4837-8969-cfc272cbe083",
                          "price": "153559.00",
                          "volume": "1.0",
                          "funds": "153559.00",
                          "trend": "down",
                          "created_at": "2025-07-04T15:00:00",
                          "side": "ask"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "error object",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid parameter error": {
                    "value": {
                      "error": {
                        "name": "invalid_parameter",
                        "message": "Invalid parameter"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "error object",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not found error": {
                    "value": {
                      "error": {
                        "name": 404,
                        "message": "Code not found"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```