Skip to main content

Objects

_Block_​

Fields

NameDescription

hash
Bytes

The hash of the block

number
Int!

The block number

timestamp
Int

Integer representation of the timestamp stored in blocks for the chain

parentHash
Bytes

The hash of the parent block

_Meta_​

The type for the top-level _meta field

Fields

NameDescription

block
Block!

Information about a specific subgraph block. The hash of the block will be null if the _meta field has a block constraint that asks for a block number. It will be filled if the _meta field has no block constraint and therefore asks for the latest block

deployment
String!

The deployment ID

hasIndexingErrors
Boolean!

If true, the subgraph encountered indexing errors at some past block

Auction​

Fields

NameDescription

id
ID!

auctionid

protocolToken
Bytes!

protocol token address

subjectToken
SubjectToken

minFundingThreshold
BigInt!

minFundingThresholdNotReached
Boolean!

clearingUserId
BigInt!

clearingBuyAmount
BigInt!

clearingSellAmount
BigInt!

volumeClearingPriceOrder
BigInt!

amountRaised
BigInt!

_bondingAmount + _protocolFee + _subjectFee -> from auction , should be added in summary buyVolume

subjectFee
BigInt!

protocolFee
BigInt!

startTxHash
Bytes!

endTxHash
Bytes

startBlockInfo
BlockInfo!

endBlockInfo
BlockInfo

auctionEndDate
BigInt!

AuctionUser​

Fields

NameDescription

id
ID!

userAddress
Bytes!

BlockInfo​

Fields

NameDescription

id
ID!

hash
Bytes!

blockNumber
BigInt!

timestamp
BigInt!

Order​

Fields

NameDescription

id
ID!

txHash+-+logIndex

protocolToken
Bytes!

Moxie Token address

protocolTokenAmount
BigInt!

Amount of moxie token

subjectToken
SubjectToken!

Subject Token address

subjectAmount
BigInt!

Amount of subject token

protocolTokenInvested
BigDecimal!

investment amount in moxie

subjectFee
BigInt!

subject fee

protocolFee
BigInt!

protocol fee

price
BigDecimal!

Price of the subject token

orderType
OrderType

BUY/SELL order type

user
User!

Seller/Buyer of Fan token

portfolio
Portfolio!

associated portfolio

subjectFeeTransfer
SubjectFeeTransfer!

subject fee transaction

protocolFeeTransfer
ProtocolFeeTransfer!

protocol fee transaction

blockInfo
BlockInfo!

block information

Portfolio​

Fields

NameDescription

id
ID!

User's address+-+Subject's token address

user
User!

User's address

subjectToken
SubjectToken!

Subject's token address

balance
BigInt!

Net quantity of the subject token by the user

buyVolume
BigInt!

Moxie spent by user to buy the subject token(buyShare + auctionOrders)

subjectTokenBuyVolume
BigInt!

total subject token bought by user

sellVolume
BigInt!

amount of moxie earned by user by selling the subject token

protocolTokenInvested
BigDecimal!

total moxie invested by the user

orders
[Order!]!

Orders associated with the user's portfolio

Arguments

NameDescription

skip
Int

first
Int

orderBy
Order_orderBy

orderDirection
OrderDirection

where
Order_filter

createdAtBlockInfo
BlockInfo!

created at block information

updatedAtBlockInfo
BlockInfo!

updated at block information

ProtocolFeeBeneficiary​

Fields

NameDescription

id
ID!

address of the beneficiary

beneficiary
Bytes!

address of the beneficiary

totalFees
BigInt!

total fees collected by the protocol

protocolFeeTransfers
[ProtocolFeeTransfer!]!

protocol fee transfers

Arguments

NameDescription

skip
Int

first
Int

orderBy
ProtocolFeeTransfer_orderBy

orderDirection
OrderDirection

where
ProtocolFeeTransfer_filter

ProtocolFeeTransfer​

Fields

NameDescription

id
ID!

txHash+-+logIndex

txHash
Bytes!

txHash of the transaction

blockInfo
BlockInfo!

block information

order
Order!

order

subjectToken
SubjectToken!

subject token address

beneficiary
ProtocolFeeBeneficiary!

ProtocolFee Beneficiary

amount
BigInt!

amount of moxie transferred

SubjectFeeTransfer​

Fields

NameDescription

id
ID!

txHash

txHash
Bytes!

txHash of the transaction

blockInfo
BlockInfo!

block information

order
Order!

order

subjectToken
SubjectToken!

subject token address

subject
User!

address of the beneficiary

amount
BigInt!

amount of moxie transferred

SubjectToken​

Fields

NameDescription

id
ID!

address of the subject token

name
String!

name of the token

symbol
String!

symbol of the token

decimals
BigInt!

decimals of the token

subject
User

address of the beneficiary

reserve
BigInt!

reserve balance in vault

currentPriceInMoxie
BigDecimal!

current price of the token in Moxie

currentPriceInWeiInMoxie
BigDecimal!

