Secondary market orders

Place, preview, and cancel secondary market orders.

Secondary market orders

Limit order placed on a secondary market. Represents an investor's intent to buy or sell a specific volume of tokens at a given price.

Fields

Fields on the SecondaryMarketOrder object.

FieldTypeDescription
idID!
createdAtTime!
currentVolumeUint64!Remaining number of tokens that have not yet been matched.
initialVolumeUint64!Original number of tokens requested when the order was placed.
directionSecondaryMarketOrderDirection!Whether this is a buy or sell order.
typeSecondaryMarketOrderType!Execution type of the order.
priceUint64!Limit price for this order. Price in euro cents per token.
statusSecondaryMarketOrderStatus!Current lifecycle status of the order.
expiresAtTimeOptional expiration date after which the order can no longer be matched.
feesPercentageFloat!Platform fee percentage applied to this order. Only visible to the order owner.
secondaryMarketSecondaryMarket!Secondary market this order was placed on.
userUserUser who placed this order. Null if the viewer lacks permission.

Queries

Root queries that return or operate on this object.

secondaryMarketOrder

Retrieve a single secondary market order by its identifier.

type Query {
  secondaryMarketOrder(id: ID!): SecondaryMarketOrder
}

Arguments

ArgumentTypeDescription
idID!

Returns

SecondaryMarketOrder

secondaryMarketOrderTransaction

Retrieve a single secondary market order transaction by its identifier.

type Query {
  secondaryMarketOrderTransaction(id: ID!): SecondaryMarketOrderTransaction
}

Arguments

ArgumentTypeDescription
idID!

Returns

SecondaryMarketOrderTransaction

previewSecondaryMarketOrder

Compute a fee and total-cost preview for a secondary market order without placing it.

type Query {
  previewSecondaryMarketOrder(input: CreateSecondaryMarketOrderInput!): PreviewSecondaryMarketOrderPayload!
}

Arguments

ArgumentTypeDescription
inputCreateSecondaryMarketOrderInput!

Returns

PreviewSecondaryMarketOrderPayload

Mutations

Root mutations that create, update, or otherwise change this object.

createSecondaryMarketOrder

Place a buy or sell order on a secondary market. Audit-logged.

type Mutation {
  createSecondaryMarketOrder(input: CreateSecondaryMarketOrderInput!): CreateSecondaryMarketOrderPayload!
}

Arguments

ArgumentTypeDescription
inputCreateSecondaryMarketOrderInput!

Returns

CreateSecondaryMarketOrderPayload

cancelSecondaryMarketOrder

Cancel an open secondary market order. Audit-logged.

type Mutation {
  cancelSecondaryMarketOrder(input: CancelSecondaryMarketOrderInput!): CancelSecondaryMarketOrderPayload!
}

Arguments

ArgumentTypeDescription
inputCancelSecondaryMarketOrderInput!

Returns

CancelSecondaryMarketOrderPayload

Related types

Supporting objects, inputs, and enums used by this page.

Objects

CancelSecondaryMarketOrderPayload

Type: object

Response payload for the cancelSecondaryMarketOrder mutation.

Fields
FieldTypeDescription
secondaryMarketOrderSecondaryMarketOrder!The cancelled secondary market order.

CreateSecondaryMarketOrderPayload

Type: object

Response payload for the createSecondaryMarketOrder mutation.

Fields
FieldTypeDescription
secondaryMarketOrderSecondaryMarketOrder!The newly created secondary market order.

PreviewSecondaryMarketOrderPayload

Type: object

Response payload for the previewSecondaryMarketOrder query. Contains fee and cost estimates.

Fields
FieldTypeDescription
feesPercentageFloat!Platform fee percentage that would be applied to the order.
totalPriceWithFeesUint64!Total cost including fees. Amount in euro cents.

SecondaryMarketOrderConnection

Type: object

Relay connection for paginated SecondaryMarketOrder results.

Fields
FieldTypeDescription
nodes[SecondaryMarketOrder]!
edges[SecondaryMarketOrderEdge!]!
pageInfoPageInfo!
totalCountInt!

SecondaryMarketOrderEdge

Type: object

Relay edge wrapping a SecondaryMarketOrder node with its pagination cursor.

Fields
FieldTypeDescription
cursorString!
nodeSecondaryMarketOrder!

SecondaryMarketOrderTransaction

Type: object

Executed trade on a secondary market. Created when a buy order matches a sell order, recording the settlement details for both parties.

Implements: Node, NotificationReference

Fields
FieldTypeDescription
idID!
createdAtTime!
volumeTokenUint64!Number of tokens exchanged in this trade.
volumeEuroTokenUint64!Euro-token amount exchanged. Amount in euro cents.
priceUint64!Execution price of the trade. Price in euro cents per token.
realizedPnlInt!Realized profit or loss resulting from this trade. Amount in euro cents.
secondaryMarketOrderBuySecondaryMarketOrder!Buy-side order that participated in this trade.
secondaryMarketOrderSellSecondaryMarketOrder!Sell-side order that participated in this trade.
takerUser!User who triggered the match (taker).
makerUser!User whose resting order was matched (maker).
transactionTransaction!Parent transaction record for this trade.
secondaryMarketSecondaryMarket!Secondary market where this trade was executed.

SecondaryMarketOrderTransactionConnection

Type: object

Relay connection for paginated SecondaryMarketOrderTransaction results.

Fields
FieldTypeDescription
nodes[SecondaryMarketOrderTransaction]!
edges[SecondaryMarketOrderTransactionEdge!]!
pageInfoPageInfo!
totalCountInt!

SecondaryMarketOrderTransactionEdge

Type: object

Relay edge wrapping a SecondaryMarketOrderTransaction node with its pagination cursor.

Fields
FieldTypeDescription
cursorString!
nodeSecondaryMarketOrderTransaction!

Inputs

CancelSecondaryMarketOrderInput

Type: input

Input for cancelling a secondary market order.

Fields
FieldTypeDescription
SecondaryMarketOrderIDID!Identifier of the order to cancel.

CreateSecondaryMarketOrderInput

Type: input

Input for placing an order on a secondary market.

Fields
FieldTypeDescription
DirectionSecondaryMarketOrderDirection!Whether to buy or sell tokens.
TypeSecondaryMarketOrderType!Execution type of the order.
VolumeUint64!Number of tokens to trade.
PriceUint64!Limit price for the order. Price in euro cents per token.
SecondaryMarketIDString!Identifier of the secondary market to place the order on.
UserIDString!Identifier of the user placing the order.
ExpiresAtTimeOptional expiration date for the order. If set, the order will not be matchable after this date.

UserSecondaryMarketOrderInput

Type: input

Filter for listing a user's secondary market orders.

Fields
FieldTypeDescription
statusSecondaryMarketOrderStatus

Enums

SecondaryMarketOrderDirection

Type: enum

Direction of a secondary market order: buying or selling tokens.

Values
ValueDescription
BUYOrder to purchase tokens.
SELLOrder to sell tokens.

SecondaryMarketOrderStatus

Type: enum

Lifecycle status of a secondary market order.

Values
ValueDescription
PROCESSINGOrder is being validated and submitted.
OPENOrder is live on the order book and awaiting a match.
CLOSEDOrder has been fully filled.
CANCELLEDOrder was cancelled before being fully filled.
EXPIREDOrder has expired and can no longer be matched.

SecondaryMarketOrderType

Type: enum

Execution type of a secondary market order.

Values
ValueDescription
LIMITOrder placed at a specific price; executes only at that price or better.