Skip to content
Bare BitcoinDevelopers

Search documentation

↑ ↓ Select · Enter Open · Escape Close

barebitcoin.no ↗
Menu
← Models

NewOrderRequest

object

View Markdown

Properties

typestring · enum

Values: ORDER_TYPE_MARKET, ORDER_TYPE_LIMIT

Example: "ORDER_TYPE_MARKET"

directionstring · enum

Values: DIRECTION_BUY, DIRECTION_SELL

Example: "DIRECTION_BUY"

amountnumber · double

Amount to spend. Must be positive. When buying, this is the amount in NOK. When selling, this is the amount in BTC.

Example: 5000

accountIdstring

The bitcoin account to use for this order. Empty for default account.

Example: "acc_01HQZX3V9KJ4M2P8R6T0W5Y7BC"

descriptionstring

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

Example: "Månedlig sparing"

pricenumber · double

The price to buy or sell at. Only used for limit orders.

Example: 1040000

Used by

Create an order · request