OBJECT

Position

An individual trader at any point in time is considered net long or net short. This refers to their Open Volume, calculated using FIFO. This volume is signed as either negative for LONG positions and positive for SHORT positions. A single trade may end up "splitting" with some of its volume matched into closed volume and some of its volume remaining as open volume. This is why we don't refer to positions being comprised of trades, rather of volume.

link GraphQL Schema definition

1 type Position {
2
3 # Market relating to this position
4 market: Market!
5
6 # The party holding this position
7 party: Party!
8
9 # Open volume (uint64)
10 openVolume: String!
11
12 # Realised Profit and Loss (int64)
13 realisedPNL: String!
14
15 # Unrealised Profit and Loss (int64)
16 unrealisedPNL: String!
17
18 # Average entry price for this position
19 averageEntryPrice: String!
20
21 # margins of the party for the given position
22 margins: [MarginLevels!]
23
24 # RFC3339Nano time the position was updated
25 updatedAt: String
26
27 }