---
title: "Execute Instant Order"
method: POST
path: "/v1/instant/execute"
tags: ["Instant"]
---

# Execute Instant Order

`POST /v1/instant/execute`

## Request

- Base URL: `https://api.gemini.com`
- URL: `https://api.gemini.com/v1/instant/execute`
- Auth: API key in header `X-GEMINI-APIKEY` and API key in header `X-GEMINI-SIGNATURE` and API key in header `X-GEMINI-PAYLOAD`

### Roles
The API key you use to access this endpoint must have the Trader role assigned. See [Roles](/roles#roles) for more information.

The OAuth scope must have `orders:create` assigned to access this endpoint. See [OAuth Scopes](/authentication/oauth#oauth-scopes) for more information.

## Headers

- `X-GEMINI-APIKEY` string, required
- `X-GEMINI-SIGNATURE` string, required
- `X-GEMINI-PAYLOAD` string, required
- `Content-Type` string
- `Content-Length` string
- `Cache-Control` string

## Request body

- object
  - `request` string, required: The literal string "/v1/instant/execute"
  - `nonce` union, required: The nonce, as described in [Private API Invocation](/authentication/api-key#private-api-invocation)
    - union: timestamp
      - string: Gemini strongly recommends using milliseconds instead of seconds for timestamps. | Timestamp format | Example | Supported request type | |-----------------------|-----------------------|------------------------| | string (seconds) | `1495127793` | `POST` only | | string (milliseconds) | `1495127793000` | `POST` only |
      - integer: Gemini strongly recommends using milliseconds instead of seconds for timestamps. | Timestamp format | Example | Supported request type | |-----------------------------|---------------------------|------------------------| | whole number (seconds) | `1495127793` | `GET`, `POST` | | whole number (milliseconds) | `1495127793000` | `GET`, `POST` |
    - integer
  - `symbol` string, required: The symbol for the order.
  - `side` 'buy' | 'sell', required: "buy" or "sell"
  - `quantity` string, required: The quantity of the asset bought or sold. quantity must match quantity returned in the quote
  - `price` string, required: The price from the quote. price must match price returned in the quote
  - `fee` string, required: The fee for the order. fee must match fee returned in the quote
  - `quoteId` integer, required: Unique ID for the quote. quoteId must match quoteId returned in the quote
  - `account` string: Required for Master API keys as described in [Private API Invocation](/authentication/api-key#private-api-invocation). The name of the account within the subaccount group. Specifies the account on which you intend to place the order. Only available for exchange accounts.

## Response `200`

JSON response

- object
  - `orderId` integer: The ID for the executed order
  - `pair` string: The symbol for the order.
  - `price` string: The price at which the order was executed
  - `priceCurrency` string: The currency in which the order is priced. Matches `CCY2` in the symbol
  - `side` string: Either "buy" or "sell"
  - `quantity` string: The quantity of the asset bought or sold
  - `quantityCurrency` string: The currency label for the `quantity` field.
  - `totalSpend` string: Total quantity to spend for the order. Will be the sum inclusive of all fees and amount to be traded.
  - `totalSpendCurrency` string: Currency of the `totalSpend` to be spent on the order
  - `fee` string: The fee quantity charged for the order
  - `feeCurrency` string: The currency label for the fee.
  - `depositFee` string: The deposit fee quantity. Will be applied if a debit card is used for the order. Will return 0 if there is no `depositFee`
  - `depositFeeCurrency` string: Currency in which `depositFee` is taken

## Other responses

- `400`: Bad request - malformed request or invalid parameters
- `401`: Unauthorized - missing or invalid authentication
- `403`: ApiKey fails IP Filtering Check
- `404`: Resource not found
- `429`: Too many requests - you have exceeded the rate limit
- `500`: Internal server error

---

[API](https://skmtc.dev/gemini/apis/rest-api.md) - [All operations](https://skmtc.dev/gemini/apis/rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gemini/apis/rest-api/revisions/24979792d748?raw)
