2023-11-15 21:46:19 +00:00
|
|
|
query RewardsPage($partyId: ID!) {
|
|
|
|
party(id: $partyId) {
|
|
|
|
id
|
|
|
|
vestingStats {
|
|
|
|
rewardBonusMultiplier
|
2024-01-05 11:16:59 +00:00
|
|
|
quantumBalance
|
|
|
|
epochSeq
|
2023-11-15 21:46:19 +00:00
|
|
|
}
|
|
|
|
activityStreak {
|
2024-01-05 11:16:59 +00:00
|
|
|
activeFor
|
|
|
|
isActive
|
|
|
|
inactiveFor
|
2023-11-15 21:46:19 +00:00
|
|
|
rewardDistributionMultiplier
|
2024-01-05 11:16:59 +00:00
|
|
|
rewardVestingMultiplier
|
|
|
|
epoch
|
|
|
|
tradedVolume
|
|
|
|
openVolume
|
2023-11-15 21:46:19 +00:00
|
|
|
}
|
|
|
|
vestingBalancesSummary {
|
|
|
|
epoch
|
|
|
|
vestingBalances {
|
|
|
|
asset {
|
|
|
|
id
|
|
|
|
symbol
|
|
|
|
decimals
|
|
|
|
quantum
|
|
|
|
}
|
|
|
|
balance
|
|
|
|
}
|
|
|
|
lockedBalances {
|
|
|
|
asset {
|
|
|
|
id
|
|
|
|
symbol
|
|
|
|
decimals
|
|
|
|
quantum
|
|
|
|
}
|
|
|
|
balance
|
|
|
|
untilEpoch
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-05 11:16:59 +00:00
|
|
|
query ActiveRewards(
|
|
|
|
$isReward: Boolean
|
|
|
|
$partyId: ID
|
|
|
|
$direction: TransferDirection
|
|
|
|
$pagination: Pagination
|
|
|
|
) {
|
|
|
|
transfersConnection(
|
|
|
|
partyId: $partyId
|
|
|
|
isReward: $isReward
|
|
|
|
direction: $direction
|
|
|
|
pagination: $pagination
|
|
|
|
) {
|
|
|
|
edges {
|
|
|
|
node {
|
|
|
|
transfer {
|
|
|
|
amount
|
|
|
|
id
|
|
|
|
from
|
|
|
|
fromAccountType
|
|
|
|
to
|
|
|
|
toAccountType
|
|
|
|
asset {
|
|
|
|
id
|
|
|
|
symbol
|
|
|
|
decimals
|
|
|
|
name
|
|
|
|
quantum
|
|
|
|
status
|
|
|
|
}
|
|
|
|
reference
|
|
|
|
status
|
|
|
|
timestamp
|
|
|
|
kind {
|
|
|
|
... on RecurringTransfer {
|
|
|
|
startEpoch
|
|
|
|
endEpoch
|
|
|
|
dispatchStrategy {
|
|
|
|
dispatchMetric
|
|
|
|
dispatchMetricAssetId
|
|
|
|
marketIdsInScope
|
|
|
|
entityScope
|
|
|
|
individualScope
|
|
|
|
teamScope
|
|
|
|
nTopPerformers
|
|
|
|
stakingRequirement
|
|
|
|
notionalTimeWeightedAveragePositionRequirement
|
|
|
|
windowLength
|
|
|
|
lockPeriod
|
|
|
|
distributionStrategy
|
|
|
|
rankTable {
|
|
|
|
startRank
|
|
|
|
shareRatio
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
reason
|
|
|
|
}
|
|
|
|
fees {
|
|
|
|
transferId
|
|
|
|
amount
|
|
|
|
epoch
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-15 21:46:19 +00:00
|
|
|
query RewardsHistory(
|
|
|
|
$partyId: ID!
|
|
|
|
$epochRewardSummariesPagination: Pagination
|
|
|
|
$partyRewardsPagination: Pagination
|
|
|
|
$fromEpoch: Int
|
|
|
|
$toEpoch: Int
|
|
|
|
) {
|
|
|
|
epochRewardSummaries(
|
|
|
|
filter: { fromEpoch: $fromEpoch, toEpoch: $toEpoch }
|
|
|
|
pagination: $epochRewardSummariesPagination
|
|
|
|
) {
|
|
|
|
edges {
|
|
|
|
node {
|
|
|
|
epoch
|
|
|
|
assetId
|
|
|
|
amount
|
|
|
|
rewardType
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
party(id: $partyId) {
|
|
|
|
id
|
|
|
|
rewardsConnection(
|
|
|
|
fromEpoch: $fromEpoch
|
|
|
|
toEpoch: $toEpoch
|
|
|
|
pagination: $partyRewardsPagination
|
|
|
|
) {
|
|
|
|
edges {
|
|
|
|
node {
|
|
|
|
amount
|
|
|
|
percentageOfTotal
|
|
|
|
receivedAt
|
|
|
|
rewardType
|
|
|
|
asset {
|
|
|
|
id
|
|
|
|
symbol
|
|
|
|
name
|
|
|
|
decimals
|
|
|
|
}
|
|
|
|
party {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
epoch {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
query RewardsEpoch {
|
|
|
|
epoch {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
2024-01-05 11:16:59 +00:00
|
|
|
|
|
|
|
query MarketForRewards($marketId: ID!) {
|
|
|
|
market(id: $marketId) {
|
|
|
|
tradableInstrument {
|
|
|
|
instrument {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
code
|
|
|
|
metadata {
|
|
|
|
tags
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|