code.vegaprotocol.io/vega@v0.79.0/datanode/integration/testdata/golden/TestPositions_Positions (about) 1 { 2 "TestName": "TestPositions_Positions", 3 "Query": "{\n\t\t\tpartiesConnection {\n\t\t\t edges {\n\t\t\t\tnode {\n\t\t\t\t id\n\t\t\t\t positionsConnection{\n\t\t\t\t edges{\n\t\t\t\t\t node {\n\t\t\t\t\t\tmarket{id}\n\t\t\t\t \tparty{id}\n\t\t\t\t \topenVolume\n\t\t\t\t \trealisedPNL\n\t\t\t\t \tunrealisedPNL\n\t\t\t\t \taverageEntryPrice\n\t\t\t\t \tupdatedAt\n \t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t }", 4 "Result": { 5 "partiesConnection": { 6 "edges": [ 7 { 8 "node": { 9 "id": "network", 10 "positionsConnection": { 11 "edges": null 12 } 13 } 14 }, 15 { 16 "node": { 17 "id": "6258344864c89a115c038cf524323bcb63f2e40bc7e9b44fa1512edc591ed5b8", 18 "positionsConnection": { 19 "edges": null 20 } 21 } 22 }, 23 { 24 "node": { 25 "id": "f1a1741cb457aa59209e806b8312a6e959fbc83418d86b881191fb3bf2e1c95a", 26 "positionsConnection": { 27 "edges": null 28 } 29 } 30 }, 31 { 32 "node": { 33 "id": "a6ea3d9af8be934a022b0ad2b4e994980fb606198c0fcc8d5e50ae94f7a12435", 34 "positionsConnection": { 35 "edges": null 36 } 37 } 38 }, 39 { 40 "node": { 41 "id": "abbb79deea6dc6bb5b532d0641730d2366864bf349744663e750f64422ca5ebb", 42 "positionsConnection": { 43 "edges": [ 44 { 45 "node": { 46 "averageEntryPrice": "0", 47 "market": { 48 "id": "bda439ade276efe1567fedec94ea5b9c040c5f89f72382ef1cf893faf0454f32" 49 }, 50 "openVolume": "0", 51 "party": { 52 "id": "abbb79deea6dc6bb5b532d0641730d2366864bf349744663e750f64422ca5ebb" 53 }, 54 "realisedPNL": "0", 55 "unrealisedPNL": "0", 56 "updatedAt": "2023-03-10T10:27:57.709915Z" 57 } 58 } 59 ] 60 } 61 } 62 }, 63 { 64 "node": { 65 "id": "8550c5350e9ddad81d270895f66a13bc03b030f7f6479443027a22adab801ea8", 66 "positionsConnection": { 67 "edges": null 68 } 69 } 70 }, 71 { 72 "node": { 73 "id": "3c1fcb30ced97bef4978ea5977334a08fed99de24b09ac3f0ef257b56e56c1f4", 74 "positionsConnection": { 75 "edges": null 76 } 77 } 78 }, 79 { 80 "node": { 81 "id": "21b6a8555b433b0c6d45720d08c0025a1c18a8aa20dbfd4e85e1de3c81878cd7", 82 "positionsConnection": { 83 "edges": null 84 } 85 } 86 }, 87 { 88 "node": { 89 "id": "ee963982e8d93fd36ab7ec3b94e22e403647a1c44d37f9d262be9c6ffeba94e5", 90 "positionsConnection": { 91 "edges": null 92 } 93 } 94 }, 95 { 96 "node": { 97 "id": "dddf0f4bebe8669764f029655cf65c8a26c7ea49144279943f33c26f5d7d0b73", 98 "positionsConnection": { 99 "edges": null 100 } 101 } 102 }, 103 { 104 "node": { 105 "id": "73de7993cc410fed21b1e081bad7159698c03b5a2ca6c61c4785fe5d17600ffa", 106 "positionsConnection": { 107 "edges": null 108 } 109 } 110 }, 111 { 112 "node": { 113 "id": "6ceafd8e0e65935abd68899474fd20d7202abc50948fdda9c17a54d835c2498d", 114 "positionsConnection": { 115 "edges": null 116 } 117 } 118 }, 119 { 120 "node": { 121 "id": "1b8b57dde8383f0e9d1b3833d656803b3b48bdacc043d1992208824326a18842", 122 "positionsConnection": { 123 "edges": null 124 } 125 } 126 }, 127 { 128 "node": { 129 "id": "a07aae3aa37bce328f432c953807ec281624c7ecb25e571bb6ba85887d04775d", 130 "positionsConnection": { 131 "edges": null 132 } 133 } 134 }, 135 { 136 "node": { 137 "id": "1bc144ea1fd3019cd7db12ae0a1e9fb9a3e0e8fcf7aaa6bdf2fbce7c35171a6f", 138 "positionsConnection": { 139 "edges": null 140 } 141 } 142 }, 143 { 144 "node": { 145 "id": "c137b920e6b37cb8dd1841a07d24f4f7728e21fbe5f2343b32f0350e1407154f", 146 "positionsConnection": { 147 "edges": null 148 } 149 } 150 }, 151 { 152 "node": { 153 "id": "95a458eddea0a157b92c8450be9943cfa37521ca1048047eeef5fc20d86907ba", 154 "positionsConnection": { 155 "edges": null 156 } 157 } 158 }, 159 { 160 "node": { 161 "id": "6d471a6b2b3e9c49170a2058389d33760a5959f6b2435ce7c75b938390520350", 162 "positionsConnection": { 163 "edges": null 164 } 165 } 166 }, 167 { 168 "node": { 169 "id": "4dfff937cdcedf7d1622b1b7e4126e68f8dc02619437f4de6bfd45ca6db65738", 170 "positionsConnection": { 171 "edges": null 172 } 173 } 174 }, 175 { 176 "node": { 177 "id": "384c6b1977c55332597db057d7700a8bd73d26b51725c2bc984911cb6f35eaec", 178 "positionsConnection": { 179 "edges": null 180 } 181 } 182 }, 183 { 184 "node": { 185 "id": "033acc4e3803f1160cb399b7e041735c92576db9dc4d7d94d13c508788464663", 186 "positionsConnection": { 187 "edges": [ 188 { 189 "node": { 190 "averageEntryPrice": "97600000", 191 "market": { 192 "id": "bda439ade276efe1567fedec94ea5b9c040c5f89f72382ef1cf893faf0454f32" 193 }, 194 "openVolume": "-500000", 195 "party": { 196 "id": "033acc4e3803f1160cb399b7e041735c92576db9dc4d7d94d13c508788464663" 197 }, 198 "realisedPNL": "0", 199 "unrealisedPNL": "0", 200 "updatedAt": "2023-03-10T10:27:57.709915Z" 201 } 202 }, 203 { 204 "node": { 205 "averageEntryPrice": "97600000", 206 "market": { 207 "id": "c8657325431e08fc2a22f5094d3fb42a570b6b13d5dafc346924e340ea2a6711" 208 }, 209 "openVolume": "0", 210 "party": { 211 "id": "033acc4e3803f1160cb399b7e041735c92576db9dc4d7d94d13c508788464663" 212 }, 213 "realisedPNL": "4879495000000000000000", 214 "unrealisedPNL": "0", 215 "updatedAt": "2023-03-10T10:25:01.157162Z" 216 } 217 } 218 ] 219 } 220 } 221 }, 222 { 223 "node": { 224 "id": "85d1b6579d441d251611965fdad680ac90dd768fddcc2d22a5ab8c5922d75f57", 225 "positionsConnection": { 226 "edges": [ 227 { 228 "node": { 229 "averageEntryPrice": "97600000", 230 "market": { 231 "id": "bda439ade276efe1567fedec94ea5b9c040c5f89f72382ef1cf893faf0454f32" 232 }, 233 "openVolume": "500000", 234 "party": { 235 "id": "85d1b6579d441d251611965fdad680ac90dd768fddcc2d22a5ab8c5922d75f57" 236 }, 237 "realisedPNL": "0", 238 "unrealisedPNL": "0", 239 "updatedAt": "2023-03-10T10:27:57.709915Z" 240 } 241 }, 242 { 243 "node": { 244 "averageEntryPrice": "96333333", 245 "market": { 246 "id": "c8657325431e08fc2a22f5094d3fb42a570b6b13d5dafc346924e340ea2a6711" 247 }, 248 "openVolume": "0", 249 "party": { 250 "id": "85d1b6579d441d251611965fdad680ac90dd768fddcc2d22a5ab8c5922d75f57" 251 }, 252 "realisedPNL": "-5779394000000000000000", 253 "unrealisedPNL": "0", 254 "updatedAt": "2023-03-10T10:25:01.157162Z" 255 } 256 } 257 ] 258 } 259 } 260 }, 261 { 262 "node": { 263 "id": "a3803f7086a5169c13b382e29c3d3180fb73fd2b731d3358b7a8d9c54ea14183", 264 "positionsConnection": { 265 "edges": [ 266 { 267 "node": { 268 "averageEntryPrice": "90000000", 269 "market": { 270 "id": "c8657325431e08fc2a22f5094d3fb42a570b6b13d5dafc346924e340ea2a6711" 271 }, 272 "openVolume": "0", 273 "party": { 274 "id": "a3803f7086a5169c13b382e29c3d3180fb73fd2b731d3358b7a8d9c54ea14183" 275 }, 276 "realisedPNL": "899899000000000000000", 277 "unrealisedPNL": "0", 278 "updatedAt": "2023-03-10T10:25:01.157162Z" 279 } 280 } 281 ] 282 } 283 } 284 }, 285 { 286 "node": { 287 "id": "626b5bc6ed77b06bd32711bb33996a1b7373e9d1055290f4feb89f3964c6b19b", 288 "positionsConnection": { 289 "edges": null 290 } 291 } 292 }, 293 { 294 "node": { 295 "id": "0c1e59433bec284a6d0e630eace136aaba41b86ed0c8e91f69c8e44d03d81348", 296 "positionsConnection": { 297 "edges": [ 298 { 299 "node": { 300 "averageEntryPrice": "0", 301 "market": { 302 "id": "c8657325431e08fc2a22f5094d3fb42a570b6b13d5dafc346924e340ea2a6711" 303 }, 304 "openVolume": "0", 305 "party": { 306 "id": "0c1e59433bec284a6d0e630eace136aaba41b86ed0c8e91f69c8e44d03d81348" 307 }, 308 "realisedPNL": "0", 309 "unrealisedPNL": "0", 310 "updatedAt": "2023-03-10T10:25:01.157162Z" 311 } 312 } 313 ] 314 } 315 } 316 }, 317 { 318 "node": { 319 "id": "cca5f6c7418d0b08d2d9ee87f46955e0fbd47dfc713ec7606dda7ac80b4baf29", 320 "positionsConnection": { 321 "edges": [ 322 { 323 "node": { 324 "averageEntryPrice": "100000000", 325 "market": { 326 "id": "836da1ce68446d8b5cd1102bd46712fab678da8174c21f974d650212d928d5cd" 327 }, 328 "openVolume": "100000", 329 "party": { 330 "id": "cca5f6c7418d0b08d2d9ee87f46955e0fbd47dfc713ec7606dda7ac80b4baf29" 331 }, 332 "realisedPNL": "0", 333 "unrealisedPNL": "0", 334 "updatedAt": "2023-03-10T10:23:36.098501Z" 335 } 336 } 337 ] 338 } 339 } 340 }, 341 { 342 "node": { 343 "id": "a2835bc04c28b427616d35a5040fe452c3dc93587c9729fc3d5b59aa1fa01163", 344 "positionsConnection": { 345 "edges": null 346 } 347 } 348 }, 349 { 350 "node": { 351 "id": "83c9ef61f27178869fe9263222adc4749a25f3f29675eeb2ba6189b5ab84bc78", 352 "positionsConnection": { 353 "edges": null 354 } 355 } 356 }, 357 { 358 "node": { 359 "id": "72b033675512447a4f1d37da46dc0e455cec76c7e82e0203db87d0ab35eec02f", 360 "positionsConnection": { 361 "edges": null 362 } 363 } 364 }, 365 { 366 "node": { 367 "id": "d49666f7327b3d5b077e10bc5fb9da19ff94b7f587dad9937200155a42b236b0", 368 "positionsConnection": { 369 "edges": [ 370 { 371 "node": { 372 "averageEntryPrice": "100000000", 373 "market": { 374 "id": "836da1ce68446d8b5cd1102bd46712fab678da8174c21f974d650212d928d5cd" 375 }, 376 "openVolume": "-100000", 377 "party": { 378 "id": "d49666f7327b3d5b077e10bc5fb9da19ff94b7f587dad9937200155a42b236b0" 379 }, 380 "realisedPNL": "0", 381 "unrealisedPNL": "0", 382 "updatedAt": "2023-03-10T10:23:36.098501Z" 383 } 384 } 385 ] 386 } 387 } 388 }, 389 { 390 "node": { 391 "id": "bc48c903a4a233fd2fe92787f9694a395d0155881ef35f041c913d7d3ff97c27", 392 "positionsConnection": { 393 "edges": null 394 } 395 } 396 }, 397 { 398 "node": { 399 "id": "c2071f9874933829eb432b1af0d776b5d49d5d4a7feefffa7d1e9642d9d5ed19", 400 "positionsConnection": { 401 "edges": [ 402 { 403 "node": { 404 "averageEntryPrice": "0", 405 "market": { 406 "id": "c8657325431e08fc2a22f5094d3fb42a570b6b13d5dafc346924e340ea2a6711" 407 }, 408 "openVolume": "0", 409 "party": { 410 "id": "c2071f9874933829eb432b1af0d776b5d49d5d4a7feefffa7d1e9642d9d5ed19" 411 }, 412 "realisedPNL": "0", 413 "unrealisedPNL": "0", 414 "updatedAt": "2023-03-10T10:25:01.157162Z" 415 } 416 }, 417 { 418 "node": { 419 "averageEntryPrice": "0", 420 "market": { 421 "id": "836da1ce68446d8b5cd1102bd46712fab678da8174c21f974d650212d928d5cd" 422 }, 423 "openVolume": "0", 424 "party": { 425 "id": "c2071f9874933829eb432b1af0d776b5d49d5d4a7feefffa7d1e9642d9d5ed19" 426 }, 427 "realisedPNL": "0", 428 "unrealisedPNL": "0", 429 "updatedAt": "2023-03-10T10:23:36.098501Z" 430 } 431 } 432 ] 433 } 434 } 435 }, 436 { 437 "node": { 438 "id": "fea234dd40479f4c356eead30d359b9ad349603e5ef7a4c0a58c9f2c432fcc51", 439 "positionsConnection": { 440 "edges": null 441 } 442 } 443 }, 444 { 445 "node": { 446 "id": "06b6e5998288ae08b72af1b94aac078f82dafe6871baa4806742a4456b112b15", 447 "positionsConnection": { 448 "edges": null 449 } 450 } 451 } 452 ] 453 } 454 }, 455 "Duration": 6558121 456 }