Get open orders
GET/institutional/subaccounts/orders/open
Returns all current open orders for the specified subaccount. If not specified, returns open orders for the main account.
This is a private endpoint. To send requests, you need to authenticate.
To use this private endpoint, you must use the API key of your main account with the Include all subaccounts.
Rate limit weight points: 25 (without market) or 1 (with market).
Request
Query Parameters
The unique identifier for the subaccount. If not specified, returns open orders for the main account.
The market in which to return the open orders. If not specified, all open orders are returned.
The base asset for which to return the open orders. If neither market nor base are specified, all open orders are returned.
Responses
- 200
- 4XX
The request was successful.
Response Headers
The number of remaining weight points before it resets at bitvavo-ratelimit-resetat.
The time when bitvavo-ratelimit-remaining resets to bitvavo-ratelimit-limit.
The number of available weight points in one minute.
- application/json
- Schema
- Example (body)
Schema
- Array [
- Array [
- ]
- ]
The unique identifier for the subaccount.
Bitvavo identifier of the order. An orderId is unique per market. Different markets can use the same orderId values.
Your identifier of the order. Only returned if specified in the request.
The market where you created an order.
The Unix timestamp when the order was created.
The Unix timestamp when the order was last updated.
The status of an order.
Possible values: [new, awaitingTrigger, canceled, expired, filled, partiallyFilled]
Indicates whether the order is to buy or sell the asset.
Possible values: [buy, sell]
The type of order you created.
Possible values: [limit, market]
The quantity of the base currency to buy or sell. If you set amountQuote in your order, amount is not returned.
The quantity of the base currency remaining after the sum of fills is subtracted from the amount. If you set amountQuote in your order, amountRemaining is not returned.
The price you set for a limit, stopLossLimit, takeProfit, or a takeProfitLimit order. For other types of orders, the price is not returned.
The quantity of the quote currency to buy or sell for the market, stopLoss, or takeProfit types of order. If you set amount in your order, amountQuote is not returned.
The quantity of the quote currency remaining after the sum of all fills is subtracted from amountQuote. If you set amount in the order, amountQuoteRemaining is not returned.
The amount of onHoldCurrency locked while an order is not yet settled after an order is filled. All funds are released when order is filled.
The currency that is onHold while the order is processed. This depends on the side you set for the orderId.
The price calculated using triggerAmount and triggerType for the stopLoss, stopLossLimit, takeProfit, or takeProfitLimit types of orders.
The trigger price in quote currency for which you want to buy or sell 1 unit of the base currency. This value and triggerType are used to calculate triggerPrice.
The type of trigger you set to fill the order when the condition is met.
Possible values: [price]
The price you set to trigger the order to be filled for the stopLoss, stopLossLimit, takeProfit, or takeProfitLimit types of orders.
Possible values: [lastTrade, bestBid, bestAsk, midPrice]
The total amount bought or sold in base currency.
The total amount bought or sold in quote currency.
The amount you pay Bitvavo to process the order. This value is negative for rebates.
The currency of the feePaid.
fills object[]
A JSON object containing all fills for orderId.
The identifier of this fill.
A Unix timestamp when Bitvavo processed the fill.
The amount of base currency exchanged in the fill.
The price of the fill in quote currency.
Returns true when you are the taker for the fill.
The amount you pay Bitvavo in feeCurrency to process the fill. This value is negative for rebates. If settled is false, this parameter is not included.
The currency that the fee is paid in. If settled is false, this object is not returned.
Indicates whether the fill has been settled.
The value you set to prevent self-trading for conflicting orders of any type.
Possible values: [decrementAndCancel, cancelOldest, cancelNewest, cancelBoth]
Returns true when the orderId is visible in the order book for a market.
The value you set for how long an order stays active.
Possible values: [GTC, IOC, FOK]
The value you set for how your fees are calculated for limit, stopLossLimit, or takeProfitLimit types of orders.
Must be false because market protection can no longer be disabled.
Your identifier for the trader or the bot within your account that made the request.
The Unix timestamp in nanoseconds when the order was created.
The Unix timestamp in nanoseconds when the order was last updated.
Your identifier for a group of orders.
[
{
"subaccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"orderId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"clientOrderId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"market": "string",
"created": 0,
"updated": 0,
"status": "new",
"side": "buy",
"orderType": "limit",
"amount": "string",
"amountRemaining": "string",
"price": "string",
"amountQuote": "string",
"amountQuoteRemaining": "string",
"onHold": "string",
"onHoldCurrency": "string",
"triggerPrice": "string",
"triggerAmount": "string",
"triggerType": "price",
"triggerReference": "lastTrade",
"filledAmount": "string",
"filledAmountQuote": "string",
"feePaid": "string",
"feeCurrency": "string",
"fills": [
{
"id": "string",
"timestamp": 0,
"amount": "string",
"price": "string",
"taker": true,
"fee": "string",
"feeCurrency": "string",
"settled": true
}
],
"selfTradePrevention": "decrementAndCancel",
"visible": true,
"timeInForce": "GTC",
"postOnly": true,
"disableMarketProtection": true,
"operatorId": 0,
"createdNs": 0,
"updatedNs": 0,
"codGroupId": 0
}
]
For error codes, see Handle errors.