Skip to content
Developersbarebitcoin.no ↗← Models
Menu
NewOrderRequest
object
Properties
typestring · enumValues: ORDER_TYPE_MARKET, ORDER_TYPE_LIMIT
Example: "ORDER_TYPE_MARKET"
directionstring · enumValues: DIRECTION_BUY, DIRECTION_SELL
Example: "DIRECTION_BUY"
amountnumber · doubleAmount to spend. Must be positive. When buying, this is the amount in NOK. When selling, this is the amount in BTC.
Example: 5000
accountIdstringThe bitcoin account to use for this order. Empty for default account.
Example: "acc_01HQZX3V9KJ4M2P8R6T0W5Y7BC"
descriptionstringFree-form text description of the order. Can be used to correlate with your own systems.
Example: "Månedlig sparing"
pricenumber · doubleThe price to buy or sell at. Only used for limit orders.
Example: 1040000