---
title: "Wrap Order"
method: POST
path: "/v1/wrap/{symbol}"
tags: ["Orders"]
---

# Wrap Order

`POST /v1/wrap/{symbol}`

## Request

- Base URL: `https://api.gemini.com`
- URL: `https://api.gemini.com/v1/wrap/{symbol}`
- 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.

## Path parameters

- `symbol` string, required

## 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/wrap/symbol"
  - `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
  - `amount` string, required: The amount to wrap
  - `side` 'buy' | 'sell': "buy" or "sell"
  - `client_order_id` string: A client-specified order id
  - `account` string: Required for Master API keys. The name of the account within the subaccount group.

## Response `200`

Successful operation

- object
  - `orderId` string: The order ID
  - `pair` string: Trading pair symbol
  - `price` string: The price of the order
  - `priceCurrency` string: The currency in which the order is priced
  - `side` string: Either "buy" or "sell"
  - `quantity` string: The amount that was executed
  - `quantityCurrency` string: The currency label for the quantity field
  - `totalSpend` string: Total quantity spent for the order
  - `totalSpendCurrency` string: Currency of the totalSpend
  - `fee` string: The amount charged
  - `feeCurrency` string: Currency that the fee was paid in
  - `depositFee` string: The deposit fee quantity
  - `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)
