Skip to main content
Version: testnet (v0.73)

StopOrder

A stop order in Vega

type StopOrder {
id: ID!
ocoLinkId: ID
expiresAt: Timestamp
expiryStrategy: StopOrderExpiryStrategy
triggerDirection: StopOrderTriggerDirection!
status: StopOrderStatus!
createdAt: Timestamp!
updatedAt: Timestamp
partyId: ID!
marketId: ID!
trigger: StopOrderTrigger!
submission: OrderSubmission!
order: Order
rejectionReason: StopOrderRejectionReason
}

Fields

StopOrder.id ● ID! non-null scalar

Hash of the stop order data

StopOrder.ocoLinkId ● ID scalar

If OCO (one-cancels-other) order, the ID of the associated order.

StopOrder.expiresAt ● Timestamp scalar

RFC3339Nano time at which the order will expire if an expiry time is set.

StopOrder.expiryStrategy ● StopOrderExpiryStrategy enum

If an expiry is set, what should the stop order do when it expires.

StopOrder.triggerDirection ● StopOrderTriggerDirection! non-null enum

Direction the price is moving to trigger the stop order.

StopOrder.status ● StopOrderStatus! non-null enum

Status of the stop order

StopOrder.createdAt ● Timestamp! non-null scalar

RFC3339Nano time the stop order was created.

StopOrder.updatedAt ● Timestamp scalar

RFC3339Nano time the stop order was last updated.

StopOrder.partyId ● ID! non-null scalar

Party that submitted the stop order.

StopOrder.marketId ● ID! non-null scalar

Market the stop order is for.

StopOrder.trigger ● StopOrderTrigger! non-null union

Price movement that will trigger the stop order

StopOrder.submission ● OrderSubmission! non-null object

Order to submit when the stop order is triggered.

StopOrder.order ● Order object

The order that was created when triggered.

StopOrder.rejectionReason ● StopOrderRejectionReason enum

Optional rejection reason for an order

Returned by

stopOrder query

Member of

StopOrderEdge object