List stop orders
GEThttps://api.n00.testnet.vega.rocks/api/v2/stoporders
Get a list of stop orders that match the given filters
Request
Query Parameters
- STATUS_UNSPECIFIED: Never valid
- STATUS_PENDING: Pending to be executed once the trigger is breached
- STATUS_CANCELLED: Cancelled by the user
- STATUS_STOPPED: Stopped by the network, e.g: OCO on the other side has been triggered
- STATUS_TRIGGERED: Stop order has been triggered and generated an order
- STATUS_EXPIRED: Stop order has expired
- STATUS_REJECTED: Stop order was rejected at submission
- EXPIRY_STRATEGY_UNSPECIFIED: Never valid
- EXPIRY_STRATEGY_CANCELS: Stop order should be cancelled if the expiry time is reached.
- EXPIRY_STRATEGY_SUBMIT: Order should be submitted if the expiry time is reached.
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.
Whether to order the results with the newest records first. If not set, the default value is true.
Possible values: [STATUS_UNSPECIFIED
, STATUS_PENDING
, STATUS_CANCELLED
, STATUS_STOPPED
, STATUS_TRIGGERED
, STATUS_EXPIRED
, STATUS_REJECTED
]
Restrict orders to those with the given statuses.
Possible values: [EXPIRY_STRATEGY_UNSPECIFIED
, EXPIRY_STRATEGY_CANCELS
, EXPIRY_STRATEGY_SUBMIT
]
Restrict orders to those with the given expiry strategies.
Timestamp in Unix nanoseconds indicating the start of the date range.
Timestamp in Unix nanoseconds indicating the end of the date range.
Restrict orders to those placed by the given party IDs.
Restrict orders to those placed on the given market IDs.
Live stop orders only.
Responses
- 200
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
orders object
{
"orders": {
"edges": [
{
"cursor": "string",
"node": {
"stopOrder": {
"createdAt": "string",
"expiresAt": "string",
"expiryStrategy": "EXPIRY_STRATEGY_UNSPECIFIED",
"id": "string",
"marketId": "string",
"ocoLinkId": "string",
"orderId": "string",
"partyId": "string",
"price": "string",
"rejectionReason": "REJECTION_REASON_UNSPECIFIED",
"sizeOverrideSetting": "SIZE_OVERRIDE_SETTING_UNSPECIFIED",
"sizeOverrideValue": {
"percentage": "string"
},
"status": "STATUS_UNSPECIFIED",
"trailingPercentOffset": "string",
"triggerDirection": "TRIGGER_DIRECTION_UNSPECIFIED",
"updatedAt": "string"
},
"submission": {
"expiresAt": "string",
"icebergOpts": {
"minimumVisibleSize": "string",
"peakSize": "string"
},
"marketId": "string",
"peggedOrder": {
"offset": "string",
"reference": "PEGGED_REFERENCE_UNSPECIFIED"
},
"postOnly": true,
"price": "string",
"reduceOnly": true,
"reference": "string",
"side": "SIDE_UNSPECIFIED",
"size": "string",
"timeInForce": "TIME_IN_FORCE_UNSPECIFIED",
"type": "TYPE_UNSPECIFIED"
}
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
}
}
}
An internal server error
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
- curl
- python
- go
- nodejs
- CURL
curl -L -X GET 'https://api.n00.testnet.vega.rocks/api/v2/stoporders' \
-H 'Accept: application/json'