OBJECT

Order

An order in Vega, if active it will be on the OrderBook for the market

link GraphQL Schema definition

1 type Order {
2
3 # Hash of the order data
4 id: ID!
5
6 # The worst price the order will trade at (e.g. buy for price or less, sell for
7 # price or more) (uint64)
8 price: String!
9
10 # The timeInForce of order (determines how and if it executes, and whether it
11 # persists on the book)
12 timeInForce: OrderTimeInForce!
13
14 # Whether the order is to buy or sell
15 side: Side!
16
17 # The market the order is trading on (probably stored internally as a hash of the
18 # market details)
19 market: Market
20
21 # Total number of contracts that may be bought or sold (immutable) (uint64)
22 size: String!
23
24 # Number of contracts remaining of the total that have not yet been bought or sold
25 # (uint64)
26 remaining: String!
27
28 # The trader who place the order (probably stored internally as the trader's
29 # public key)
30 party: Party!
31
32 # RFC3339Nano formatted date and time for when the order was created (timestamp)
33 createdAt: String!
34
35 # Expiration time of this order (ISO-8601 RFC3339+Nano formatted date)
36 expiresAt: String
37
38 # The status of an order, for example 'Active'
39 status: OrderStatus!
40
41 # The external reference (if available) for the order
42 reference: String!
43
44 # Trades relating to this order
45 trades: [Trade!]
46
47 # Type the order type (defaults to TRADER)
48 type: OrderType
49
50 # Reason for the order to be rejected
51 rejectionReason: OrderRejectionReason
52
53 # Version of this order, counts the number of amends
54 version: String!
55
56 # RFC3339Nano time the order was altered
57 updatedAt: String
58
59 # PeggedOrder contains the details about a pegged order
60 peggedOrder: PeggedOrder
61
62 # The liquidity provision this order was created from
63 liquidityProvision: LiquidityProvision
64
65 }