---
updatedAt: 2026-06-17T19:52:01.000Z
agentTools:
  projectIndex: https://docs.zerohash.com/llms.txt
---

# Get an Execution

Retrieves a single Execution by its `id`. Synchronous. Includes the full `instructions[]` array.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "zerohash API",
    "description": "\n### Authentication\n\nzerohash Uses HMAC SHA-256 verification to ensure the authenticity of API requests, follow instructions by link [https://docs.zerohash.com/reference/api-authentication](https://docs.zerohash.com/reference/api-authentication)\n\n<a href=\"/zh-swagger.json\">Download zerohash OpenAPI Schema as JSON</a>\n",
    "version": "1.7.0"
  },
  "servers": [
    {
      "url": "https://api.cert.zerohash.com",
      "description": "Certification API server"
    }
  ],
  "x-readme": {
    "proxy-enabled": false
  },
  "paths": {
    "/strategies/executions/{execution_id}": {
      "get": {
        "tags": [
          "Trade Strategy"
        ],
        "summary": "Get an Execution",
        "description": "Retrieves a single Execution by its `id`. Synchronous. Includes the full `instructions[]` array.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Signature"
          },
          {
            "$ref": "#/components/parameters/Timestamp"
          },
          {
            "name": "execution_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Unique identifier of the Execution."
          }
        ],
        "responses": {
          "200": {
            "description": "The requested Execution.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TradeStrategyExecutionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code400"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code403"
                }
              }
            }
          },
          "404": {
            "description": "Execution doesn't exist or belongs to a different platform."
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code500"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code503"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "apiKey": [],
      "apiPassphrase": []
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "description": "Your API public key. See the [Authentication guide](https://docs.zerohash.com/reference/api-authentication) for how to obtain keys.",
        "in": "header",
        "name": "X-SCX-API-KEY"
      },
      "apiPassphrase": {
        "type": "apiKey",
        "description": "The passphrase associated with your API key, set when the key was created.",
        "in": "header",
        "name": "X-SCX-PASSPHRASE"
      }
    },
    "parameters": {
      "Signature": {
        "name": "X-SCX-SIGNED",
        "in": "header",
        "description": "HMAC-SHA256 signature of the request, base64-encoded. See the [Authentication guide](https://docs.zerohash.com/reference/api-authentication) for the exact signing formula.",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "Timestamp": {
        "name": "X-SCX-TIMESTAMP",
        "in": "header",
        "description": "Current Unix timestamp in seconds. Must be within 60 seconds of server time or the request is rejected.",
        "required": true,
        "schema": {
          "type": "string",
          "example": "1678901234"
        }
      }
    },
    "schemas": {
      "Code400": {
        "type": "object",
        "description": "Request was rejected by validation or a downstream service. `errors` is an array of human-readable messages; each entry describes a single validation failure or business-rule violation.",
        "required": [
          "errors"
        ],
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "body/amount must be >= 0",
              "body/asset is required"
            ]
          }
        }
      },
      "Code403": {
        "type": "object",
        "description": "Authentication or authorization failed. `error` is always `true`; `message` explains which check failed (missing API key, bad signature, insufficient permission, etc.).",
        "required": [
          "error",
          "message"
        ],
        "properties": {
          "error": {
            "type": "boolean",
            "example": true
          },
          "message": {
            "type": "string",
            "example": "This api key does not have write permission to this endpoint"
          }
        }
      },
      "Code500": {
        "type": "object",
        "description": "An unexpected error occurred on the server. The request can be retried after a short delay, but the same inputs may reproduce the error.",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "example": "Internal Server Error"
          }
        }
      },
      "Code503": {
        "type": "object",
        "description": "A downstream dependency was unavailable, timed out, or returned a retryable error. Safe to retry; the response carries a `zh-allow-retry: true` header.",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "example": "Service Unavailable"
          }
        }
      },
      "TradeStrategyExecutionResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "example": "b1c2d3e4-f5a6-4789-bcde-f01234567890",
                "description": "Unique identifier for the Execution."
              },
              "strategy_id": {
                "type": "string",
                "format": "uuid",
                "example": "b1c2d3e4-f5a6-4789-bcde-f01234567890"
              },
              "operation_id": {
                "type": "string",
                "format": "uuid",
                "example": "b1c2d3e4-f5a6-4789-bcde-f01234567890"
              },
              "trader_id": {
                "type": "string",
                "format": "uuid",
                "example": "b1c2d3e4-f5a6-4789-bcde-f01234567890"
              },
              "participant_code": {
                "type": "string",
                "example": "CUST01"
              },
              "account_label": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "awaiting_execution",
                  "settled",
                  "skipped",
                  "rejected"
                ],
                "example": "settled"
              },
              "status_reason": {
                "type": "string",
                "description": "Set on non-clean terminal states. Possible values: `participant_not_approved`, `participant_not_found`, `trader_already_enrolled`, `insufficient_funds`, `below_instrument_minimum`, `trader_not_found`, `trader_not_enrolled`. Empty on `settled` / `awaiting_execution`.",
                "example": ""
              },
              "instructions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "underlying_currency": {
                      "type": "string",
                      "example": "BTC"
                    },
                    "quoted_currency": {
                      "type": "string",
                      "example": "USD"
                    },
                    "side": {
                      "type": "string",
                      "enum": [
                        "buy",
                        "sell"
                      ],
                      "example": "buy"
                    },
                    "amount": {
                      "type": "string",
                      "description": "Driver amount. With `notional`, the fiat to spend (buys); with `quantity`, the crypto units to sell (sells).",
                      "example": "100.50"
                    },
                    "amount_type": {
                      "type": "string",
                      "enum": [
                        "notional",
                        "quantity"
                      ],
                      "example": "notional"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "waiting_proceeds",
                        "executed",
                        "skipped",
                        "failed"
                      ],
                      "example": "executed"
                    },
                    "status_reason": {
                      "type": "string",
                      "example": ""
                    },
                    "price": {
                      "type": "string",
                      "description": "Execution price. Empty until status reaches `executed`.",
                      "example": "100.50"
                    },
                    "quantity": {
                      "type": "string",
                      "description": "Executed quantity. Empty until status reaches `executed`.",
                      "example": "100.50"
                    },
                    "total_notional": {
                      "type": "string",
                      "description": "Total notional. Empty until status reaches `executed`.",
                      "example": "100.50"
                    },
                    "trade_ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "description": "Trades booked for this instruction."
                    },
                    "executed_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the trade leg executed.",
                      "example": "2026-04-17T10:00:00Z"
                    }
                  }
                },
                "description": "Ordered list of trade legs that make up this Execution."
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp in UTC (RFC 3339).",
                "example": "2026-04-17T10:00:00Z"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "description": "ISO 8601 timestamp in UTC (RFC 3339).",
                "example": "2026-04-17T10:00:00Z"
              }
            }
          }
        }
      }
    }
  }
}
```