OBJECT

Trade

A trade on Vega, the result of two orders being 'matched' in the market

link GraphQL Schema definition

1 type Trade {
2
3 # The hash of the trade data
4 id: ID!
5
6 # The market the trade occurred on
7 market: Market!
8
9 # The order that bought
10 buyOrder: String!
11
12 # The order that sold
13 sellOrder: String!
14
15 # The party that bought
16 buyer: Party!
17
18 # The party that sold
19 seller: Party!
20
21 # The aggressor indicates whether this trade was related to a BUY or SELL
22 aggressor: Side!
23
24 # The price of the trade (probably initially the passive order price, other
25 # determination algorithms are possible though) (uint64)
26 price: String!
27
28 # The number of contracts trades, will always be <= the remaining size of both
29 # orders immediately before the trade (uint64)
30 size: String!
31
32 # RFC3339Nano time for when the trade occurred
33 createdAt: String!
34
35 # The type of trade
36 type: TradeType!
37
38 # The fee paid by the buyer side of the trade
39 buyerFee: TradeFee!
40
41 # The fee paid by the seller side of the trade
42 sellerFee: TradeFee!
43
44 # The batch in witch the buyer order was submitted (applies only for Auctions
45 # modes)
46 buyerAuctionBatch: Int
47
48 # The batch in witch the seller order was submitted (applies only for Auctions
49 # modes)
50 sellerAuctionBatch: Int
51
52 }