39 lines
548 B
GraphQL
39 lines
548 B
GraphQL
|
fragment MarginFields on MarginLevels {
|
||
|
maintenanceLevel
|
||
|
searchLevel
|
||
|
initialLevel
|
||
|
collateralReleaseLevel
|
||
|
asset {
|
||
|
id
|
||
|
}
|
||
|
market {
|
||
|
id
|
||
|
}
|
||
|
}
|
||
|
|
||
|
query Margins($partyId: ID!) {
|
||
|
party(id: $partyId) {
|
||
|
id
|
||
|
marginsConnection {
|
||
|
edges {
|
||
|
node {
|
||
|
...MarginFields
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
subscription MarginsSubscription($partyId: ID!) {
|
||
|
margins(partyId: $partyId) {
|
||
|
marketId
|
||
|
asset
|
||
|
partyId
|
||
|
maintenanceLevel
|
||
|
searchLevel
|
||
|
initialLevel
|
||
|
collateralReleaseLevel
|
||
|
timestamp
|
||
|
}
|
||
|
}
|