current price of the token in Moxie in wei unit

reserveRatio
BigInt!

constant used to calculate bonding curve

totalSupply
BigInt!

Total supply of the token

initialSupply
BigInt!

initial supply when bonding curve is initialized

uniqueHolders
BigInt!

total number of unique holders

lifetimeVolume
BigInt!

amount of moxie used to buy or sell or auction this subject token

hourlySnapshots
[SubjectTokenHourlySnapshot!]!

snapshots

Arguments

NameDescription

skip
Int

first
Int

orderBy
SubjectTokenHourlySnapshot_orderBy

orderDirection
OrderDirection

where
SubjectTokenHourlySnapshot_filter

dailySnapshots
[SubjectTokenDailySnapshot!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
SubjectTokenDailySnapshot_orderBy

orderDirection
OrderDirection

where
SubjectTokenDailySnapshot_filter

latestRollingDailySnapshot
SubjectTokenRollingDailySnapshot

latestDailySnapshot
SubjectTokenDailySnapshot

previousDailySnapshot
SubjectTokenDailySnapshot

subjectFee
BigInt!

total beneficiary fees collected

protocolFee
BigInt!

total protocol fees collected

subjectFeeTransfers
[SubjectFeeTransfer!]!

beneficiary fee transfer

Arguments

NameDescription

skip
Int

first
Int

orderBy
SubjectFeeTransfer_orderBy

orderDirection
OrderDirection

where
SubjectFeeTransfer_filter

protocolFeeTransfers
[ProtocolFeeTransfer!]!

protocol fee transfers

Arguments

NameDescription

skip
Int

first
Int

orderBy
ProtocolFeeTransfer_orderBy

orderDirection
OrderDirection

where
ProtocolFeeTransfer_filter

portfolio
[Portfolio!]!

portfolios with this subject

Arguments

NameDescription

skip
Int

first
Int

orderBy
Portfolio_orderBy

orderDirection
OrderDirection

where
Portfolio_filter

createdAtBlockInfo
BlockInfo!

created at block information

updatedAtBlockInfo
BlockInfo!

updated at block information

buySideVolume
BigInt!

Moxie spent by all users buy this subject token

sellSideVolume
BigInt!

Moxie earned by all user to sell the subject token

protocolTokenInvested
BigDecimal!

total moxie invested by the user, after reducing when user sells the token

orders
[Order!]!

orders associated with the subject

Arguments

NameDescription

skip
Int

first
Int

orderBy
Order_orderBy

orderDirection
OrderDirection

where
Order_filter

auction
Auction

status
OnboardingStatus!

SubjectTokenDailySnapshot​

Fields

NameDescription

id
ID!

subjectId+-+endTimestamp

startTimestamp
BigInt!

start block timestamp

endTimestamp
BigInt!

end block timestamp

subjectToken
SubjectToken!

subject token address

subject
User

address of the beneficiary

reserve
BigInt!

reserve balance (moxie)/ total locked value

startPrice
BigDecimal!

price of the token at the start of the snapshot

endPrice
BigDecimal!

price of the token at the end of the snapshot

dailyPriceChange
BigDecimal!

daily price change

totalSupply
BigInt!

Total supply of the token

startUniqueHolders
BigInt!

total number of unique holders at start of the snapshot

endUniqueHolders
BigInt!

total number of unique holders at end of the snapshot

dailyUniqueHoldersChange
BigInt!

daily unique holders change

startVolume
BigInt!

amount of moxie used to buy or sell this subject token at start of the snapshot

endVolume
BigInt!

amount of moxie used to buy or sell this subject token at end of the snapshot

dailyVolumeChange
BigInt!

daily volume change

startSubjectFee
BigInt!

total beneficiary fee at start of the snapshot

endSubjectFee
BigInt!

total beneficiary fee at end of the snapshot

dailySubjectFeeChange
BigInt!

daily beneficiary fee change

startProtocolFee
BigInt!

total protocol fee at start of the snapshot

endProtocolFee
BigInt!

total protocol fee at end of the snapshot

dailyProtocolFeeChange
BigInt!

daily protocol fee change

createdAtBlockInfo
BlockInfo!

updatedAtBlockInfo
BlockInfo!

lastSubjectTokenDailySnapshot
SubjectTokenDailySnapshot

hourlySnapshotEndTimestamps
[BigInt!]!

SubjectTokenHourlySnapshot​

Fields

NameDescription

id
ID!

subjectId+-+endTimestamp

startTimestamp
BigInt!

start block timestamp

endTimestamp
BigInt!

end block timestamp

subjectToken
SubjectToken!

subject token address

subject
User

address of the beneficiary

reserve
BigInt!

reserve balance (moxie)/ total locked value

startPrice
BigDecimal!

price of the token at the start of the snapshot

endPrice
BigDecimal!

price of the token at the end of the snapshot

hourlyPriceChange
BigDecimal!

hourly price change

totalSupply
BigInt!

Total supply of the token

startUniqueHolders
BigInt!

total number of unique holders at start of the snapshot

endUniqueHolders
BigInt!

total number of unique holders at end of the snapshot

hourlyUniqueHoldersChange
BigInt!

hourly unique holders change

startVolume
BigInt!

amount of moxie used to buy or sell this subject token at start of the snapshot

endVolume
BigInt!

amount of moxie used to buy or sell this subject token at end of the snapshot

hourlyVolumeChange
BigInt!

hourly volume change

startSubjectFee
BigInt!

total beneficiary fee at start of the snapshot

endSubjectFee
BigInt!

total beneficiary fee at end of the snapshot

hourlySubjectFeeChange
BigInt!

hourly beneficiary fee change

startProtocolFee
BigInt!

total protocol fee at start of the snapshot

endProtocolFee
BigInt!

total protocol fee at end of the snapshot

hourlyProtocolFeeChange
BigInt!

hourly protocol fee change

createdAtBlockInfo
BlockInfo!

updatedAtBlockInfo
BlockInfo!

SubjectTokenRollingDailySnapshot​

Fields

NameDescription

id
ID!

subjectId+-+endTimestamp

startTimestamp
BigInt!

start block timestamp

endTimestamp
BigInt!

end block timestamp

startReferenceTimestamp
BigInt!

reference snapshot's end timestamp

subjectToken
SubjectToken!

subject token address

subject
User

address of the beneficiary

reserve
BigInt!

reserve balance (moxie)/ total locked value

startPrice
BigDecimal!

price of the token at the start of the snapshot

endPrice
BigDecimal!

price of the token at the end of the snapshot

dailyPriceChange
BigDecimal!

daily price change

totalSupply
BigInt!

Total supply of the token

startUniqueHolders
BigInt!

total number of unique holders at start of the snapshot

endUniqueHolders
BigInt!

total number of unique holders at end of the snapshot

dailyUniqueHoldersChange
BigInt!

daily unique holders change

startVolume
BigInt!

amount of moxie used to buy or sell this subject token at start of the snapshot

endVolume
BigInt!

amount of moxie used to buy or sell this subject token at end of the snapshot

dailyVolumeChange
BigInt!

daily volume change

startSubjectFee
BigInt!

total beneficiary fee at start of the snapshot

endSubjectFee
BigInt!

total beneficiary fee at end of the snapshot

dailySubjectFeeChange
BigInt!

daily beneficiary fee change

startProtocolFee
BigInt!

total protocol fee at start of the snapshot

endProtocolFee
BigInt!

total protocol fee at end of the snapshot

dailyProtocolFeeChange
BigInt!

daily protocol fee change

createdAtBlockInfo
BlockInfo!

updatedAtBlockInfo
BlockInfo!

initialHourlySnapshot
SubjectTokenHourlySnapshot

Summary​

Fields

NameDescription

id
ID!

totalSubjectTokensIssued
BigInt!

totalReserve
BigInt!

total reserve in the vault

totalProtocolTokenInvested
BigDecimal!

total protocol token spent by all users - after reducing when user sells the token

activeProtocolFeeBeneficiary
ProtocolFeeBeneficiary

protocolBuyFeePct
BigInt!

protocolSellFeePct
BigInt!

subjectBuyFeePct
BigInt!

subjectSellFeePct
BigInt!

numberOfBuyOrders
BigInt!

numberOfSellOrders
BigInt!

numberOfAuctionOrders
BigInt!

numberOfUsers
BigInt!

totalBuyVolume
BigInt!

total moxie spent in buy orders + initialization

totalSellVolume
BigInt!

totalProtocolFee
BigInt!

totalProtocolFeeFromAuction
BigInt!

totalSubjectFee
BigInt!

totalSubjectFeeFromAuction
BigInt!

User​

Fields

NameDescription

id
ID!

Ethereum address of the user

portfolio
[Portfolio!]!

User's Portfolio for each subject token he/she holds

Arguments

NameDescription

skip
Int

first
Int

orderBy
Portfolio_orderBy

orderDirection
OrderDirection

where
Portfolio_filter

orders
[Order!]!

orders placed by the user (auction, buy & sell)

Arguments

NameDescription

skip
Int

first
Int

orderBy
Order_orderBy

orderDirection
OrderDirection

where
Order_filter

subjectFeeTransfer
[SubjectFeeTransfer!]!

beneficiary fee transfers

Arguments

NameDescription

skip
Int

first
Int

orderBy
SubjectFeeTransfer_orderBy

orderDirection
OrderDirection

where
SubjectFeeTransfer_filter

buyVolume
BigInt!

total moxie spent by the user

sellVolume
BigInt!

Moxie earned by user to sell the subject token

protocolTokenInvested
BigDecimal!

total moxie invested by the user

protocolOrdersCount
BigInt!

total number of orders (auction & buyOrders)

createdAtBlockInfo
BlockInfo!

created at block information

updatedAtBlockInfo
BlockInfo!

updated at block information