OBJECT

Party

Represents a party on Vega, could be an ethereum wallet address in the future

link GraphQL Schema definition

1 type Party {
2
3 # Party identifier
4 id: ID!
5
6 # Orders relating to a party
7 #
8 # Arguments
9 # skip: Pagination skip
10 # first: Pagination first element
11 # last: Pagination last element
12 orders(skip: Int, first: Int, last: Int): [Order!]
13
14 # Trades relating to a party (specifically where party is either buyer OR seller)
15 #
16 # Arguments
17 # marketId: ID of the market we want to get trades for
18 # skip: Pagination skip
19 # first: Pagination first element
20 # last: Pagination last element
21 trades(marketId: ID, skip: Int, first: Int, last: Int): [Trade!]
22
23 # Collateral accounts relating to a party
24 #
25 # Arguments
26 # marketId: Market ID - specify what market accounts for the
27 # party to return
28 # asset: Asset (USD, EUR etc)
29 # type: Filter accounts by type (General account, margin account,
30 # etc...)
31 accounts(marketId: ID, asset: String, type: AccountType): [Account!]
32
33 # Trading positions relating to a party
34 positions: [Position!]
35
36 # marginLevels
37 #
38 # Arguments
39 # marketId: market id off the margin to get, nil if all markets
40 margins(marketId: ID): [MarginLevels!]
41
42 # Arguments
43 # inState: Select only proposals in the specified state. Leave
44 # out to get all proposals
45 proposals(inState: ProposalState): [Proposal]
46
47 votes: [ProposalVote]
48
49 # The list of all withdrawals initiated by the party
50 withdrawals: [Withdrawal!]
51
52 # The list of all deposits for a party by the party
53 deposits: [Deposit!]
54
55 # The list of the liquidity provision commitment from this party
56 #
57 # Arguments
58 # market: An optional market id
59 # reference: An optional reference
60 liquidityProvisions(market: String, reference: String): [LiquidityProvision!]
61
62 }