API for interacting with Bare Bitcoin. Most endpoints require authentication. Create API keys here. Read about API authentication here.
curl -i -X GET \
https://api.bb.no/v1/orders \
-H 'x-bb-api-hmac: YOUR_API_KEY_HERE' \
-H 'x-bb-api-key: YOUR_API_KEY_HERE' \
-H 'x-bb-api-nonce: YOUR_API_KEY_HERE'
{ "orders": [ { … } ] }
Amount to spend. Must be positive. When buying, this is the amount in NOK. When selling, this is the amount in BTC.
Free-form text description of the order. Can be used to correlate with your own systems.
curl -i -X POST \
https://api.bb.no/v1/orders \
-H 'Content-Type: application/json' \
-H 'x-bb-api-hmac: YOUR_API_KEY_HERE' \
-H 'x-bb-api-key: YOUR_API_KEY_HERE' \
-H 'x-bb-api-nonce: YOUR_API_KEY_HERE' \
-d '{
"type": "ORDER_TYPE_UNSPECIFIED",
"direction": "DIRECTION_UNSPECIFIED",
"amount": 0.1,
"accountId": "string",
"description": "string",
"price": 0.1
}'
{ "orderId": "string", "tradeId": "string" }
curl -i -X DELETE \
'https://api.bb.no/v1/orders/{orderId}' \
-H 'x-bb-api-hmac: YOUR_API_KEY_HERE' \
-H 'x-bb-api-key: YOUR_API_KEY_HERE' \
-H 'x-bb-api-nonce: YOUR_API_KEY_HERE'