List order versions
Get a list of all versions of an order in the order history
Path Parameters
Order ID to list versions for.
Query Parameters
Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.
If paging forwards, the cursor string for the last row of the previous page.
Number of records to be returned that sort less than row identified by cursor supplied in 'before'.
If paging forwards, the cursor string for the first row of the previous page.
Newest records first, older records last, default is true.
- 200
- 500
- default
A successful response.
Schema
orders object
Page of order versions and corresponding page information.
edges object[]
Page of orders and their corresponding cursors.
node object
Data associated with an order submitted to a Vega node.
peggedOrder object
Pegged order details, used only if the order represents a pegged order.
Possible values: [PEGGED_REFERENCE_UNSPECIFIED
, PEGGED_REFERENCE_MID
, PEGGED_REFERENCE_BEST_BID
, PEGGED_REFERENCE_BEST_ASK
]
Possible values: [ORDER_ERROR_UNSPECIFIED
, ORDER_ERROR_INVALID_MARKET_ID
, ORDER_ERROR_INVALID_ORDER_ID
, ORDER_ERROR_OUT_OF_SEQUENCE
, ORDER_ERROR_INVALID_REMAINING_SIZE
, ORDER_ERROR_TIME_FAILURE
, ORDER_ERROR_REMOVAL_FAILURE
, ORDER_ERROR_INVALID_EXPIRATION_DATETIME
, ORDER_ERROR_INVALID_ORDER_REFERENCE
, ORDER_ERROR_EDIT_NOT_ALLOWED
, ORDER_ERROR_AMEND_FAILURE
, ORDER_ERROR_NOT_FOUND
, ORDER_ERROR_INVALID_PARTY_ID
, ORDER_ERROR_MARKET_CLOSED
, ORDER_ERROR_MARGIN_CHECK_FAILED
, ORDER_ERROR_MISSING_GENERAL_ACCOUNT
, ORDER_ERROR_INTERNAL_ERROR
, ORDER_ERROR_INVALID_SIZE
, ORDER_ERROR_INVALID_PERSISTENCE
, ORDER_ERROR_INVALID_TYPE
, ORDER_ERROR_SELF_TRADING
, ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES
, ORDER_ERROR_INCORRECT_MARKET_TYPE
, ORDER_ERROR_INVALID_TIME_IN_FORCE
, ORDER_ERROR_CANNOT_SEND_GFN_ORDER_DURING_AN_AUCTION
, ORDER_ERROR_CANNOT_SEND_GFA_ORDER_DURING_CONTINUOUS_TRADING
, ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT
, ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT
, ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT
, ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC
, ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN
, ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN
, ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION
, ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION
, ORDER_ERROR_MUST_BE_LIMIT_ORDER
, ORDER_ERROR_MUST_BE_GTT_OR_GTC
, ORDER_ERROR_WITHOUT_REFERENCE_PRICE
, ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE
, ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO
, ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE
, ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO
, ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE
, ORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER
, ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER
, ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER
, ORDER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRICE_BOUNDS
, ORDER_ERROR_TOO_MANY_PEGGED_ORDERS
, ORDER_ERROR_POST_ONLY_ORDER_WOULD_TRADE
, ORDER_ERROR_REDUCE_ONLY_ORDER_WOULD_NOT_REDUCE_POSITION
]
Possible values: [SIDE_UNSPECIFIED
, SIDE_BUY
, SIDE_SELL
]
Possible values: [STATUS_UNSPECIFIED
, STATUS_ACTIVE
, STATUS_EXPIRED
, STATUS_CANCELLED
, STATUS_STOPPED
, STATUS_FILLED
, STATUS_REJECTED
, STATUS_PARTIALLY_FILLED
, STATUS_PARKED
]
Possible values: [TIME_IN_FORCE_UNSPECIFIED
, TIME_IN_FORCE_GTC
, TIME_IN_FORCE_GTT
, TIME_IN_FORCE_IOC
, TIME_IN_FORCE_FOK
, TIME_IN_FORCE_GFA
, TIME_IN_FORCE_GFN
]
Possible values: [TYPE_UNSPECIFIED
, TYPE_LIMIT
, TYPE_MARKET
, TYPE_NETWORK
]
pageInfo object
Page information that is used for fetching further pages.
{
"orders": {
"edges": [
{
"cursor": "string",
"node": {
"batchId": "string",
"createdAt": "string",
"expiresAt": "string",
"id": "string",
"liquidityProvisionId": "string",
"marketId": "string",
"partyId": "string",
"peggedOrder": {
"offset": "string",
"reference": "PEGGED_REFERENCE_UNSPECIFIED"
},
"postOnly": true,
"price": "string",
"reason": "ORDER_ERROR_UNSPECIFIED",
"reduceOnly": true,
"reference": "string",
"remaining": "string",
"side": "SIDE_UNSPECIFIED",
"size": "string",
"status": "STATUS_UNSPECIFIED",
"timeInForce": "TIME_IN_FORCE_UNSPECIFIED",
"type": "TYPE_UNSPECIFIED",
"updatedAt": "string",
"version": "string"
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
}
}
}
An internal server error
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}