# Place a new order

Places a new order. If the endpoint returns with a 200 status, the order
 is successfully placed. If you're creating a market order, a trade is
 also created, and its ID is included in the response.

Endpoint: POST /v1/orders
Version: 0.0.1
Security: apiKey, apiHmac, apiNonce

## Request fields (application/json):

  - `type` (string)
    Enum: "ORDER_TYPE_MARKET", "ORDER_TYPE_LIMIT"

  - `direction` (string)
    Enum: "DIRECTION_BUY", "DIRECTION_SELL"

  - `amount` (number)
    Amount to spend. Must be positive. When buying, this is the amount in NOK.
 When selling, this is the amount in BTC.

  - `accountId` (string)
    The bitcoin account to use for this order. Empty for default account.

  - `description` (string)
    Free-form text description of the order. Can be used to correlate with
 your own systems.

  - `price` (number)
    The price to buy or sell at. Only used for limit orders.

## Response 200 fields (application/json):

  - `orderId` (string)
    ID of the created order.

  - `tradeId` (string)
    If this was a market order, the order resulted in a trade. Empty if not
 market order.


