75 lines
1.2 KiB
GraphQL
75 lines
1.2 KiB
GraphQL
query DiscountPrograms {
|
|
currentReferralProgram {
|
|
benefitTiers {
|
|
minimumEpochs
|
|
minimumRunningNotionalTakerVolume
|
|
referralDiscountFactor
|
|
}
|
|
windowLength
|
|
}
|
|
currentVolumeDiscountProgram {
|
|
benefitTiers {
|
|
minimumRunningNotionalTakerVolume
|
|
volumeDiscountFactor
|
|
}
|
|
windowLength
|
|
}
|
|
}
|
|
|
|
query Fees(
|
|
$partyId: ID!
|
|
$volumeDiscountEpochs: Int!
|
|
$referralDiscountEpochs: Int!
|
|
) {
|
|
epoch {
|
|
id
|
|
}
|
|
volumeDiscountStats(
|
|
partyId: $partyId
|
|
pagination: { last: $volumeDiscountEpochs }
|
|
) {
|
|
edges {
|
|
node {
|
|
atEpoch
|
|
discountFactor
|
|
runningVolume
|
|
}
|
|
}
|
|
}
|
|
referrer: referralSets(referrer: $partyId) {
|
|
edges {
|
|
node {
|
|
id
|
|
referrer
|
|
}
|
|
}
|
|
}
|
|
referee: referralSets(referee: $partyId) {
|
|
edges {
|
|
node {
|
|
id
|
|
referrer
|
|
}
|
|
}
|
|
}
|
|
referralSetReferees(referee: $partyId) {
|
|
edges {
|
|
node {
|
|
atEpoch
|
|
}
|
|
}
|
|
}
|
|
referralSetStats(
|
|
partyId: $partyId
|
|
pagination: { last: $referralDiscountEpochs }
|
|
) {
|
|
edges {
|
|
node {
|
|
atEpoch
|
|
discountFactor
|
|
referralSetRunningNotionalTakerVolume
|
|
}
|
|
}
|
|
}
|
|
}
|