Skip to main content

CancelSecondaryMarketOrders

Stable

Cancel paid buy secondary market orders still waiting in (or for) the book. Pass a non-empty orderIds list to cancel an explicit selection synchronously (an order the caller cannot reach is refused). Only an admin may omit orderIds and pass filters/search to target the whole matching set (synchronous below the async threshold, otherwise an asynchronous operation). Orders that cannot be cancelled are left untouched and counted in countSkipped. An admin acts on every order, an investor on the orders of their own accounts only and always through orderIds.

Signature​

mutation {
CancelSecondaryMarketOrders(secondaryMarketId: ..., withEmail: ...)
}

Retourne : SecondaryMarketOrdersCancellationResult!

Arguments​

NomTypeRequisDéfautDescription
secondaryMarketIdID!✓——
directionSecondaryMarketOrderDirection——
orderIds[ID!]——
filtersSecondaryMarketOrderFiltersInput——
searchString——
propertyFilters[PropertyFilterInput]—Filters for property columns, applied with filters/search when orderIds is omitted. Merged with 'filters' (propertyFilters takes precedence on conflict).
withEmailBoolean!✓—Notify the investors of the cancelled orders. Ignored (never sent) when the caller is not an admin.

Exemple​

mutation {
CancelSecondaryMarketOrders(
secondaryMarketId: $secondaryMarketId
withEmail: $withEmail
) {
orders {}
countCancelled
countSkipped
asynchronousOperation {}
}
}