Skip to content

Instantly share code, notes, and snippets.

@whalesalad
Created April 25, 2018 14:01
Show Gist options
  • Save whalesalad/2192ddca80a9deaaf547ccfe94b13abb to your computer and use it in GitHub Desktop.
Save whalesalad/2192ddca80a9deaaf547ccfe94b13abb to your computer and use it in GitHub Desktop.
query TotalFarmOverview($year: Int!) {
getTotalFarmOverview(year: $year) {
marketedCrops {
...MarketedCropBasic
__typename
}
overview {
totalCoverage
targetCostAndProfit
bookedRevenue
valueAtRisk
committedRevenue
projectedRevenue
totalFarmProfitLoss
__typename
}
__typename
}
}
fragment MarketedCropBasic on MarketedCrop {
id
year
acresPlanted
cropInsurancePercentage
targetCostAndProfit
targetFuturesPrice
bushelsSoldPerAcre
currentMarketPrice
breakevenPrice
totalProfitLoss
neededOnAtRiskPerUnit
productionCostPerUnit
goals {
...MarketedCropGoal
__typename
}
commodity {
...Commodity
__typename
}
progress {
...Progress
__typename
}
productionStats {
...ProductionStats
__typename
}
underlyings {
...Underlying
__typename
}
__typename
}
fragment MarketedCropGoal on MarketedCropGoal {
dueDate
targetPercentMarketed
targetBushelsMarketed
percentMarketed
bushelsMarketed
bushelsRemaining
status
__typename
}
fragment Commodity on Commodity {
id
name
marketSymbol
abbr
color
customaryUnit
__typename
}
fragment Progress on Progress {
sold {
...ProgressSection
__typename
}
hedged {
...ProgressSection
__typename
}
unprotected {
...ProgressSection
__typename
}
marketed {
...ProgressSection
__typename
}
__typename
}
fragment ProgressSection on ProgressSection {
quantity
value
percentage
__typename
}
fragment ProductionStats on ProductionStatsCollection {
total {
quantity
percentage
__typename
}
cash {
quantity
percentage
__typename
}
options {
quantity
percentage
__typename
}
futures {
quantity
percentage
__typename
}
__typename
}
fragment Underlying on Underlying {
symbol
shortName
fullName
futuresExpirationDate
optionsExpirationDate
expirationDate
isExpired
isDefault
isHarvestMonth
isFrontMonth
currentMarketPrice
priceSnapshot {
current
percentChange
netChange
high
low
__typename
}
__typename
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment