OBJECT

Market

Represents a product & associated parameters that can be traded on Vega, has an associated OrderBook and Trade history

link GraphQL Schema definition

1 type Market {
2
3 # Market ID
4 id: ID!
5
6 # Market full name
7 name: String!
8
9 # Fees related data
10 fees: Fees!
11
12 # An instance of or reference to a tradable instrument.
13 tradableInstrument: TradableInstrument!
14
15 # Definitions and required configuration for the trading mode
16 tradingModeConfig: TradingMode!
17
18 # decimalPlaces indicates the number of decimal places that an integer must be
19 # shifted by in order to get a correct
20 # number denominated in the currency of the Market. (uint64)
21 #
22 # Examples:
23 # Currency Balance decimalPlaces Real Balance
24 # GBP 100 0 GBP 100
25 # GBP 100 2 GBP 1.00
26 # GBP 100 4 GBP 0.01
27 # GBP 1 4 GBP 0.0001 ( 0.01p )
28 #
29 # GBX (pence) 100 0 GBP 1.00 (100p )
30 # GBX (pence) 100 2 GBP 0.01 ( 1p )
31 # GBX (pence) 100 4 GBP 0.0001 ( 0.01p )
32 # GBX (pence) 1 4 GBP 0.000001 ( 0.0001p)
33 decimalPlaces: Int!
34
35 # Auction duration specifies how long the opening auction will run (minimum
36 # duration and optionally a minimum traded volume).
37 openingAuction: AuctionDuration!
38
39 # Price monitoring settings for the market
40 priceMonitoringSettings: PriceMonitoringSettings!
41
42 # Liquidity monitoring parameters for the market
43 liquidityMonitoringParameters: LiquidityMonitoringParameters!
44
45 # Current mode of execution of the market
46 tradingMode: MarketTradingMode!
47
48 # Current state of the market
49 state: MarketState!
50
51 # The proposal which initiated this market
52 proposal: Proposal
53
54 # Orders on a market
55 #
56 # Arguments
57 # skip: Pagination skip
58 # first: Pagination first element
59 # last: Pagination last element
60 orders(skip: Int, first: Int, last: Int): [Order!]
61
62 # Get account for a party or market
63 #
64 # Arguments
65 # partyId: Id of the party to get the margin account for
66 accounts(partyId: ID): [Account!]
67
68 # Trades on a market
69 #
70 # Arguments
71 # skip: Pagination skip
72 # first: Pagination first element
73 # last: Pagination last element
74 trades(skip: Int, first: Int, last: Int): [Trade!]
75
76 # Current depth on the orderbook for this market
77 #
78 # Arguments
79 # maxDepth: Maximum market order book depth (returns whole order
80 # book if omitted)
81 depth(maxDepth: Int): MarketDepth!
82
83 # Candles on a market, for the 'last' n candles, at 'interval' seconds as
84 # specified by params
85 #
86 # Arguments
87 # since: RFC3339Nano encoded time from when to get candles
88 # interval: Interval of the candles
89 candles(since: String!, interval: Interval!): [Candle]
90
91 # marketData for the given market
92 data: MarketData
93
94 # The list of the liquidity provision commitment for this market
95 #
96 # Arguments
97 # party: An optional party id
98 liquidityProvisions(party: String): [LiquidityProvision!]
99
100 # timestamps for state changes in the market
101 marketTimestamps: MarketTimestamps!
102
103 }