README ¶
GraphQL
The query interface is accessible on http://localhost:3004/
.
Types
Dates (time.Time)
- Serialization type:
String
Note
Use vegatime.Format(vegatime.UnixNano(myDate))
to properly convert it.
How to's?
Add new GraphQL type
- Add the new type in
schema.graphql
- Add binding between golang model and GraphQL type in
gqlgen.yml
- Generate the GraphQL model and resolver with
make gqlgen
- Create a new golang file
my_type_resolver.go
- Implement the
MyTypeResolver
interface- This interface is located in
generated.go
- This interface is located in
- Add a method
MyType()
on structVegaResolverRoot
inresolvers.go
, as follows :
func (r *VegaResolverRoot) MyType() MyTypeResolver {
return (*myTypeResolver)(r)
}
Add a new query?
- Add a new query in
schema.graphql
in theQuery
type - Generate the GraphQL model and resolver with
make gqlgen
- Add a method
MyType()
on structmyQueryResolver
inresolvers.go
, as follows :
func (r *myQueryResolver) MyType() types.MyType {
res, err := r.tradingDataClient.MyType(
ctx, &protoapi.MyTypeRequest{Id: id},
)
if err != nil {
return nil, err
}
return res.MyType, nil
}
Documentation ¶
Overview ¶
Package gql contains code for running the GraphQL-to-gRPC gateway.
In order to add a new GraphQL endpoint, add an entry to either the `Mutation`, `Query` or `Subscription` sections of `gateway/graphql/schema.graphql`. Example:
# SomeNewEndpoint does something somenewendpoint( # somestring someStr: String!, # someint someInt: Int! ): SomeNewEndpointResponse! type SomeNewEndpointResponse { someAnswer: String! someStringList: [String!] }
Then run `make gqlgen`.
Your new endpoint above will require a `SomeNewEndpointRequest` and `SomeNewEndpointResponse` message to be defined in the trading.proto file. Once this is defined you can run `make proto` to generate the structures required to add the resolvers below. e.g.
message SomeNewEndpointRequest { string orderID = 1; string referenceID = 2; } message SomeNewEndpointResponse { vega.Order order = 1; }
Also a function definition needs to be defined in the trading.proto to show the parameters and return strutures for the new function e.g. rpc SomeNewEndpoint (SomeNewEndpointRequest) returns (SomeNewEndpointResponse)
Next, in `gateway/graphql/resolvers.go`, add the endpoint to the `TradingClient` interface if the new endpoint is a mutation, else add it to TradingDataClient if is it just a query, and add a function implementation, using the function definition from `generated.go`. Example:
type TradingClient interface { // ... SomeNewEndpoint(context.Context, *api.SomeNewEndpointRequest, ...grpc.CallOption) (*api.SomeNewEndpointResponse, error) // ... } // <<MQS>> is one of: Mutation, Query, Subscription func (r *My<<MQS>>Resolver) SomeNewEndpoint(ctx context.Context, someStr string, someInt int64) (*SomeNewEndpointResponse, error) { req := &protoapi.SomeNewEndpointRequest{ // ... } response, err := r.tradingClient.SomeNewEndpoint(ctx, req) if err != nil { return nil, err } return &SomeNewEndpointResponse{/* ... */}, nil }
Now add the new function to the `trading.go` or `trading_data.go` package to actually perform the work
Lastly, make sure mocks are up to date, then run tests: `make mocks test`
Index ¶
- Variables
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type AbstractMarginLevels
- type AccountBalanceResolver
- type AccountDetailsResolver
- type AccountEventResolver
- type AccountUpdateResolver
- type AggregatedLedgerEntryResolver
- type AssetResolver
- type AssetSource
- type AuctionDuration
- type AuctionEventResolver
- type BatchProposal
- type BatchProposalTermsChangeResolver
- type BatchProposalTermsResolver
- type BenefitTierResolver
- type BuiltinAsset
- type BusEvent
- type BusEventType
- type CancelTransferResolver
- type CandleResolver
- type ComplexityRoot
- type CompositePriceConfigurationResolver
- type CompositePriceType
- type Condition
- type Config
- type ContinuousTrading
- type CoreProxyServiceClient
- type CoreSnapshotDataResolver
- type CurrentReferralProgramResolver
- type Data
- type DataSourceDefinitionExternalResolver
- type DataSourceDefinitionInternalResolver
- type DataSourceDefinitionResolver
- type DataSourceKind
- type DataSourceSpec
- type DataSourceSpecConfigurationResolver
- type DataSourceSpecConfigurationTimeResolver
- type DataSourceSpecConfigurationTimeTriggerResolver
- type DataSourceSpecStatus
- type DateRangeResolver
- type DelegationResolver
- type DepositResolver
- type DirectiveRoot
- type DiscountFactors
- type DiscreteTrading
- type DispatchStrategyResolver
- type ERC20MultiSigSignerAddedBundleEdge
- type ERC20MultiSigSignerAddedBundleResolver
- type ERC20MultiSigSignerAddedConnection
- type ERC20MultiSigSignerRemovedBundleEdge
- type ERC20MultiSigSignerRemovedBundleResolver
- type ERC20MultiSigSignerRemovedConnection
- type ERC20SetAssetLimitsBundle
- type ETHAddress
- type EpochParticipation
- type EpochResolver
- type EpochRewardSummaryResolver
- type EpochTimestampsResolver
- type EquityLikeShareWeightPerMarketResolver
- type Erc20
- type Erc20ListAssetBundle
- type Erc20WithdrawalApproval
- type Erc20WithdrawalDetails
- type EthCallSpecResolver
- type EthCallTrigger
- type EthTimeTrigger
- type EthereumEvent
- type EthereumKeyRotationResolver
- type Event
- type ExternalData
- type ExternalDataSourceKind
- type ExternalDataSourceSpec
- type FeeEstimate
- type FeesStatsResolver
- type Filter
- type FundingPaymentResolver
- type FundingPeriodDataPointResolver
- type FundingPeriodResolver
- type FutureProductResolver
- type FutureResolver
- type GameEntity
- type GamePartyScoreFilter
- type GamePartyScoreResolver
- type GameResolver
- type GameTeamScoreFilter
- type GameTeamScoreResolver
- type GovernanceTransferKind
- type GovernanceTransferType
- type GraphServer
- type IcebergOrderResolver
- type IndividualGameEntity
- type InstrumentConfigurationResolver
- type InstrumentResolver
- type InternalDataSourceKind
- type KeyRotationResolver
- type LedgerEntryResolver
- type LiquidationStrategyResolver
- type LiquidityMonitoringParameters
- type LiquidityOrderReferenceResolver
- type LiquidityProviderFeeShare
- type LiquidityProviderResolver
- type LiquidityProviderSLA
- type LiquidityProvisionResolver
- type LiquidityProvisionUpdateResolver
- type LiquiditySLAParametersResolver
- type LossSocialization
- type MarginEstimateResolver
- type MarginLevelsResolver
- type MarginLevelsUpdateResolver
- type MarketDataCommitments
- type MarketDataResolver
- type MarketDepthResolver
- type MarketDepthTrade
- type MarketDepthUpdateResolver
- type MarketEvent
- type MarketLogEvent
- type MarketResolver
- type MarketTick
- type MarketUpdateType
- type NewAssetResolver
- type NewFreeformResolver
- type NewMarketResolver
- type NewSpotMarketResolver
- type NewTransferResolver
- type NodeDataResolver
- type NodeResolver
- type NodeSet
- type NodeSignatureResolver
- type Normaliser
- type ObservableLiquidityProviderFeeShare
- type ObservableLiquidityProviderSLA
- type ObservableMarketDataResolver
- type ObservableMarketDepthResolver
- type ObservableMarketDepthUpdateResolver
- type Oracle
- type OracleDataResolver
- type OracleSpecResolver
- type OrderByMarketAndPartyIdsFilter
- type OrderByMarketIdsFilter
- type OrderByPartyIdsFilter
- type OrderEstimate
- type OrderFilterResolver
- type OrderInfoResolver
- type OrderResolver
- type OrderSubmissionResolver
- type OrderUpdateResolver
- type PaidLiquidityFeesResolver
- type PartyActivityStreakResolver
- type PartyAmountResolver
- type PartyLockedBalanceResolver
- type PartyMarginModeResolver
- type PartyResolver
- type PartyStakeResolver
- type PartyVestingBalanceResolver
- type PartyVestingBalancesSummaryResolver
- type PartyVestingStatsResolver
- type PerpetualDataResolver
- type PerpetualProductResolver
- type PerpetualResolver
- type PositionEstimate
- type PositionResolution
- type PositionResolver
- type PositionUpdateResolver
- type PriceLevelResolver
- type PriceMonitoringBounds
- type PriceMonitoringParameters
- type PriceMonitoringSettings
- type PriceMonitoringTrigger
- type Product
- type ProductConfiguration
- type ProductData
- type PropertyKey
- type ProposalChange
- type ProposalDetailResolver
- type ProposalEdgeResolver
- type ProposalNode
- type ProposalResolver
- type ProposalTermsResolver
- type ProposalVote
- type ProposalVoteConnection
- type ProposalVoteEdge
- type ProposalVoteSide
- type ProposalVotes
- type ProtocolUpgradeProposalResolver
- type ProtocolUpgradeStatus
- type PubKey
- type QuantumRewardsPerEpochResolver
- type QuantumVolumesPerEpochResolver
- type Query
- type QueryResolver
- type RankingScoreResolver
- type RecurringGovernanceTransferResolver
- type RecurringTransferResolver
- type ReferralProgramResolver
- type ReferralSetRefereeResolver
- type ReferralSetResolver
- type ReferralSetStatsResolver
- type ReferrerRewardsGeneratedResolver
- type ResolverRoot
- type RewardFactors
- type RewardResolver
- type RewardSummaryConnection
- type RewardSummaryEdge
- type RewardSummaryFilterResolver
- type RewardSummaryResolver
- type RiskModel
- type SettleDistressed
- type SettlePosition
- type Signer
- type SignerKind
- type SpecBindingForCompositePrice
- type SpotProductResolver
- type SpotResolver
- type StakeLinkingResolver
- type StakingSummary
- type StatisticsResolver
- type StopOrderFilterResolver
- type StopOrderPrice
- type StopOrderResolver
- type StopOrderTrailingPercentOffset
- type StopOrderTrigger
- type Subscription
- type SubscriptionResolver
- type TargetStakeParameters
- type TeamGameEntity
- type TeamMemberStatisticsResolver
- type TeamParticipation
- type TeamRefereeHistoryResolver
- type TeamRefereeResolver
- type TeamResolver
- type TeamStatisticsResolver
- type TimeUpdate
- type TimeWeightedNotionalPositionResolver
- type TradableInstrumentResolver
- type TradeFee
- type TradeResolver
- type TradeSettlement
- type TradeUpdateResolver
- type TradesFilter
- type TradesSubscriptionFilter
- type TradingDataServiceClientV2
- type TransactionResultResolver
- type TransactionSubmitted
- type TransferBalance
- type TransferDirection
- type TransferFee
- type TransferKind
- type TransferNodeResolver
- type TransferResolver
- type TransferResponse
- type TransferResponses
- type TriggerKind
- type UpdateAssetResolver
- type UpdateAssetSource
- type UpdateErc20
- type UpdateInstrumentConfiguration
- type UpdateMarketConfigurationResolver
- type UpdateMarketResolver
- type UpdateMarketRiskParameters
- type UpdateMarketStateResolver
- type UpdateNetworkParameterResolver
- type UpdateProductConfiguration
- type UpdateReferralProgramResolver
- type UpdateSpotInstrumentConfiguration
- type UpdateSpotMarketConfigurationResolver
- type UpdateSpotMarketResolver
- type UpdateVolumeDiscountProgramResolver
- type UpdateVolumeRebateProgram
- type VegaResolverRoot
- func (r *VegaResolverRoot) AccountBalance() AccountBalanceResolver
- func (r *VegaResolverRoot) AccountDetails() AccountDetailsResolver
- func (r *VegaResolverRoot) AccountEvent() AccountEventResolver
- func (r *VegaResolverRoot) AccountUpdate() AccountUpdateResolver
- func (r *VegaResolverRoot) AggregatedLedgerEntry() AggregatedLedgerEntryResolver
- func (r *VegaResolverRoot) Asset() AssetResolver
- func (r *VegaResolverRoot) AuctionEvent() AuctionEventResolver
- func (r *VegaResolverRoot) BatchProposalTerms() BatchProposalTermsResolver
- func (r *VegaResolverRoot) BatchProposalTermsChange() BatchProposalTermsChangeResolver
- func (r *VegaResolverRoot) BenefitTier() BenefitTierResolver
- func (r *VegaResolverRoot) CancelTransfer() CancelTransferResolver
- func (r *VegaResolverRoot) Candle() CandleResolver
- func (r *VegaResolverRoot) CompositePriceConfiguration() CompositePriceConfigurationResolver
- func (r *VegaResolverRoot) CoreSnapshotData() CoreSnapshotDataResolver
- func (r *VegaResolverRoot) CurrentReferralProgram() CurrentReferralProgramResolver
- func (r *VegaResolverRoot) DataSourceDefinition() DataSourceDefinitionResolver
- func (r *VegaResolverRoot) DataSourceDefinitionExternal() DataSourceDefinitionExternalResolver
- func (r *VegaResolverRoot) DataSourceDefinitionInternal() DataSourceDefinitionInternalResolver
- func (r *VegaResolverRoot) DataSourceSpecConfiguration() DataSourceSpecConfigurationResolver
- func (r *VegaResolverRoot) DataSourceSpecConfigurationTime() DataSourceSpecConfigurationTimeResolver
- func (r *VegaResolverRoot) DataSourceSpecConfigurationTimeTrigger() DataSourceSpecConfigurationTimeTriggerResolver
- func (r *VegaResolverRoot) DateRange() DateRangeResolver
- func (r *VegaResolverRoot) Delegation() DelegationResolver
- func (r *VegaResolverRoot) Deposit() DepositResolver
- func (r *VegaResolverRoot) DispatchStrategy() DispatchStrategyResolver
- func (r *VegaResolverRoot) ERC20MultiSigSignerAddedBundle() ERC20MultiSigSignerAddedBundleResolver
- func (r *VegaResolverRoot) ERC20MultiSigSignerRemovedBundle() ERC20MultiSigSignerRemovedBundleResolver
- func (r *VegaResolverRoot) Epoch() EpochResolver
- func (r *VegaResolverRoot) EpochRewardSummary() EpochRewardSummaryResolver
- func (r *VegaResolverRoot) EpochTimestamps() EpochTimestampsResolver
- func (r *VegaResolverRoot) EquityLikeShareWeightPerMarket() EquityLikeShareWeightPerMarketResolver
- func (r *VegaResolverRoot) EthCallSpec() EthCallSpecResolver
- func (r *VegaResolverRoot) EthereumKeyRotation() EthereumKeyRotationResolver
- func (r *VegaResolverRoot) FeesStats() FeesStatsResolver
- func (r *VegaResolverRoot) FundingPayment() FundingPaymentResolver
- func (r *VegaResolverRoot) FundingPeriod() FundingPeriodResolver
- func (r *VegaResolverRoot) FundingPeriodDataPoint() FundingPeriodDataPointResolver
- func (r *VegaResolverRoot) Future() FutureResolver
- func (r *VegaResolverRoot) FutureProduct() FutureProductResolver
- func (r *VegaResolverRoot) Game() GameResolver
- func (r *VegaResolverRoot) GamePartyScore() GamePartyScoreResolver
- func (r *VegaResolverRoot) GameTeamScore() GameTeamScoreResolver
- func (r *VegaResolverRoot) IcebergOrder() IcebergOrderResolver
- func (r *VegaResolverRoot) Instrument() InstrumentResolver
- func (r *VegaResolverRoot) InstrumentConfiguration() InstrumentConfigurationResolver
- func (r *VegaResolverRoot) KeyRotation() KeyRotationResolver
- func (r *VegaResolverRoot) LedgerEntry() LedgerEntryResolver
- func (r *VegaResolverRoot) LiquidationStrategy() LiquidationStrategyResolver
- func (r *VegaResolverRoot) LiquidityOrderReference() LiquidityOrderReferenceResolver
- func (r *VegaResolverRoot) LiquidityProvider() LiquidityProviderResolver
- func (r *VegaResolverRoot) LiquidityProvision() LiquidityProvisionResolver
- func (r *VegaResolverRoot) LiquidityProvisionUpdate() LiquidityProvisionUpdateResolver
- func (r *VegaResolverRoot) LiquiditySLAParameters() LiquiditySLAParametersResolver
- func (r *VegaResolverRoot) MarginEstimate() MarginEstimateResolver
- func (r *VegaResolverRoot) MarginLevels() MarginLevelsResolver
- func (r *VegaResolverRoot) MarginLevelsUpdate() MarginLevelsUpdateResolver
- func (r *VegaResolverRoot) Market() MarketResolver
- func (r *VegaResolverRoot) MarketData() MarketDataResolver
- func (r *VegaResolverRoot) MarketDepth() MarketDepthResolver
- func (r *VegaResolverRoot) MarketDepthUpdate() MarketDepthUpdateResolver
- func (r *VegaResolverRoot) NewAsset() NewAssetResolver
- func (r *VegaResolverRoot) NewFreeform() NewFreeformResolver
- func (r *VegaResolverRoot) NewMarket() NewMarketResolver
- func (r *VegaResolverRoot) NewSpotMarket() NewSpotMarketResolver
- func (r *VegaResolverRoot) NewTransfer() NewTransferResolver
- func (r *VegaResolverRoot) Node() NodeResolver
- func (r *VegaResolverRoot) NodeData() NodeDataResolver
- func (r *VegaResolverRoot) NodeSignature() NodeSignatureResolver
- func (r *VegaResolverRoot) ObservableMarketData() ObservableMarketDataResolver
- func (r *VegaResolverRoot) ObservableMarketDepth() ObservableMarketDepthResolver
- func (r *VegaResolverRoot) ObservableMarketDepthUpdate() ObservableMarketDepthUpdateResolver
- func (r *VegaResolverRoot) OracleData() OracleDataResolver
- func (r *VegaResolverRoot) OracleSpec() OracleSpecResolver
- func (r *VegaResolverRoot) Order() OrderResolver
- func (r *VegaResolverRoot) OrderFilter() OrderFilterResolver
- func (r *VegaResolverRoot) OrderInfo() OrderInfoResolver
- func (r *VegaResolverRoot) OrderSubmission() OrderSubmissionResolver
- func (r *VegaResolverRoot) OrderUpdate() OrderUpdateResolver
- func (r *VegaResolverRoot) PaidLiquidityFees() PaidLiquidityFeesResolver
- func (r *VegaResolverRoot) Party() PartyResolver
- func (r *VegaResolverRoot) PartyActivityStreak() PartyActivityStreakResolver
- func (r *VegaResolverRoot) PartyAmount() PartyAmountResolver
- func (r *VegaResolverRoot) PartyLockedBalance() PartyLockedBalanceResolver
- func (r *VegaResolverRoot) PartyMarginMode() PartyMarginModeResolver
- func (r *VegaResolverRoot) PartyStake() PartyStakeResolver
- func (r *VegaResolverRoot) PartyVestingBalance() PartyVestingBalanceResolver
- func (r *VegaResolverRoot) PartyVestingBalancesSummary() PartyVestingBalancesSummaryResolver
- func (r *VegaResolverRoot) PartyVestingStats() PartyVestingStatsResolver
- func (r *VegaResolverRoot) Perpetual() PerpetualResolver
- func (r *VegaResolverRoot) PerpetualData() PerpetualDataResolver
- func (r *VegaResolverRoot) PerpetualProduct() PerpetualProductResolver
- func (r *VegaResolverRoot) Position() PositionResolver
- func (r *VegaResolverRoot) PositionUpdate() PositionUpdateResolver
- func (r *VegaResolverRoot) PriceLevel() PriceLevelResolver
- func (r *VegaResolverRoot) Proposal() ProposalResolver
- func (r *VegaResolverRoot) ProposalDetail() ProposalDetailResolver
- func (r *VegaResolverRoot) ProposalEdge() ProposalEdgeResolver
- func (r *VegaResolverRoot) ProposalTerms() ProposalTermsResolver
- func (r *VegaResolverRoot) ProtocolUpgradeProposal() ProtocolUpgradeProposalResolver
- func (r *VegaResolverRoot) QuantumRewardsPerEpoch() QuantumRewardsPerEpochResolver
- func (r *VegaResolverRoot) QuantumVolumesPerEpoch() QuantumVolumesPerEpochResolver
- func (r *VegaResolverRoot) Query() QueryResolver
- func (r *VegaResolverRoot) RankingScore() RankingScoreResolver
- func (r *VegaResolverRoot) RecurringGovernanceTransfer() RecurringGovernanceTransferResolver
- func (r *VegaResolverRoot) RecurringTransfer() RecurringTransferResolver
- func (r *VegaResolverRoot) ReferralProgram() ReferralProgramResolver
- func (r *VegaResolverRoot) ReferralSet() ReferralSetResolver
- func (r *VegaResolverRoot) ReferralSetReferee() ReferralSetRefereeResolver
- func (r *VegaResolverRoot) ReferralSetStats() ReferralSetStatsResolver
- func (r *VegaResolverRoot) ReferrerRewardsGenerated() ReferrerRewardsGeneratedResolver
- func (r *VegaResolverRoot) Reward() RewardResolver
- func (r *VegaResolverRoot) RewardSummary() RewardSummaryResolver
- func (r *VegaResolverRoot) RewardSummaryFilter() RewardSummaryFilterResolver
- func (r *VegaResolverRoot) Spot() SpotResolver
- func (r *VegaResolverRoot) SpotProduct() SpotProductResolver
- func (r *VegaResolverRoot) StakeLinking() StakeLinkingResolver
- func (r *VegaResolverRoot) Statistics() StatisticsResolver
- func (r *VegaResolverRoot) StopOrder() StopOrderResolver
- func (r *VegaResolverRoot) StopOrderFilter() StopOrderFilterResolver
- func (r *VegaResolverRoot) Subscription() SubscriptionResolver
- func (r *VegaResolverRoot) Team() TeamResolver
- func (r *VegaResolverRoot) TeamMemberStatistics() TeamMemberStatisticsResolver
- func (r *VegaResolverRoot) TeamReferee() TeamRefereeResolver
- func (r *VegaResolverRoot) TeamRefereeHistory() TeamRefereeHistoryResolver
- func (r *VegaResolverRoot) TeamStatistics() TeamStatisticsResolver
- func (r *VegaResolverRoot) TimeWeightedNotionalPosition() TimeWeightedNotionalPositionResolver
- func (r *VegaResolverRoot) TradableInstrument() TradableInstrumentResolver
- func (r *VegaResolverRoot) Trade() TradeResolver
- func (r *VegaResolverRoot) TradeUpdate() TradeUpdateResolver
- func (r *VegaResolverRoot) TransactionResult() TransactionResultResolver
- func (r *VegaResolverRoot) Transfer() TransferResolver
- func (r *VegaResolverRoot) TransferNode() TransferNodeResolver
- func (r *VegaResolverRoot) UpdateAsset() UpdateAssetResolver
- func (r *VegaResolverRoot) UpdateMarket() UpdateMarketResolver
- func (r *VegaResolverRoot) UpdateMarketConfiguration() UpdateMarketConfigurationResolver
- func (r *VegaResolverRoot) UpdateMarketState() UpdateMarketStateResolver
- func (r *VegaResolverRoot) UpdateNetworkParameter() UpdateNetworkParameterResolver
- func (r *VegaResolverRoot) UpdateReferralProgram() UpdateReferralProgramResolver
- func (r *VegaResolverRoot) UpdateSpotMarket() UpdateSpotMarketResolver
- func (r *VegaResolverRoot) UpdateSpotMarketConfiguration() UpdateSpotMarketConfigurationResolver
- func (r *VegaResolverRoot) UpdateVolumeDiscountProgram() UpdateVolumeDiscountProgramResolver
- func (r *VegaResolverRoot) VolumeBenefitTier() VolumeBenefitTierResolver
- func (r *VegaResolverRoot) VolumeDiscountProgram() VolumeDiscountProgramResolver
- func (r *VegaResolverRoot) VolumeDiscountStats() VolumeDiscountStatsResolver
- func (r *VegaResolverRoot) VolumeRebateProgram() VolumeRebateProgramResolver
- func (r *VegaResolverRoot) VolumeRebateStats() VolumeRebateStatsResolver
- func (r *VegaResolverRoot) Vote() VoteResolver
- func (r *VegaResolverRoot) Withdrawal() WithdrawalResolver
- type VolumeBenefitTierResolver
- type VolumeDiscountProgramResolver
- type VolumeDiscountStatsResolver
- type VolumeRebateBenefitTier
- type VolumeRebateProgramResolver
- type VolumeRebateStatsResolver
- type VoteResolver
- type WithdrawalDetails
- type WithdrawalResolver
Constants ¶
This section is empty.
Variables ¶
var ( // ErrNilTradingMode ... ErrNilTradingMode = errors.New("nil trading mode") // ErrAmbiguousTradingMode ... ErrAmbiguousTradingMode = errors.New("more than one trading mode selected") // ErrUnimplementedTradingMode ... ErrUnimplementedTradingMode = errors.New("unimplemented trading mode") // ErrNilProduct ... ErrNilProduct = errors.New("nil product") // ErrNilRiskModel ... ErrNilRiskModel = errors.New("nil risk model") // ErrInvalidChange ... ErrInvalidChange = errors.New("nil update market, new market and update network") // ErrNilAssetSource returned when an asset source is not specified at creation. ErrNilAssetSource = errors.New("nil asset source") // ErrUnimplementedAssetSource returned when an asset source specified at creation is not recognised. ErrUnimplementedAssetSource = errors.New("unimplemented asset source") // ErrMultipleProposalChangesSpecified is raised when multiple proposal changes are set // (non-null) for a singe proposal terms. ErrMultipleProposalChangesSpecified = errors.New("multiple proposal changes specified") // ErrMultipleAssetSourcesSpecified is raised when multiple asset source are specified. ErrMultipleAssetSourcesSpecified = errors.New("multiple asset sources specified") // ErrNilPriceMonitoringParameters ... ErrNilPriceMonitoringParameters = errors.New("nil price monitoring parameters") )
var ( // ErrMissingIDOrReference is returned when neither id nor reference has been supplied in the query. ErrMissingIDOrReference = errors.New("missing id or reference") // ErrMissingNodeID is returned when no node id has been supplied in the query. ErrMissingNodeID = errors.New("missing node id") // ErrInvalidVotesSubscription is returned if neither proposal ID nor party ID is specified. ErrInvalidVotesSubscription = errors.New("invalid subscription, either proposal or party ID required") // ErrInvalidProposal is returned when invalid governance data is received by proposal resolver. ErrInvalidProposal = errors.New("invalid proposal") // ErrInvalidStopOrder is returned when an invalid stop order is received by the stop order resolver. ErrInvalidStopOrder = errors.New("invalid stop order") )
var AllBusEventType = []BusEventType{ BusEventTypeTimeUpdate, BusEventTypeDeposit, BusEventTypeWithdrawal, BusEventTypeTransactionResult, }
var AllCompositePriceType = []CompositePriceType{ CompositePriceTypeCompositePriceTypeWeighted, CompositePriceTypeCompositePriceTypeMedian, CompositePriceTypeCompositePriceTypeLastTrade, }
var AllDataSourceSpecStatus = []DataSourceSpecStatus{ DataSourceSpecStatusStatusActive, DataSourceSpecStatusStatusDeactivated, }
var AllGovernanceTransferType = []GovernanceTransferType{ GovernanceTransferTypeGovernanceTransferTypeUnspecified, GovernanceTransferTypeGovernanceTransferTypeAllOrNothing, GovernanceTransferTypeGovernanceTransferTypeBestEffort, }
var AllMarketUpdateType = []MarketUpdateType{ MarketUpdateTypeMarketStateUpdateTypeUnspecified, MarketUpdateTypeMarketStateUpdateTypeTerminate, MarketUpdateTypeMarketStateUpdateTypeSuspend, MarketUpdateTypeMarketStateUpdateTypeResume, }
var AllTransferDirection = []TransferDirection{ TransferDirectionTo, TransferDirectionFrom, TransferDirectionToOrFrom, }
var ErrUnsupportedProduct = errors.New("unsupported product")
var ErrUnsupportedProposalTermsChanges = errors.New("unsupported proposal terms changes")
var ErrUnsupportedTransferKind = errors.New("unsupported transfer kind")
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type AbstractMarginLevels ¶ added in v0.74.0
type AbstractMarginLevels struct { // Market in which the margin is required for this party Market *vega.Market `json:"market"` // Asset for the current margins Asset *vega.Asset `json:"asset"` // Minimal margin for the position to be maintained in the network (unsigned integer) MaintenanceLevel string `json:"maintenanceLevel"` // If the margin is between maintenance and search, the network will initiate a collateral search, expressed as unsigned integer SearchLevel string `json:"searchLevel"` // This is the minimum margin required for a party to place a new order on the network, expressed as unsigned integer InitialLevel string `json:"initialLevel"` // When in isolated margin, the required order margin level, otherwise, 0 OrderMarginLevel string `json:"orderMarginLevel"` // If the margin of the party is greater than this level, then collateral will be released from the margin account into // the general account of the party for the given asset. CollateralReleaseLevel string `json:"collateralReleaseLevel"` // Margin mode of the party, cross margin or isolated margin MarginMode vega.MarginMode `json:"marginMode"` // Margin factor, only relevant for isolated margin mode, else 0 MarginFactor string `json:"marginFactor"` }
Margins for a hypothetical position not related to any existing party
type AccountBalanceResolver ¶ added in v0.59.0
type AccountBalanceResolver interface { Asset(ctx context.Context, obj *v2.AccountBalance) (*vega.Asset, error) Market(ctx context.Context, obj *v2.AccountBalance) (*vega.Market, error) Party(ctx context.Context, obj *v2.AccountBalance) (*vega.Party, error) ParentPartyID(ctx context.Context, obj *v2.AccountBalance) (*vega.Party, error) }
type AccountDetailsResolver ¶ added in v0.56.0
type AccountEventResolver ¶ added in v0.59.0
type AccountUpdateResolver ¶ added in v0.55.0
type AggregatedLedgerEntryResolver ¶ added in v0.63.0
type AssetResolver ¶
type AssetResolver interface { Name(ctx context.Context, obj *vega.Asset) (string, error) Symbol(ctx context.Context, obj *vega.Asset) (string, error) Decimals(ctx context.Context, obj *vega.Asset) (int, error) Quantum(ctx context.Context, obj *vega.Asset) (string, error) Source(ctx context.Context, obj *vega.Asset) (AssetSource, error) InfrastructureFeeAccount(ctx context.Context, obj *vega.Asset) (*v2.AccountBalance, error) GlobalRewardPoolAccount(ctx context.Context, obj *vega.Asset) (*v2.AccountBalance, error) GlobalInsuranceAccount(ctx context.Context, obj *vega.Asset) (*v2.AccountBalance, error) NetworkTreasuryAccount(ctx context.Context, obj *vega.Asset) (*v2.AccountBalance, error) TakerFeeRewardAccount(ctx context.Context, obj *vega.Asset) (*v2.AccountBalance, error) MakerFeeRewardAccount(ctx context.Context, obj *vega.Asset) (*v2.AccountBalance, error) LpFeeRewardAccount(ctx context.Context, obj *vega.Asset) (*v2.AccountBalance, error) MarketProposerRewardAccount(ctx context.Context, obj *vega.Asset) (*v2.AccountBalance, error) }
type AssetSource ¶
type AssetSource interface {
IsAssetSource()
}
One of the possible asset sources
func AssetSourceFromProto ¶
func AssetSourceFromProto(pdetails *types.AssetDetails) (AssetSource, error)
type AuctionDuration ¶
type AuctionDuration struct { // Duration of the auction in seconds DurationSecs int `json:"durationSecs"` // Target uncrossing trading volume Volume int `json:"volume"` }
An auction duration is used to configure 3 auction periods: 1. `duration > 0`, `volume == 0`: The auction will last for at least N seconds. 2. `duration == 0`, `volume > 0`: The auction will end once the given volume will match at uncrossing. 3. `duration > 0`, `volume > 0`: The auction will take at least N seconds, but can end sooner if the market can trade a certain volume.
type AuctionEventResolver ¶
type BatchProposal ¶ added in v0.74.0
type BatchProposal struct { // Proposal ID that is provided by Vega once proposal reaches the network ID *string `json:"id,omitempty"` // A UUID reference to aid tracking proposals on Vega Reference string `json:"reference"` // Party that prepared the proposal Party *vega.Party `json:"party"` // State of the proposal State vega.Proposal_State `json:"state"` // RFC3339Nano time and date when the proposal reached the network Datetime int64 `json:"datetime"` // Terms of all the proposals in the batch BatchTerms *vega.BatchProposalTerms `json:"batchTerms,omitempty"` // Rationale behind the proposal Rationale *vega.ProposalRationale `json:"rationale"` // Votes cast for this proposal Votes *ProposalVotes `json:"votes"` // Reason the proposal was rejected RejectionReason *vega.ProposalError `json:"rejectionReason,omitempty"` // Details of the rejection reason ErrorDetails *string `json:"errorDetails,omitempty"` // Required majority for this proposal to succeed RequiredMajority string `json:"requiredMajority"` // Required participation for this proposal to succeed RequiredParticipation string `json:"requiredParticipation"` // Equity-like share required for a market amendment proposal to be enacted, represented as a fraction that can be converted to a percentage. If not met, the proposal will not be enacted RequiredLpMajority *string `json:"requiredLpMajority,omitempty"` // The market share of LPs' equity-like share that must take part in a market amendment vote for the proposal to pass. This means the votes of LPs that have submitted more liquidity to that market, or have been LPs from the start carry more weight. If it requires 50% of a market's equity-like share for a majority, and the full batch of proposals receives all YES votes but only LPs with 49% of the equity-like share voted, the proposal will not pass RequiredLpParticipation *string `json:"requiredLpParticipation,omitempty"` // Proposals that are part of the batch SubProposals []*vega.Proposal `json:"subProposals,omitempty"` }
func (BatchProposal) IsProposalNode ¶ added in v0.74.0
func (BatchProposal) IsProposalNode()
type BatchProposalTermsChangeResolver ¶ added in v0.74.0
type BatchProposalTermsChangeResolver interface { EnactmentDatetime(ctx context.Context, obj *vega.BatchProposalTermsChange) (*int64, error) ValidationDatetime(ctx context.Context, obj *vega.BatchProposalTermsChange) (*int64, error) Change(ctx context.Context, obj *vega.BatchProposalTermsChange) (ProposalChange, error) }
type BatchProposalTermsResolver ¶ added in v0.74.0
type BenefitTierResolver ¶ added in v0.73.0
type BenefitTierResolver interface { MinimumEpochs(ctx context.Context, obj *vega.BenefitTier) (int, error) Referrals(ctx context.Context, obj *vega.BenefitTier) (*DiscountFactors, error) ReferralRewardFactors(ctx context.Context, obj *vega.BenefitTier) (*RewardFactors, error) }
type BuiltinAsset ¶
type BuiltinAsset struct { // Maximum amount that can be requested by a party through the built-in asset faucet at a time MaxFaucetAmountMint string `json:"maxFaucetAmountMint"` }
A Vega builtin asset, mostly for testing purpose
func BuiltinAssetFromProto ¶
func BuiltinAssetFromProto(ba *types.BuiltinAsset) *BuiltinAsset
func (BuiltinAsset) IsAssetSource ¶
func (BuiltinAsset) IsAssetSource()
type BusEvent ¶
type BusEvent struct { // The ID for this event ID string `json:"id"` // The block hash Block string `json:"block"` // The type of event Type BusEventType `json:"type"` // The payload - the wrapped event Event Event `json:"event"` }
type BusEventType ¶
type BusEventType string
Event types
const ( // Vega Time has changed BusEventTypeTimeUpdate BusEventType = "TimeUpdate" // Collateral has deposited in to this Vega network via the bridge BusEventTypeDeposit BusEventType = "Deposit" // Collateral has been withdrawn from this Vega network via the bridge BusEventTypeWithdrawal BusEventType = "Withdrawal" // The results from processing at transaction BusEventTypeTransactionResult BusEventType = "TransactionResult" )
func (BusEventType) IsValid ¶
func (e BusEventType) IsValid() bool
func (BusEventType) MarshalGQL ¶
func (e BusEventType) MarshalGQL(w io.Writer)
func (BusEventType) String ¶
func (e BusEventType) String() string
func (*BusEventType) UnmarshalGQL ¶
func (e *BusEventType) UnmarshalGQL(v interface{}) error
type CancelTransferResolver ¶ added in v0.72.0
type CandleResolver ¶
type ComplexityRoot ¶
type ComplexityRoot struct { AMM struct { AmmPartyId func(childComplexity int) int Commitment func(childComplexity int) int Id func(childComplexity int) int MarketId func(childComplexity int) int Parameters func(childComplexity int) int PartyId func(childComplexity int) int ProposedFee func(childComplexity int) int Status func(childComplexity int) int StatusReason func(childComplexity int) int } AMMConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } AMMEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } AbstractMarginLevels struct { Asset func(childComplexity int) int CollateralReleaseLevel func(childComplexity int) int InitialLevel func(childComplexity int) int MaintenanceLevel func(childComplexity int) int MarginFactor func(childComplexity int) int MarginMode func(childComplexity int) int Market func(childComplexity int) int OrderMarginLevel func(childComplexity int) int SearchLevel func(childComplexity int) int } AccountBalance struct { Asset func(childComplexity int) int Balance func(childComplexity int) int Market func(childComplexity int) int ParentPartyID func(childComplexity int) int Party func(childComplexity int) int Type func(childComplexity int) int } AccountDetails struct { AssetId func(childComplexity int) int MarketId func(childComplexity int) int PartyID func(childComplexity int) int Type func(childComplexity int) int } AccountEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } AccountEvent struct { Asset func(childComplexity int) int Balance func(childComplexity int) int Market func(childComplexity int) int Party func(childComplexity int) int Type func(childComplexity int) int } AccountUpdate struct { AssetID func(childComplexity int) int Balance func(childComplexity int) int MarketId func(childComplexity int) int PartyID func(childComplexity int) int Type func(childComplexity int) int } AccountsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } AggregatedBalance struct { AccountType func(childComplexity int) int AssetId func(childComplexity int) int Balance func(childComplexity int) int MarketId func(childComplexity int) int PartyId func(childComplexity int) int Timestamp func(childComplexity int) int } AggregatedBalanceConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } AggregatedBalanceEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } AggregatedLedgerEntriesConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } AggregatedLedgerEntriesEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } AggregatedLedgerEntry struct { AssetId func(childComplexity int) int FromAccountBalance func(childComplexity int) int FromAccountMarketId func(childComplexity int) int FromAccountPartyId func(childComplexity int) int FromAccountType func(childComplexity int) int Quantity func(childComplexity int) int ToAccountBalance func(childComplexity int) int ToAccountMarketId func(childComplexity int) int ToAccountPartyId func(childComplexity int) int ToAccountType func(childComplexity int) int TransferId func(childComplexity int) int TransferType func(childComplexity int) int VegaTime func(childComplexity int) int } Asset struct { Decimals func(childComplexity int) int GlobalInsuranceAccount func(childComplexity int) int GlobalRewardPoolAccount func(childComplexity int) int Id func(childComplexity int) int InfrastructureFeeAccount func(childComplexity int) int LpFeeRewardAccount func(childComplexity int) int MakerFeeRewardAccount func(childComplexity int) int MarketProposerRewardAccount func(childComplexity int) int Name func(childComplexity int) int NetworkTreasuryAccount func(childComplexity int) int Quantum func(childComplexity int) int Source func(childComplexity int) int Status func(childComplexity int) int Symbol func(childComplexity int) int TakerFeeRewardAccount func(childComplexity int) int } AssetEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } AssetsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } AuctionDuration struct { DurationSecs func(childComplexity int) int Volume func(childComplexity int) int } AuctionEvent struct { AuctionEnd func(childComplexity int) int AuctionStart func(childComplexity int) int ExtensionTrigger func(childComplexity int) int Leave func(childComplexity int) int MarketId func(childComplexity int) int OpeningAuction func(childComplexity int) int Trigger func(childComplexity int) int } BatchProposal struct { BatchTerms func(childComplexity int) int Datetime func(childComplexity int) int ErrorDetails func(childComplexity int) int ID func(childComplexity int) int Party func(childComplexity int) int Rationale func(childComplexity int) int Reference func(childComplexity int) int RejectionReason func(childComplexity int) int RequiredLpMajority func(childComplexity int) int RequiredLpParticipation func(childComplexity int) int RequiredMajority func(childComplexity int) int RequiredParticipation func(childComplexity int) int State func(childComplexity int) int SubProposals func(childComplexity int) int Votes func(childComplexity int) int } BatchProposalTerms struct { Changes func(childComplexity int) int ClosingDatetime func(childComplexity int) int } BatchProposalTermsChange struct { Change func(childComplexity int) int EnactmentDatetime func(childComplexity int) int ValidationDatetime func(childComplexity int) int } BenefitTier struct { MinimumEpochs func(childComplexity int) int MinimumRunningNotionalTakerVolume func(childComplexity int) int ReferralDiscountFactor func(childComplexity int) int ReferralRewardFactor func(childComplexity int) int ReferralRewardFactors func(childComplexity int) int Referrals func(childComplexity int) int } BuiltinAsset struct { MaxFaucetAmountMint func(childComplexity int) int } BusEvent struct { Block func(childComplexity int) int Event func(childComplexity int) int ID func(childComplexity int) int Type func(childComplexity int) int } CancelTransfer struct { TransferID func(childComplexity int) int } Candle struct { Close func(childComplexity int) int High func(childComplexity int) int LastUpdateInPeriod func(childComplexity int) int Low func(childComplexity int) int Notional func(childComplexity int) int Open func(childComplexity int) int PeriodStart func(childComplexity int) int Volume func(childComplexity int) int } CandleDataConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } CandleEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } CollateralIncreaseEstimate struct { BestCase func(childComplexity int) int WorstCase func(childComplexity int) int } CompositePriceConfiguration struct { CashAmount func(childComplexity int) int CompositePriceType func(childComplexity int) int DataSourcesSpec func(childComplexity int) int DataSourcesSpecBinding func(childComplexity int) int DecayPower func(childComplexity int) int DecayWeight func(childComplexity int) int SourceStalenessTolerance func(childComplexity int) int SourceWeights func(childComplexity int) int } CompositePriceSource struct { LastUpdated func(childComplexity int) int Price func(childComplexity int) int PriceSource func(childComplexity int) int } CompositePriceState struct { PriceSources func(childComplexity int) int } ConcentratedLiquidityParameters struct { Base func(childComplexity int) int LeverageAtLowerBound func(childComplexity int) int LeverageAtUpperBound func(childComplexity int) int LowerBound func(childComplexity int) int UpperBound func(childComplexity int) int } Condition struct { Operator func(childComplexity int) int Value func(childComplexity int) int } ContinuousTrading struct { TickSize func(childComplexity int) int } CoreSnapshotConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } CoreSnapshotData struct { BlockHash func(childComplexity int) int BlockHeight func(childComplexity int) int VegaCoreVersion func(childComplexity int) int } CoreSnapshotEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } CurrentReferralProgram struct { BenefitTiers func(childComplexity int) int EndOfProgramTimestamp func(childComplexity int) int EndedAt func(childComplexity int) int Id func(childComplexity int) int StakingTiers func(childComplexity int) int Version func(childComplexity int) int WindowLength func(childComplexity int) int } Data struct { BroadcastAt func(childComplexity int) int Data func(childComplexity int) int MatchedSpecIds func(childComplexity int) int MetaData func(childComplexity int) int Signers func(childComplexity int) int } DataSourceDefinition struct { SourceType func(childComplexity int) int } DataSourceDefinitionExternal struct { SourceType func(childComplexity int) int } DataSourceDefinitionInternal struct { SourceType func(childComplexity int) int } DataSourceSpec struct { CreatedAt func(childComplexity int) int Data func(childComplexity int) int ID func(childComplexity int) int Status func(childComplexity int) int UpdatedAt func(childComplexity int) int } DataSourceSpecConfiguration struct { Filters func(childComplexity int) int Signers func(childComplexity int) int } DataSourceSpecConfigurationTime struct { Conditions func(childComplexity int) int } DataSourceSpecConfigurationTimeTrigger struct { Conditions func(childComplexity int) int Triggers func(childComplexity int) int } DataSourceSpecPerpetualBinding struct { SettlementDataProperty func(childComplexity int) int SettlementScheduleProperty func(childComplexity int) int } DataSourceSpecToFutureBinding struct { SettlementDataProperty func(childComplexity int) int TradingTerminationProperty func(childComplexity int) int } Delegation struct { Amount func(childComplexity int) int Epoch func(childComplexity int) int Node func(childComplexity int) int Party func(childComplexity int) int } DelegationEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } DelegationsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } Deposit struct { Amount func(childComplexity int) int Asset func(childComplexity int) int CreatedTimestamp func(childComplexity int) int CreditedTimestamp func(childComplexity int) int Id func(childComplexity int) int Party func(childComplexity int) int Status func(childComplexity int) int TxHash func(childComplexity int) int } DepositEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } DepositsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } DiscountFactors struct { InfrastructureFactor func(childComplexity int) int LiquidityFactor func(childComplexity int) int MakerFactor func(childComplexity int) int } DiscreteTrading struct { Duration func(childComplexity int) int TickSize func(childComplexity int) int } DispatchStrategy struct { CapRewardFeeMultiple func(childComplexity int) int DispatchMetric func(childComplexity int) int DispatchMetricAssetID func(childComplexity int) int DistributionStrategy func(childComplexity int) int EntityScope func(childComplexity int) int IndividualScope func(childComplexity int) int LockPeriod func(childComplexity int) int MarketIdsInScope func(childComplexity int) int NTopPerformers func(childComplexity int) int NotionalTimeWeightedAveragePositionRequirement func(childComplexity int) int RankTable func(childComplexity int) int StakingRequirement func(childComplexity int) int TeamScope func(childComplexity int) int TransferInterval func(childComplexity int) int WindowLength func(childComplexity int) int } ERC20 struct { ChainID func(childComplexity int) int ContractAddress func(childComplexity int) int LifetimeLimit func(childComplexity int) int WithdrawThreshold func(childComplexity int) int } ERC20MultiSigSignerAddedBundle struct { ChainId func(childComplexity int) int EpochSeq func(childComplexity int) int NewSigner func(childComplexity int) int Nonce func(childComplexity int) int Signatures func(childComplexity int) int Submitter func(childComplexity int) int Timestamp func(childComplexity int) int } ERC20MultiSigSignerAddedBundleEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } ERC20MultiSigSignerAddedConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } ERC20MultiSigSignerRemovedBundle struct { ChainId func(childComplexity int) int EpochSeq func(childComplexity int) int Nonce func(childComplexity int) int OldSigner func(childComplexity int) int Signatures func(childComplexity int) int Submitter func(childComplexity int) int Timestamp func(childComplexity int) int } ERC20MultiSigSignerRemovedBundleEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } ERC20MultiSigSignerRemovedConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } ERC20SetAssetLimitsBundle struct { AssetSource func(childComplexity int) int LifetimeLimit func(childComplexity int) int Nonce func(childComplexity int) int Signatures func(childComplexity int) int Threshold func(childComplexity int) int VegaAssetID func(childComplexity int) int } ETHAddress struct { Address func(childComplexity int) int } Entities struct { Accounts func(childComplexity int) int Assets func(childComplexity int) int BalanceChanges func(childComplexity int) int Delegations func(childComplexity int) int Deposits func(childComplexity int) int Erc20MultiSigSignerAddedBundles func(childComplexity int) int Erc20MultiSigSignerRemovedBundles func(childComplexity int) int EthereumKeyRotations func(childComplexity int) int KeyRotations func(childComplexity int) int LedgerEntries func(childComplexity int) int LiquidityProvisions func(childComplexity int) int MarginLevels func(childComplexity int) int Markets func(childComplexity int) int NetworkParameters func(childComplexity int) int NodeSignatures func(childComplexity int) int Nodes func(childComplexity int) int OracleData func(childComplexity int) int OracleSpecs func(childComplexity int) int Orders func(childComplexity int) int Parties func(childComplexity int) int Positions func(childComplexity int) int Proposals func(childComplexity int) int ProtocolUpgradeProposals func(childComplexity int) int Rewards func(childComplexity int) int Trades func(childComplexity int) int Transfers func(childComplexity int) int Votes func(childComplexity int) int Withdrawals func(childComplexity int) int } Epoch struct { DelegationsConnection func(childComplexity int, partyID *string, nodeID *string, pagination *v2.Pagination) int ID func(childComplexity int) int Timestamps func(childComplexity int) int ValidatorsConnection func(childComplexity int, pagination *v2.Pagination) int } EpochData struct { Offline func(childComplexity int) int Online func(childComplexity int) int Total func(childComplexity int) int } EpochParticipation struct { Epoch func(childComplexity int) int Offline func(childComplexity int) int Online func(childComplexity int) int TotalRewards func(childComplexity int) int } EpochRewardSummary struct { Amount func(childComplexity int) int AssetId func(childComplexity int) int Epoch func(childComplexity int) int MarketId func(childComplexity int) int RewardType func(childComplexity int) int } EpochRewardSummaryConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } EpochRewardSummaryEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } EpochTimestamps struct { End func(childComplexity int) int Expiry func(childComplexity int) int FirstBlock func(childComplexity int) int LastBlock func(childComplexity int) int Start func(childComplexity int) int } EquityLikeShareWeight func(childComplexity int) int MarketId func(childComplexity int) int } Erc20ListAssetBundle struct { AssetSource func(childComplexity int) int Nonce func(childComplexity int) int Signatures func(childComplexity int) int VegaAssetID func(childComplexity int) int } Erc20WithdrawalApproval struct { Amount func(childComplexity int) int AssetSource func(childComplexity int) int Creation func(childComplexity int) int Nonce func(childComplexity int) int Signatures func(childComplexity int) int SourceChainID func(childComplexity int) int TargetAddress func(childComplexity int) int } Erc20WithdrawalDetails struct { ReceiverAddress func(childComplexity int) int } EstimatedAMMBounds struct { AmmError func(childComplexity int) int LiquidationPriceAtLower func(childComplexity int) int LiquidationPriceAtUpper func(childComplexity int) int LossOnCommitmentAtLower func(childComplexity int) int LossOnCommitmentAtUpper func(childComplexity int) int PositionSizeAtLower func(childComplexity int) int PositionSizeAtUpper func(childComplexity int) int } EstimatedTransferFee struct { Discount func(childComplexity int) int Fee func(childComplexity int) int } EthCallSpec struct { Abi func(childComplexity int) int Address func(childComplexity int) int Args func(childComplexity int) int Filters func(childComplexity int) int Method func(childComplexity int) int Normalisers func(childComplexity int) int RequiredConfirmations func(childComplexity int) int SourceChainID func(childComplexity int) int Trigger func(childComplexity int) int } EthCallTrigger struct { Trigger func(childComplexity int) int } EthTimeTrigger struct { Every func(childComplexity int) int Initial func(childComplexity int) int Until func(childComplexity int) int } EthereumEvent struct { ContractID func(childComplexity int) int Event func(childComplexity int) int } EthereumKeyRotation struct { BlockHeight func(childComplexity int) int NewAddress func(childComplexity int) int NodeId func(childComplexity int) int OldAddress func(childComplexity int) int } EthereumKeyRotationEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } EthereumKeyRotationsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } ExternalData struct { Data func(childComplexity int) int } ExternalDataSourceSpec struct { Spec func(childComplexity int) int } FeeEstimate struct { Fees func(childComplexity int) int TotalFeeAmount func(childComplexity int) int } FeeFactors struct { BuyBackFee func(childComplexity int) int InfrastructureFee func(childComplexity int) int LiquidityFee func(childComplexity int) int MakerFee func(childComplexity int) int TreasuryFee func(childComplexity int) int } Fees struct { Factors func(childComplexity int) int LiquidityFeeSettings func(childComplexity int) int } FeesStats struct { AssetID func(childComplexity int) int Epoch func(childComplexity int) int MakerFeesGenerated func(childComplexity int) int MarketID func(childComplexity int) int RefereesDiscountApplied func(childComplexity int) int ReferrerRewardsGenerated func(childComplexity int) int TotalMakerFeesReceived func(childComplexity int) int TotalRewardsReceived func(childComplexity int) int VolumeDiscountApplied func(childComplexity int) int } FeesStatsForParty struct { AssetId func(childComplexity int) int RefereesDiscountApplied func(childComplexity int) int TotalMakerFeesReceived func(childComplexity int) int TotalRewardsReceived func(childComplexity int) int VolumeDiscountApplied func(childComplexity int) int } Filter struct { Conditions func(childComplexity int) int Key func(childComplexity int) int } FundingPayment struct { Amount func(childComplexity int) int FundingPeriodSeq func(childComplexity int) int MarketId func(childComplexity int) int PartyId func(childComplexity int) int Timestamp func(childComplexity int) int } FundingPaymentConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } FundingPaymentEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } FundingPeriod struct { EndTime func(childComplexity int) int ExternalTwap func(childComplexity int) int FundingPayment func(childComplexity int) int FundingRate func(childComplexity int) int InternalTwap func(childComplexity int) int MarketId func(childComplexity int) int Seq func(childComplexity int) int StartTime func(childComplexity int) int } FundingPeriodConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } FundingPeriodDataPoint struct { DataPointSource func(childComplexity int) int MarketId func(childComplexity int) int Price func(childComplexity int) int Seq func(childComplexity int) int Timestamp func(childComplexity int) int Twap func(childComplexity int) int } FundingPeriodDataPointConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } FundingPeriodDataPointEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } FundingPeriodEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } Future struct { Cap func(childComplexity int) int DataSourceSpecBinding func(childComplexity int) int DataSourceSpecForSettlementData func(childComplexity int) int DataSourceSpecForTradingTermination func(childComplexity int) int QuoteName func(childComplexity int) int SettlementAsset func(childComplexity int) int } FutureCap struct { BinarySettlement func(childComplexity int) int FullyCollateralised func(childComplexity int) int MaxPrice func(childComplexity int) int } FutureProduct struct { Cap func(childComplexity int) int DataSourceSpecBinding func(childComplexity int) int DataSourceSpecForSettlementData func(childComplexity int) int DataSourceSpecForTradingTermination func(childComplexity int) int QuoteName func(childComplexity int) int SettlementAsset func(childComplexity int) int } Game struct { Entities func(childComplexity int) int Epoch func(childComplexity int) int Id func(childComplexity int) int NumberOfParticipants func(childComplexity int) int RewardAssetId func(childComplexity int) int } GameEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } GamePartyScore struct { EpochID func(childComplexity int) int GameId func(childComplexity int) int IsEligible func(childComplexity int) int OpenVolume func(childComplexity int) int PartyID func(childComplexity int) int Rank func(childComplexity int) int Score func(childComplexity int) int StakingBalance func(childComplexity int) int TeamId func(childComplexity int) int Time func(childComplexity int) int TotalFeesPaid func(childComplexity int) int } GamePartyScoreConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } GamePartyScoreEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } GameTeamScore struct { EpochID func(childComplexity int) int GameId func(childComplexity int) int Score func(childComplexity int) int TeamId func(childComplexity int) int Time func(childComplexity int) int } GameTeamScoreConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } GameTeamScoreEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } GamesConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } HistorySegment struct { FromHeight func(childComplexity int) int HistorySegmentId func(childComplexity int) int ToHeight func(childComplexity int) int } IcebergOrder struct { MinimumVisibleSize func(childComplexity int) int PeakSize func(childComplexity int) int ReservedRemaining func(childComplexity int) int } IndividualGameEntity struct { Individual func(childComplexity int) int Rank func(childComplexity int) int RewardEarned func(childComplexity int) int RewardEarnedQuantum func(childComplexity int) int RewardMetric func(childComplexity int) int TotalRewardsEarned func(childComplexity int) int TotalRewardsEarnedQuantum func(childComplexity int) int Volume func(childComplexity int) int } Instrument struct { Code func(childComplexity int) int Id func(childComplexity int) int Metadata func(childComplexity int) int Name func(childComplexity int) int Product func(childComplexity int) int } InstrumentConfiguration struct { Code func(childComplexity int) int FutureProduct func(childComplexity int) int Name func(childComplexity int) int Product func(childComplexity int) int } InstrumentMetadata struct { Tags func(childComplexity int) int } InternalTimeTrigger struct { Every func(childComplexity int) int Initial func(childComplexity int) int } KeyRotation struct { BlockHeight func(childComplexity int) int NewPubKey func(childComplexity int) int NodeId func(childComplexity int) int OldPubKey func(childComplexity int) int } KeyRotationConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } KeyRotationEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } LedgerEntry struct { Amount func(childComplexity int) int FromAccountBalance func(childComplexity int) int FromAccountID func(childComplexity int) int Timestamp func(childComplexity int) int ToAccountBalance func(childComplexity int) int ToAccountID func(childComplexity int) int Type func(childComplexity int) int } LiquidationEstimate struct { BestCase func(childComplexity int) int WorstCase func(childComplexity int) int } LiquidationPrice struct { IncludingBuyOrders func(childComplexity int) int IncludingSellOrders func(childComplexity int) int OpenVolumeOnly func(childComplexity int) int } LiquidationStrategy struct { DisposalFraction func(childComplexity int) int DisposalSlippageRange func(childComplexity int) int DisposalTimeStep func(childComplexity int) int FullDisposalSize func(childComplexity int) int MaxFractionConsumed func(childComplexity int) int } LiquidityFeeSettings struct { FeeConstant func(childComplexity int) int Method func(childComplexity int) int } LiquidityMonitoringParameters struct { TargetStakeParameters func(childComplexity int) int } LiquidityOrder struct { Offset func(childComplexity int) int Proportion func(childComplexity int) int Reference func(childComplexity int) int } LiquidityOrderReference struct { LiquidityOrder func(childComplexity int) int Order func(childComplexity int) int } LiquidityProvider struct { FeeShare func(childComplexity int) int MarketId func(childComplexity int) int PartyId func(childComplexity int) int SLA func(childComplexity int) int } LiquidityProviderConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } LiquidityProviderEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } AverageEntryValuation func(childComplexity int) int AverageScore func(childComplexity int) int EquityLikeShare func(childComplexity int) int Party func(childComplexity int) int VirtualStake func(childComplexity int) int } LiquidityProviderSLA struct { CurrentEpochFractionOfTimeOnBook func(childComplexity int) int HysteresisPeriodFeePenalties func(childComplexity int) int LastEpochBondPenalty func(childComplexity int) int LastEpochFeePenalty func(childComplexity int) int LastEpochFractionOfTimeOnBook func(childComplexity int) int NotionalVolumeBuys func(childComplexity int) int NotionalVolumeSells func(childComplexity int) int Party func(childComplexity int) int RequiredLiquidity func(childComplexity int) int } LiquidityProvision struct { Buys func(childComplexity int) int CommitmentAmount func(childComplexity int) int CreatedAt func(childComplexity int) int Fee func(childComplexity int) int Id func(childComplexity int) int Market func(childComplexity int) int Party func(childComplexity int) int Reference func(childComplexity int) int Sells func(childComplexity int) int Status func(childComplexity int) int UpdatedAt func(childComplexity int) int Version func(childComplexity int) int } LiquidityProvisionUpdate struct { Buys func(childComplexity int) int CommitmentAmount func(childComplexity int) int CreatedAt func(childComplexity int) int Fee func(childComplexity int) int Id func(childComplexity int) int MarketId func(childComplexity int) int PartyId func(childComplexity int) int Reference func(childComplexity int) int Sells func(childComplexity int) int Status func(childComplexity int) int UpdatedAt func(childComplexity int) int Version func(childComplexity int) int } LiquidityProvisionWithPending struct { Current func(childComplexity int) int Pending func(childComplexity int) int } LiquidityProvisionWithPendingEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } LiquidityProvisionsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } LiquidityProvisionsEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } LiquidityProvisionsWithPendingConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } LiquiditySLAParameters struct { CommitmentMinTimeFraction func(childComplexity int) int PerformanceHysteresisEpochs func(childComplexity int) int PriceRange func(childComplexity int) int SlaCompetitionFactor func(childComplexity int) int } LogNormalModelParams struct { Mu func(childComplexity int) int R func(childComplexity int) int Sigma func(childComplexity int) int } LogNormalRiskModel struct { Params func(childComplexity int) int RiskAversionParameter func(childComplexity int) int RiskFactorOverride func(childComplexity int) int Tau func(childComplexity int) int } LossSocialization struct { Amount func(childComplexity int) int MarketID func(childComplexity int) int PartyID func(childComplexity int) int } MakerFeesGenerated struct { MakerFeesPaid func(childComplexity int) int Taker func(childComplexity int) int } MarginCalculator struct { FullyCollateralised func(childComplexity int) int ScalingFactors func(childComplexity int) int } MarginConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } MarginEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } MarginEstimate struct { BestCase func(childComplexity int) int WorstCase func(childComplexity int) int } MarginLevels struct { Asset func(childComplexity int) int CollateralReleaseLevel func(childComplexity int) int InitialLevel func(childComplexity int) int MaintenanceLevel func(childComplexity int) int MarginFactor func(childComplexity int) int MarginMode func(childComplexity int) int Market func(childComplexity int) int OrderMarginLevel func(childComplexity int) int Party func(childComplexity int) int SearchLevel func(childComplexity int) int Timestamp func(childComplexity int) int } MarginLevelsUpdate struct { Asset func(childComplexity int) int CollateralReleaseLevel func(childComplexity int) int InitialLevel func(childComplexity int) int MaintenanceLevel func(childComplexity int) int MarginFactor func(childComplexity int) int MarginMode func(childComplexity int) int MarketId func(childComplexity int) int OrderMarginLevel func(childComplexity int) int PartyId func(childComplexity int) int SearchLevel func(childComplexity int) int Timestamp func(childComplexity int) int } Market struct { AccountsConnection func(childComplexity int, partyID *string, pagination *v2.Pagination, includeDerivedParties *bool) int CandlesConnection func(childComplexity int, since string, to *string, interval vega.Interval, pagination *v2.Pagination) int Data func(childComplexity int) int DecimalPlaces func(childComplexity int) int Depth func(childComplexity int, maxDepth *int) int EnableTxReordering func(childComplexity int) int Fees func(childComplexity int) int Id func(childComplexity int) int InsurancePoolFraction func(childComplexity int) int LinearSlippageFactor func(childComplexity int) int LiquidationStrategy func(childComplexity int) int LiquidityMonitoringParameters func(childComplexity int) int LiquidityProvisions func(childComplexity int, partyID *string, live *bool, pagination *v2.Pagination) int LiquidityProvisionsConnection func(childComplexity int, partyID *string, live *bool, pagination *v2.Pagination) int LiquiditySLAParameters func(childComplexity int) int MarkPriceConfiguration func(childComplexity int) int MarketProposal func(childComplexity int) int MarketTimestamps func(childComplexity int) int OpeningAuction func(childComplexity int) int OrdersConnection func(childComplexity int, pagination *v2.Pagination, filter *OrderByPartyIdsFilter) int ParentMarketId func(childComplexity int) int PositionDecimalPlaces func(childComplexity int) int PriceMonitoringSettings func(childComplexity int) int Proposal func(childComplexity int) int QuadraticSlippageFactor func(childComplexity int) int RiskFactors func(childComplexity int) int State func(childComplexity int) int SuccessorMarketId func(childComplexity int) int TickSize func(childComplexity int) int TradableInstrument func(childComplexity int) int TradesConnection func(childComplexity int, dateRange *v2.DateRange, pagination *v2.Pagination) int TradingMode func(childComplexity int) int } MarketConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } MarketData struct { AuctionEnd func(childComplexity int) int AuctionStart func(childComplexity int) int BestBidPrice func(childComplexity int) int BestBidVolume func(childComplexity int) int BestOfferPrice func(childComplexity int) int BestOfferVolume func(childComplexity int) int BestStaticBidPrice func(childComplexity int) int BestStaticBidVolume func(childComplexity int) int BestStaticOfferPrice func(childComplexity int) int BestStaticOfferVolume func(childComplexity int) int Commitments func(childComplexity int) int ExtensionTrigger func(childComplexity int) int IndicativePrice func(childComplexity int) int IndicativeVolume func(childComplexity int) int LastTradedPrice func(childComplexity int) int LiquidityProviderFeeShare func(childComplexity int) int LiquidityProviderSLA func(childComplexity int) int MarkPrice func(childComplexity int) int MarkPriceState func(childComplexity int) int MarkPriceType func(childComplexity int) int Market func(childComplexity int) int MarketGrowth func(childComplexity int) int MarketState func(childComplexity int) int MarketTradingMode func(childComplexity int) int MarketValueProxy func(childComplexity int) int MidPrice func(childComplexity int) int NextMarkToMarket func(childComplexity int) int NextNetworkCloseout func(childComplexity int) int OpenInterest func(childComplexity int) int PriceMonitoringBounds func(childComplexity int) int ProductData func(childComplexity int) int StaticMidPrice func(childComplexity int) int SuppliedStake func(childComplexity int) int TargetStake func(childComplexity int) int Timestamp func(childComplexity int) int Trigger func(childComplexity int) int } MarketDataCommitments struct { Buys func(childComplexity int) int Sells func(childComplexity int) int } MarketDataConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } MarketDataEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } MarketDepth struct { Buy func(childComplexity int) int LastTrade func(childComplexity int) int Market func(childComplexity int) int Sell func(childComplexity int) int SequenceNumber func(childComplexity int) int } MarketDepthTrade struct { ID func(childComplexity int) int Price func(childComplexity int) int Size func(childComplexity int) int } MarketDepthUpdate struct { Buy func(childComplexity int) int Market func(childComplexity int) int PreviousSequenceNumber func(childComplexity int) int Sell func(childComplexity int) int SequenceNumber func(childComplexity int) int } MarketEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } MarketEvent struct { MarketID func(childComplexity int) int Payload func(childComplexity int) int } MarketTick struct { MarketID func(childComplexity int) int Time func(childComplexity int) int } MarketTimestamps struct { Close func(childComplexity int) int Open func(childComplexity int) int Pending func(childComplexity int) int Proposed func(childComplexity int) int } Metadata struct { Key func(childComplexity int) int Value func(childComplexity int) int } NetworkLimits struct { CanProposeAsset func(childComplexity int) int CanProposeMarket func(childComplexity int) int GenesisLoaded func(childComplexity int) int ProposeAssetEnabled func(childComplexity int) int ProposeAssetEnabledFrom func(childComplexity int) int ProposeMarketEnabled func(childComplexity int) int ProposeMarketEnabledFrom func(childComplexity int) int } NetworkParameter struct { Key func(childComplexity int) int Value func(childComplexity int) int } NetworkParameterEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } NetworkParametersConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } NewAsset struct { Decimals func(childComplexity int) int Name func(childComplexity int) int Quantum func(childComplexity int) int Source func(childComplexity int) int Symbol func(childComplexity int) int } NewFreeform struct { DoNotUse func(childComplexity int) int } NewMarket struct { DecimalPlaces func(childComplexity int) int EnableTxReordering func(childComplexity int) int Instrument func(childComplexity int) int LinearSlippageFactor func(childComplexity int) int LiquidationStrategy func(childComplexity int) int LiquidityFeeSettings func(childComplexity int) int LiquidityMonitoringParameters func(childComplexity int) int LiquiditySLAParameters func(childComplexity int) int MarkPriceConfiguration func(childComplexity int) int Metadata func(childComplexity int) int PositionDecimalPlaces func(childComplexity int) int PriceMonitoringParameters func(childComplexity int) int QuadraticSlippageFactor func(childComplexity int) int RiskParameters func(childComplexity int) int SuccessorConfiguration func(childComplexity int) int TickSize func(childComplexity int) int } NewSpotMarket struct { EnableTxReordering func(childComplexity int) int Instrument func(childComplexity int) int LiquidityFeeSettings func(childComplexity int) int LiquiditySLAParams func(childComplexity int) int Metadata func(childComplexity int) int PriceDecimalPlaces func(childComplexity int) int PriceMonitoringParameters func(childComplexity int) int RiskParameters func(childComplexity int) int SizeDecimalPlaces func(childComplexity int) int TargetStakeParameters func(childComplexity int) int TickSize func(childComplexity int) int } NewTransfer struct { Amount func(childComplexity int) int Asset func(childComplexity int) int Destination func(childComplexity int) int DestinationType func(childComplexity int) int FractionOfBalance func(childComplexity int) int Kind func(childComplexity int) int Source func(childComplexity int) int SourceType func(childComplexity int) int TransferType func(childComplexity int) int } Node struct { AvatarUrl func(childComplexity int) int DelegationsConnection func(childComplexity int, partyID *string, pagination *v2.Pagination) int EpochData func(childComplexity int) int EthereumAddress func(childComplexity int) int Id func(childComplexity int) int InfoUrl func(childComplexity int) int Location func(childComplexity int) int Name func(childComplexity int) int PendingStake func(childComplexity int) int PubKey func(childComplexity int) int RankingScore func(childComplexity int) int RewardScore func(childComplexity int) int StakedByDelegates func(childComplexity int) int StakedByOperator func(childComplexity int) int StakedTotal func(childComplexity int) int Status func(childComplexity int) int TmPubKey func(childComplexity int) int } NodeBasic struct { AvatarUrl func(childComplexity int) int EthereumAddress func(childComplexity int) int Id func(childComplexity int) int InfoUrl func(childComplexity int) int Location func(childComplexity int) int Name func(childComplexity int) int PubKey func(childComplexity int) int Status func(childComplexity int) int TmPubKey func(childComplexity int) int } NodeData struct { ErsatzNodes func(childComplexity int) int InactiveNodes func(childComplexity int) int PendingNodes func(childComplexity int) int StakedTotal func(childComplexity int) int TendermintNodes func(childComplexity int) int TotalNodes func(childComplexity int) int Uptime func(childComplexity int) int } NodeEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } NodeSet struct { Demoted func(childComplexity int) int Inactive func(childComplexity int) int Maximum func(childComplexity int) int Promoted func(childComplexity int) int Total func(childComplexity int) int } NodeSignature struct { Id func(childComplexity int) int Kind func(childComplexity int) int Signature func(childComplexity int) int } NodeSignatureEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } NodeSignaturesConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } NodesConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } Normaliser struct { Expression func(childComplexity int) int Name func(childComplexity int) int } AverageEntryValuation func(childComplexity int) int AverageScore func(childComplexity int) int EquityLikeShare func(childComplexity int) int PartyID func(childComplexity int) int } ObservableLiquidityProviderSLA struct { CurrentEpochFractionOfTimeOnBook func(childComplexity int) int HysteresisPeriodFeePenalties func(childComplexity int) int LastEpochBondPenalty func(childComplexity int) int LastEpochFeePenalty func(childComplexity int) int LastEpochFractionOfTimeOnBook func(childComplexity int) int NotionalVolumeBuys func(childComplexity int) int NotionalVolumeSells func(childComplexity int) int Party func(childComplexity int) int RequiredLiquidity func(childComplexity int) int } ObservableMarketData struct { AuctionEnd func(childComplexity int) int AuctionStart func(childComplexity int) int BestBidPrice func(childComplexity int) int BestBidVolume func(childComplexity int) int BestOfferPrice func(childComplexity int) int BestOfferVolume func(childComplexity int) int BestStaticBidPrice func(childComplexity int) int BestStaticBidVolume func(childComplexity int) int BestStaticOfferPrice func(childComplexity int) int BestStaticOfferVolume func(childComplexity int) int ExtensionTrigger func(childComplexity int) int IndicativePrice func(childComplexity int) int IndicativeVolume func(childComplexity int) int LastTradedPrice func(childComplexity int) int LiquidityProviderFeeShare func(childComplexity int) int LiquidityProviderSLA func(childComplexity int) int MarkPrice func(childComplexity int) int MarkPriceState func(childComplexity int) int MarkPriceType func(childComplexity int) int MarketGrowth func(childComplexity int) int MarketID func(childComplexity int) int MarketState func(childComplexity int) int MarketTradingMode func(childComplexity int) int MarketValueProxy func(childComplexity int) int MidPrice func(childComplexity int) int NextMarkToMarket func(childComplexity int) int OpenInterest func(childComplexity int) int PriceMonitoringBounds func(childComplexity int) int ProductData func(childComplexity int) int StaticMidPrice func(childComplexity int) int SuppliedStake func(childComplexity int) int TargetStake func(childComplexity int) int Timestamp func(childComplexity int) int Trigger func(childComplexity int) int } ObservableMarketDepth struct { Buy func(childComplexity int) int LastTrade func(childComplexity int) int MarketId func(childComplexity int) int Sell func(childComplexity int) int SequenceNumber func(childComplexity int) int } ObservableMarketDepthUpdate struct { Buy func(childComplexity int) int MarketId func(childComplexity int) int PreviousSequenceNumber func(childComplexity int) int Sell func(childComplexity int) int SequenceNumber func(childComplexity int) int } OneOffGovernanceTransfer struct { DeliverOn func(childComplexity int) int } OneOffTransfer struct { DeliverOn func(childComplexity int) int } OracleData struct { ExternalData func(childComplexity int) int } OracleDataConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } OracleDataEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } OracleSpec struct { DataConnection func(childComplexity int, pagination *v2.Pagination) int DataSourceSpec func(childComplexity int) int } OracleSpecEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } OracleSpecsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } Order struct { CreatedAt func(childComplexity int) int ExpiresAt func(childComplexity int) int IcebergOrder func(childComplexity int) int Id func(childComplexity int) int LiquidityProvision func(childComplexity int) int Market func(childComplexity int) int Party func(childComplexity int) int PeggedOrder func(childComplexity int) int PostOnly func(childComplexity int) int Price func(childComplexity int) int ReduceOnly func(childComplexity int) int Reference func(childComplexity int) int RejectionReason func(childComplexity int) int Remaining func(childComplexity int) int Side func(childComplexity int) int Size func(childComplexity int) int Status func(childComplexity int) int TimeInForce func(childComplexity int) int TradesConnection func(childComplexity int, dateRange *v2.DateRange, pagination *v2.Pagination) int Type func(childComplexity int) int UpdatedAt func(childComplexity int) int Version func(childComplexity int) int } OrderConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } OrderEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } OrderEstimate struct { Fee func(childComplexity int) int MarginLevels func(childComplexity int) int TotalFeeAmount func(childComplexity int) int } OrderSubmission struct { ExpiresAt func(childComplexity int) int IcebergOrder func(childComplexity int) int MarketId func(childComplexity int) int PeggedOrder func(childComplexity int) int PostOnly func(childComplexity int) int Price func(childComplexity int) int ReduceOnly func(childComplexity int) int Reference func(childComplexity int) int Side func(childComplexity int) int Size func(childComplexity int) int TimeInForce func(childComplexity int) int Type func(childComplexity int) int } OrderUpdate struct { CreatedAt func(childComplexity int) int ExpiresAt func(childComplexity int) int IcebergOrder func(childComplexity int) int Id func(childComplexity int) int LiquidityProvisionId func(childComplexity int) int MarketId func(childComplexity int) int PartyId func(childComplexity int) int PeggedOrder func(childComplexity int) int Price func(childComplexity int) int Reference func(childComplexity int) int RejectionReason func(childComplexity int) int Remaining func(childComplexity int) int Side func(childComplexity int) int Size func(childComplexity int) int Status func(childComplexity int) int TimeInForce func(childComplexity int) int Type func(childComplexity int) int UpdatedAt func(childComplexity int) int Version func(childComplexity int) int } PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int HasPreviousPage func(childComplexity int) int StartCursor func(childComplexity int) int } PaidLiquidityFees struct { AssetID func(childComplexity int) int Epoch func(childComplexity int) int FeesPaidPerParty func(childComplexity int) int MarketID func(childComplexity int) int TotalFeesPaid func(childComplexity int) int } PaidLiquidityFeesConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } PaidLiquidityFeesEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } PartiesProfilesConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } Party struct { AccountsConnection func(childComplexity int, marketID *string, assetID *string, typeArg *vega.AccountType, pagination *v2.Pagination, includeDerivedParties *bool) int ActivityStreak func(childComplexity int, epoch *int) int DelegationsConnection func(childComplexity int, nodeID *string, pagination *v2.Pagination) int DepositsConnection func(childComplexity int, dateRange *v2.DateRange, pagination *v2.Pagination) int Id func(childComplexity int) int LiquidityProvisions func(childComplexity int, marketID *string, reference *string, live *bool, pagination *v2.Pagination) int LiquidityProvisionsConnection func(childComplexity int, marketID *string, reference *string, live *bool, pagination *v2.Pagination) int MarginsConnection func(childComplexity int, marketID *string, pagination *v2.Pagination) int OrdersConnection func(childComplexity int, pagination *v2.Pagination, filter *OrderByMarketIdsFilter) int PositionsConnection func(childComplexity int, market *string, pagination *v2.Pagination) int ProposalsConnection func(childComplexity int, proposalType *v2.ListGovernanceDataRequest_Type, inState *vega.Proposal_State, pagination *v2.Pagination) int RewardSummaries func(childComplexity int, assetID *string, includeDerivedParties *bool) int RewardsConnection func(childComplexity int, assetID *string, pagination *v2.Pagination, fromEpoch *int, toEpoch *int, teamID *string, gameID *string, includeDerivedParties *bool, marketID *string) int StakingSummary func(childComplexity int, pagination *v2.Pagination) int TradesConnection func(childComplexity int, marketID *string, dataRange *v2.DateRange, pagination *v2.Pagination) int TransfersConnection func(childComplexity int, direction *TransferDirection, pagination *v2.Pagination, isReward *bool, fromEpoch *int, toEpoch *int, status *v1.Transfer_Status, scope *v2.ListTransfersRequest_Scope, gameID *string, fromAccountType *vega.AccountType, toAccountType *vega.AccountType) int VestingBalancesSummary func(childComplexity int, assetID *string) int VestingStats func(childComplexity int) int VotesConnection func(childComplexity int, pagination *v2.Pagination) int WithdrawalsConnection func(childComplexity int, dateRange *v2.DateRange, pagination *v2.Pagination) int } PartyActivityStreak struct { ActiveFor func(childComplexity int) int Epoch func(childComplexity int) int InactiveFor func(childComplexity int) int IsActive func(childComplexity int) int OpenVolume func(childComplexity int) int RewardDistributionMultiplier func(childComplexity int) int RewardVestingMultiplier func(childComplexity int) int TradedVolume func(childComplexity int) int } PartyAmount struct { Amount func(childComplexity int) int PartyID func(childComplexity int) int } PartyConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } PartyEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } PartyLockedBalance struct { Asset func(childComplexity int) int Balance func(childComplexity int) int UntilEpoch func(childComplexity int) int } PartyMarginMode struct { AtEpoch func(childComplexity int) int MarginFactor func(childComplexity int) int MarginMode func(childComplexity int) int MarketId func(childComplexity int) int MaxTheoreticalLeverage func(childComplexity int) int MinTheoreticalMarginFactor func(childComplexity int) int PartyId func(childComplexity int) int } PartyMarginModeEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } PartyMarginModesConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } PartyProfile struct { Alias func(childComplexity int) int Metadata func(childComplexity int) int PartyId func(childComplexity int) int } PartyProfileEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } PartyStake struct { CurrentStakeAvailable func(childComplexity int) int Linkings func(childComplexity int) int } PartyVestingBalance struct { Asset func(childComplexity int) int Balance func(childComplexity int) int } PartyVestingBalancesSummary struct { Epoch func(childComplexity int) int LockedBalances func(childComplexity int) int VestingBalances func(childComplexity int) int } PartyVestingStats struct { EpochSeq func(childComplexity int) int QuantumBalance func(childComplexity int) int RewardBonusMultiplier func(childComplexity int) int SummedQuantumBalance func(childComplexity int) int SummedRewardBonusMultiplier func(childComplexity int) int } PeggedOrder struct { Offset func(childComplexity int) int Reference func(childComplexity int) int } Perpetual struct { ClampLowerBound func(childComplexity int) int ClampUpperBound func(childComplexity int) int DataSourceSpecBinding func(childComplexity int) int DataSourceSpecForSettlementData func(childComplexity int) int DataSourceSpecForSettlementSchedule func(childComplexity int) int FundingRateLowerBound func(childComplexity int) int FundingRateScalingFactor func(childComplexity int) int FundingRateUpperBound func(childComplexity int) int InterestRate func(childComplexity int) int InternalCompositePriceConfig func(childComplexity int) int MarginFundingFactor func(childComplexity int) int QuoteName func(childComplexity int) int SettlementAsset func(childComplexity int) int } PerpetualData struct { ExternalTwap func(childComplexity int) int FundingPayment func(childComplexity int) int FundingRate func(childComplexity int) int InternalCompositePrice func(childComplexity int) int InternalCompositePriceState func(childComplexity int) int InternalCompositePriceType func(childComplexity int) int InternalTwap func(childComplexity int) int NextInternalCompositePriceCalc func(childComplexity int) int SeqNum func(childComplexity int) int StartTime func(childComplexity int) int UnderlyingIndexPrice func(childComplexity int) int } PerpetualProduct struct { ClampLowerBound func(childComplexity int) int ClampUpperBound func(childComplexity int) int DataSourceSpecBinding func(childComplexity int) int DataSourceSpecForSettlementData func(childComplexity int) int DataSourceSpecForSettlementSchedule func(childComplexity int) int FundingRateLowerBound func(childComplexity int) int FundingRateScalingFactor func(childComplexity int) int FundingRateUpperBound func(childComplexity int) int InterestRate func(childComplexity int) int MarginFundingFactor func(childComplexity int) int QuoteName func(childComplexity int) int SettlementAsset func(childComplexity int) int } Position struct { AverageEntryPrice func(childComplexity int) int LossSocializationAmount func(childComplexity int) int MarginsConnection func(childComplexity int, pagination *v2.Pagination) int Market func(childComplexity int) int OpenVolume func(childComplexity int) int Party func(childComplexity int) int PositionStatus func(childComplexity int) int RealisedPnl func(childComplexity int) int UnrealisedPnl func(childComplexity int) int UpdatedAt func(childComplexity int) int } PositionConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } PositionEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } PositionEstimate struct { CollateralIncreaseEstimate func(childComplexity int) int Liquidation func(childComplexity int) int Margin func(childComplexity int) int } PositionResolution struct { Closed func(childComplexity int) int Distressed func(childComplexity int) int MarkPrice func(childComplexity int) int MarketID func(childComplexity int) int } PositionUpdate struct { AverageEntryPrice func(childComplexity int) int LossSocializationAmount func(childComplexity int) int MarketId func(childComplexity int) int OpenVolume func(childComplexity int) int PartyId func(childComplexity int) int PositionStatus func(childComplexity int) int RealisedPnl func(childComplexity int) int UnrealisedPnl func(childComplexity int) int UpdatedAt func(childComplexity int) int } PriceLevel struct { AmmVolume func(childComplexity int) int AmmVolumeEstimated func(childComplexity int) int NumberOfOrders func(childComplexity int) int Price func(childComplexity int) int Volume func(childComplexity int) int } PriceMonitoringBounds struct { Active func(childComplexity int) int MaxValidPrice func(childComplexity int) int MinValidPrice func(childComplexity int) int ReferencePrice func(childComplexity int) int Trigger func(childComplexity int) int } PriceMonitoringParameters struct { Triggers func(childComplexity int) int } PriceMonitoringSettings struct { Parameters func(childComplexity int) int } PriceMonitoringTrigger struct { AuctionExtensionSecs func(childComplexity int) int HorizonSecs func(childComplexity int) int Probability func(childComplexity int) int } Property struct { Name func(childComplexity int) int Value func(childComplexity int) int } PropertyKey struct { Name func(childComplexity int) int NumberDecimalPlaces func(childComplexity int) int Type func(childComplexity int) int } Proposal struct { Datetime func(childComplexity int) int ErrorDetails func(childComplexity int) int ID func(childComplexity int) int Party func(childComplexity int) int Rationale func(childComplexity int) int Reference func(childComplexity int) int RejectionReason func(childComplexity int) int RequiredLpMajority func(childComplexity int) int RequiredLpParticipation func(childComplexity int) int RequiredMajority func(childComplexity int) int RequiredParticipation func(childComplexity int) int State func(childComplexity int) int Terms func(childComplexity int) int Votes func(childComplexity int) int } ProposalDetail struct { BatchId func(childComplexity int) int BatchTerms func(childComplexity int) int Datetime func(childComplexity int) int ErrorDetails func(childComplexity int) int Id func(childComplexity int) int Party func(childComplexity int) int Rationale func(childComplexity int) int Reference func(childComplexity int) int RejectionReason func(childComplexity int) int RequiredLpMajority func(childComplexity int) int RequiredLpParticipation func(childComplexity int) int RequiredMajority func(childComplexity int) int RequiredParticipation func(childComplexity int) int State func(childComplexity int) int Terms func(childComplexity int) int } ProposalEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int ProposalNode func(childComplexity int) int } ProposalRationale struct { Description func(childComplexity int) int Title func(childComplexity int) int } ProposalTerms struct { Change func(childComplexity int) int ClosingDatetime func(childComplexity int) int EnactmentDatetime func(childComplexity int) int ValidationDatetime func(childComplexity int) int } ProposalVote struct { ProposalID func(childComplexity int) int Vote func(childComplexity int) int } ProposalVoteConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } ProposalVoteEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } ProposalVoteSide struct { TotalEquityLikeShareWeight func(childComplexity int) int TotalNumber func(childComplexity int) int TotalTokens func(childComplexity int) int TotalWeight func(childComplexity int) int Votes func(childComplexity int) int } ProposalVotes struct { No func(childComplexity int) int Yes func(childComplexity int) int } ProposalsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } ProtocolUpgradeProposal struct { Approvers func(childComplexity int) int Status func(childComplexity int) int UpgradeBlockHeight func(childComplexity int) int VegaReleaseTag func(childComplexity int) int } ProtocolUpgradeProposalConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } ProtocolUpgradeProposalEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } ProtocolUpgradeStatus struct { Ready func(childComplexity int) int } PubKey struct { Key func(childComplexity int) int } QuantumRewardsPerEpoch struct { Epoch func(childComplexity int) int TotalQuantumRewards func(childComplexity int) int } QuantumVolumesPerEpoch struct { Epoch func(childComplexity int) int TotalQuantumVolumes func(childComplexity int) int } Query struct { Amms func(childComplexity int, id *string, partyID *string, marketID *string, ammPartyID *string, status *v1.AMM_Status, pagination *v2.Pagination) int Asset func(childComplexity int, id string) int AssetsConnection func(childComplexity int, id *string, pagination *v2.Pagination) int BalanceChanges func(childComplexity int, filter *v2.AccountFilter, dateRange *v2.DateRange, pagination *v2.Pagination) int CoreSnapshots func(childComplexity int, pagination *v2.Pagination) int CurrentReferralProgram func(childComplexity int) int CurrentVolumeDiscountProgram func(childComplexity int) int CurrentVolumeRebateProgram func(childComplexity int) int Deposit func(childComplexity int, id string) int Deposits func(childComplexity int, dateRange *v2.DateRange, pagination *v2.Pagination) int Entities func(childComplexity int, txHash string) int Epoch func(childComplexity int, id *string, block *string) int EpochRewardSummaries func(childComplexity int, filter *v2.RewardSummaryFilter, pagination *v2.Pagination) int Erc20ListAssetBundle func(childComplexity int, assetID string) int Erc20MultiSigSignerAddedBundles func(childComplexity int, nodeID string, submitter *string, epochSeq *string, chainID *string, pagination *v2.Pagination) int Erc20MultiSigSignerRemovedBundles func(childComplexity int, nodeID string, submitter *string, epochSeq *string, chainID *string, pagination *v2.Pagination) int Erc20SetAssetLimitsBundle func(childComplexity int, proposalID string) int Erc20WithdrawalApproval func(childComplexity int, withdrawalID string) int EstimateAMMBounds func(childComplexity int, basePrice string, upperPrice *string, lowerPrice *string, leverageAtUpperPrice *string, leverageAtLowerPrice *string, commitmentAmount string, marketID string) int EstimateFees func(childComplexity int, marketID string, partyID string, price *string, size string, side vega.Side, timeInForce vega.Order_TimeInForce, expiration *int64, typeArg vega.Order_Type) int EstimateOrder func(childComplexity int, marketID string, partyID string, price *string, size string, side vega.Side, timeInForce vega.Order_TimeInForce, expiration *int64, typeArg vega.Order_Type) int EstimatePosition func(childComplexity int, marketID string, openVolume string, averageEntryPrice string, orders []*v2.OrderInfo, marginAccountBalance string, generalAccountBalance string, orderMarginAccountBalance string, marginMode vega.MarginMode, marginFactor *string, includeRequiredPositionMarginInAvailableCollateral *bool, scaleLiquidationPriceToMarketDecimals *bool) int EstimateTransferFee func(childComplexity int, fromAccount string, fromAccountType vega.AccountType, toAccount string, amount string, assetID string) int EthereumKeyRotations func(childComplexity int, nodeID *string) int FeesStats func(childComplexity int, marketID *string, assetID *string, epoch *int, partyID *string, epochFrom *int, epochTo *int) int FeesStatsForParty func(childComplexity int, partyID string, assetID *string, fromEpoch *int, toEpoch *int) int FundingPayments func(childComplexity int, partyID string, marketID *string, pagination *v2.Pagination) int FundingPeriodDataPoints func(childComplexity int, marketID string, dateRange *v2.DateRange, source *v1.FundingPeriodDataPoint_Source, pagination *v2.Pagination) int FundingPeriods func(childComplexity int, marketID string, dateRange *v2.DateRange, pagination *v2.Pagination) int GamePartyScores func(childComplexity int, filter *GamePartyScoreFilter, pagination *v2.Pagination) int GameTeamScores func(childComplexity int, filter *GameTeamScoreFilter, pagination *v2.Pagination) int Games func(childComplexity int, gameID *string, epochFrom *int, epochTo *int, entityScope *vega.EntityScope, teamID *string, partyID *string, pagination *v2.Pagination) int GetMarketDataHistoryConnectionByID func(childComplexity int, id string, start *int64, end *int64, pagination *v2.Pagination) int KeyRotationsConnection func(childComplexity int, id *string, pagination *v2.Pagination) int LastBlockHeight func(childComplexity int) int LedgerEntries func(childComplexity int, filter *v2.LedgerEntryFilter, dateRange *v2.DateRange, pagination *v2.Pagination) int LiquidityProviders func(childComplexity int, partyID *string, marketID *string, pagination *v2.Pagination) int Market func(childComplexity int, id string) int MarketsConnection func(childComplexity int, id *string, pagination *v2.Pagination, includeSettled *bool) int MostRecentHistorySegment func(childComplexity int) int NetworkLimits func(childComplexity int) int NetworkParameter func(childComplexity int, key string) int NetworkParametersConnection func(childComplexity int, pagination *v2.Pagination) int Node func(childComplexity int, id string) int NodeData func(childComplexity int) int NodeSignaturesConnection func(childComplexity int, resourceID string, pagination *v2.Pagination) int NodesConnection func(childComplexity int, pagination *v2.Pagination) int OracleDataBySpecConnection func(childComplexity int, oracleSpecID string, pagination *v2.Pagination) int OracleDataConnection func(childComplexity int, pagination *v2.Pagination) int OracleSpec func(childComplexity int, oracleSpecID string) int OracleSpecsConnection func(childComplexity int, pagination *v2.Pagination) int OrderByID func(childComplexity int, id string, version *int) int OrderByReference func(childComplexity int, reference string) int OrderVersionsConnection func(childComplexity int, orderID *string, pagination *v2.Pagination) int PaidLiquidityFees func(childComplexity int, marketID *string, assetID *string, epoch *int, partyIDs []string, includeDerivedParties *bool, epochFrom *int, epochTo *int) int PartiesConnection func(childComplexity int, id *string, pagination *v2.Pagination) int PartiesProfilesConnection func(childComplexity int, ids []string, pagination *v2.Pagination) int Party func(childComplexity int, id string) int PartyMarginModes func(childComplexity int, marketID *string, partyID *string, pagination *v2.Pagination) int Positions func(childComplexity int, filter *v2.PositionsFilter, pagination *v2.Pagination) int Proposal func(childComplexity int, id *string, reference *string) int ProposalsConnection func(childComplexity int, proposalType *v2.ListGovernanceDataRequest_Type, inState *vega.Proposal_State, pagination *v2.Pagination) int ProtocolUpgradeProposals func(childComplexity int, inState *v1.ProtocolUpgradeProposalStatus, approvedBy *string, pagination *v2.Pagination) int ProtocolUpgradeStatus func(childComplexity int) int ReferralSetReferees func(childComplexity int, id *string, referrer *string, referee *string, pagination *v2.Pagination, aggregationEpochs *int) int ReferralSetStats func(childComplexity int, setID *string, epoch *int, partyID *string, pagination *v2.Pagination) int ReferralSets func(childComplexity int, id *string, referrer *string, referee *string, pagination *v2.Pagination) int Statistics func(childComplexity int) int StopOrder func(childComplexity int, id string) int StopOrders func(childComplexity int, filter *v2.StopOrderFilter, pagination *v2.Pagination) int SuccessorMarkets func(childComplexity int, marketID string, fullHistory *bool, pagination *v2.Pagination) int TeamMembersStatistics func(childComplexity int, teamID string, partyID *string, aggregationEpochs *int, pagination *v2.Pagination) int TeamRefereeHistory func(childComplexity int, referee string, pagination *v2.Pagination) int TeamReferees func(childComplexity int, teamID string, pagination *v2.Pagination) int Teams func(childComplexity int, teamID *string, partyID *string, pagination *v2.Pagination) int TeamsStatistics func(childComplexity int, teamID *string, aggregationEpochs *int, pagination *v2.Pagination) int TimeWeightedNotionalPosition func(childComplexity int, assetID string, partyID string, gameID string, epochSeq *int) int TotalTransferFeeDiscount func(childComplexity int, partyID string, assetID string) int Trades func(childComplexity int, filter *TradesFilter, pagination *v2.Pagination, dateRange *v2.DateRange) int Transfer func(childComplexity int, id string) int TransfersConnection func(childComplexity int, partyID *string, direction *TransferDirection, pagination *v2.Pagination, isReward *bool, fromEpoch *int, toEpoch *int, status *v1.Transfer_Status, scope *v2.ListTransfersRequest_Scope, gameID *string, fromAccountType *vega.AccountType, toAccountType *vega.AccountType) int VolumeDiscountStats func(childComplexity int, epoch *int, partyID *string, pagination *v2.Pagination) int VolumeRebateStats func(childComplexity int, epoch *int, partyID *string, pagination *v2.Pagination) int Withdrawal func(childComplexity int, id string) int Withdrawals func(childComplexity int, dateRange *v2.DateRange, pagination *v2.Pagination) int } RankTable struct { ShareRatio func(childComplexity int) int StartRank func(childComplexity int) int } RankingScore struct { PerformanceScore func(childComplexity int) int PreviousStatus func(childComplexity int) int RankingScore func(childComplexity int) int StakeScore func(childComplexity int) int Status func(childComplexity int) int VotingPower func(childComplexity int) int } RecurringGovernanceTransfer struct { DispatchStrategy func(childComplexity int) int EndEpoch func(childComplexity int) int Factor func(childComplexity int) int StartEpoch func(childComplexity int) int } RecurringTransfer struct { DispatchStrategy func(childComplexity int) int EndEpoch func(childComplexity int) int Factor func(childComplexity int) int StartEpoch func(childComplexity int) int } ReferralProgram struct { BenefitTiers func(childComplexity int) int EndOfProgramTimestamp func(childComplexity int) int Id func(childComplexity int) int StakingTiers func(childComplexity int) int Version func(childComplexity int) int WindowLength func(childComplexity int) int } ReferralSet struct { CreatedAt func(childComplexity int) int Id func(childComplexity int) int Referrer func(childComplexity int) int TotalMembers func(childComplexity int) int UpdatedAt func(childComplexity int) int } ReferralSetConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } ReferralSetEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } ReferralSetReferee struct { AtEpoch func(childComplexity int) int JoinedAt func(childComplexity int) int RefereeID func(childComplexity int) int ReferralSetId func(childComplexity int) int TotalRefereeGeneratedRewards func(childComplexity int) int TotalRefereeNotionalTakerVolume func(childComplexity int) int } ReferralSetRefereeConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } ReferralSetRefereeEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } ReferralSetStats struct { AtEpoch func(childComplexity int) int DiscountFactor func(childComplexity int) int DiscountFactors func(childComplexity int) int EpochNotionalTakerVolume func(childComplexity int) int PartyId func(childComplexity int) int ReferralSetRunningNotionalTakerVolume func(childComplexity int) int ReferrerTakerVolume func(childComplexity int) int RewardFactor func(childComplexity int) int RewardFactors func(childComplexity int) int RewardsFactorMultiplier func(childComplexity int) int RewardsFactorsMultiplier func(childComplexity int) int RewardsMultiplier func(childComplexity int) int WasEligible func(childComplexity int) int } ReferralSetStatsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } ReferralSetStatsEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } ReferrerRewardsGenerated struct { GeneratedReward func(childComplexity int) int ReferrerID func(childComplexity int) int } Reward struct { Amount func(childComplexity int) int Asset func(childComplexity int) int Epoch func(childComplexity int) int GameId func(childComplexity int) int LockedUntilEpoch func(childComplexity int) int MarketId func(childComplexity int) int Party func(childComplexity int) int PercentageOfTotal func(childComplexity int) int QuantumAmount func(childComplexity int) int ReceivedAt func(childComplexity int) int RewardType func(childComplexity int) int TeamId func(childComplexity int) int } RewardEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } RewardFactors struct { InfrastructureFactor func(childComplexity int) int LiquidityFactor func(childComplexity int) int MakerFactor func(childComplexity int) int } RewardScore struct { MultisigScore func(childComplexity int) int NormalisedScore func(childComplexity int) int PerformanceScore func(childComplexity int) int RawValidatorScore func(childComplexity int) int ValidatorScore func(childComplexity int) int ValidatorStatus func(childComplexity int) int } RewardSummary struct { Amount func(childComplexity int) int Asset func(childComplexity int) int RewardsConnection func(childComplexity int, assetID *string, pagination *v2.Pagination, includeDerivedParties *bool) int } RewardSummaryConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } RewardSummaryEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } RewardsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } RiskFactor struct { Long func(childComplexity int) int Market func(childComplexity int) int Short func(childComplexity int) int } RiskFactorOverride struct { Long func(childComplexity int) int Short func(childComplexity int) int } ScalingFactors struct { CollateralRelease func(childComplexity int) int InitialMargin func(childComplexity int) int SearchLevel func(childComplexity int) int } SettleDistressed struct { Margin func(childComplexity int) int MarketID func(childComplexity int) int PartyID func(childComplexity int) int Price func(childComplexity int) int } SettlePosition struct { MarketID func(childComplexity int) int PartyID func(childComplexity int) int Price func(childComplexity int) int TradeSettlements func(childComplexity int) int } Signer struct { Signer func(childComplexity int) int } SimpleRiskModel struct { Params func(childComplexity int) int } SimpleRiskModelParams struct { FactorLong func(childComplexity int) int FactorShort func(childComplexity int) int } SpecBindingForCompositePrice struct { PriceSourceProperty func(childComplexity int) int } Spot struct { BaseAsset func(childComplexity int) int QuoteAsset func(childComplexity int) int } SpotProduct struct { BaseAsset func(childComplexity int) int QuoteAsset func(childComplexity int) int } StakeLinking struct { Amount func(childComplexity int) int BlockHeight func(childComplexity int) int FinalizedAt func(childComplexity int) int Id func(childComplexity int) int Party func(childComplexity int) int Status func(childComplexity int) int Timestamp func(childComplexity int) int TxHash func(childComplexity int) int Type func(childComplexity int) int } StakeLinkingEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } StakesConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } StakingSummary struct { CurrentStakeAvailable func(childComplexity int) int Linkings func(childComplexity int, pagination *v2.Pagination) int } StakingTier struct { MinimumStakedTokens func(childComplexity int) int ReferralRewardMultiplier func(childComplexity int) int } Statistics struct { AppVersion func(childComplexity int) int AppVersionHash func(childComplexity int) int AverageOrdersPerBlock func(childComplexity int) int AverageTxBytes func(childComplexity int) int BacklogLength func(childComplexity int) int BlockDuration func(childComplexity int) int BlockHash func(childComplexity int) int BlockHeight func(childComplexity int) int ChainId func(childComplexity int) int ChainVersion func(childComplexity int) int CurrentTime func(childComplexity int) int EventCount func(childComplexity int) int EventsPerSecond func(childComplexity int) int GenesisTime func(childComplexity int) int OrdersPerSecond func(childComplexity int) int Status func(childComplexity int) int TotalAmendOrder func(childComplexity int) int TotalCancelOrder func(childComplexity int) int TotalCreateOrder func(childComplexity int) int TotalMarkets func(childComplexity int) int TotalOrders func(childComplexity int) int TotalPeers func(childComplexity int) int TotalTrades func(childComplexity int) int TradesPerSecond func(childComplexity int) int TxPerBlock func(childComplexity int) int Uptime func(childComplexity int) int VegaTime func(childComplexity int) int } StopOrder struct { CreatedAt func(childComplexity int) int ExpiresAt func(childComplexity int) int ExpiryStrategy func(childComplexity int) int ID func(childComplexity int) int MarketID func(childComplexity int) int OcoLinkID func(childComplexity int) int Order func(childComplexity int) int PartyID func(childComplexity int) int RejectionReason func(childComplexity int) int SizeOverrideSetting func(childComplexity int) int SizeOverrideValue func(childComplexity int) int Status func(childComplexity int) int Submission func(childComplexity int) int Trigger func(childComplexity int) int TriggerDirection func(childComplexity int) int UpdatedAt func(childComplexity int) int } StopOrderConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } StopOrderEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } StopOrderPrice struct { Price func(childComplexity int) int } StopOrderTrailingPercentOffset struct { TrailingPercentOffset func(childComplexity int) int } Subscription struct { Accounts func(childComplexity int, marketID *string, partyID *string, assetID *string, typeArg *vega.AccountType, includeDerivedParties *bool) int BusEvents func(childComplexity int, types []BusEventType, marketID *string, partyID *string, batchSize int) int Candles func(childComplexity int, marketID string, interval vega.Interval) int LiquidityProvisions func(childComplexity int, partyID *string, marketID *string) int Margins func(childComplexity int, partyID string, marketID *string) int MarketsData func(childComplexity int, marketIds []string) int MarketsDepth func(childComplexity int, marketIds []string) int MarketsDepthUpdate func(childComplexity int, marketIds []string) int Orders func(childComplexity int, filter *OrderByMarketAndPartyIdsFilter) int Positions func(childComplexity int, partyID *string, marketID *string, includeDerivedParties *bool) int Proposals func(childComplexity int, partyID *string) int Trades func(childComplexity int, marketID *string, partyID *string) int TradesStream func(childComplexity int, filter TradesSubscriptionFilter) int Votes func(childComplexity int, proposalID *string, partyID *string) int } SuccessorConfiguration struct { InsurancePoolFraction func(childComplexity int) int ParentMarketId func(childComplexity int) int } SuccessorMarket struct { Market func(childComplexity int) int Proposals func(childComplexity int) int } SuccessorMarketConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } SuccessorMarketEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } TargetStakeParameters struct { ScalingFactor func(childComplexity int) int TimeWindow func(childComplexity int) int } Team struct { AllowList func(childComplexity int) int AvatarUrl func(childComplexity int) int Closed func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedAtEpoch func(childComplexity int) int Name func(childComplexity int) int Referrer func(childComplexity int) int TeamId func(childComplexity int) int TeamUrl func(childComplexity int) int TotalMembers func(childComplexity int) int } TeamConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } TeamEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } TeamGameEntity struct { Rank func(childComplexity int) int RewardEarned func(childComplexity int) int RewardEarnedQuantum func(childComplexity int) int RewardMetric func(childComplexity int) int Team func(childComplexity int) int TotalRewardsEarned func(childComplexity int) int TotalRewardsEarnedQuantum func(childComplexity int) int Volume func(childComplexity int) int } TeamMemberStatistics struct { GamesPlayed func(childComplexity int) int PartyId func(childComplexity int) int QuantumRewards func(childComplexity int) int QuantumVolumes func(childComplexity int) int TotalGamesPlayed func(childComplexity int) int TotalQuantumRewards func(childComplexity int) int TotalQuantumVolume func(childComplexity int) int } TeamMemberStatisticsEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } TeamMembersStatisticsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } TeamParticipation struct { MembersParticipating func(childComplexity int) int TeamID func(childComplexity int) int } TeamReferee struct { JoinedAt func(childComplexity int) int JoinedAtEpoch func(childComplexity int) int Referee func(childComplexity int) int TeamId func(childComplexity int) int } TeamRefereeConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } TeamRefereeEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } TeamRefereeHistory struct { JoinedAt func(childComplexity int) int JoinedAtEpoch func(childComplexity int) int TeamId func(childComplexity int) int } TeamRefereeHistoryConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } TeamRefereeHistoryEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } TeamStatistics struct { GamesPlayed func(childComplexity int) int QuantumRewards func(childComplexity int) int QuantumVolumes func(childComplexity int) int TeamId func(childComplexity int) int TotalGamesPlayed func(childComplexity int) int TotalQuantumRewards func(childComplexity int) int TotalQuantumVolume func(childComplexity int) int } TeamStatisticsEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } TeamsStatisticsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } TimeUpdate struct { Timestamp func(childComplexity int) int } TimeWeightedNotionalPosition struct { AssetId func(childComplexity int) int Epoch func(childComplexity int) int GameId func(childComplexity int) int LastUpdated func(childComplexity int) int PartyId func(childComplexity int) int TimeWeightedNotionalPosition func(childComplexity int) int } TotalTransferFeeDiscount struct { TotalDiscount func(childComplexity int) int } TradableInstrument struct { Instrument func(childComplexity int) int MarginCalculator func(childComplexity int) int RiskModel func(childComplexity int) int } Trade struct { Aggressor func(childComplexity int) int BuyOrder func(childComplexity int) int Buyer func(childComplexity int) int BuyerAuctionBatch func(childComplexity int) int BuyerFee func(childComplexity int) int CreatedAt func(childComplexity int) int Id func(childComplexity int) int Market func(childComplexity int) int Price func(childComplexity int) int SellOrder func(childComplexity int) int Seller func(childComplexity int) int SellerAuctionBatch func(childComplexity int) int SellerFee func(childComplexity int) int Size func(childComplexity int) int Type func(childComplexity int) int } TradeConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } TradeEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } TradeFee struct { BuyBackFee func(childComplexity int) int HighVolumeMakerFee func(childComplexity int) int InfrastructureFee func(childComplexity int) int InfrastructureFeeReferralDiscount func(childComplexity int) int InfrastructureFeeVolumeDiscount func(childComplexity int) int LiquidityFee func(childComplexity int) int LiquidityFeeReferralDiscount func(childComplexity int) int LiquidityFeeVolumeDiscount func(childComplexity int) int MakerFee func(childComplexity int) int MakerFeeReferralDiscount func(childComplexity int) int MakerFeeVolumeDiscount func(childComplexity int) int TreasuryFee func(childComplexity int) int } TradeSettlement struct { Price func(childComplexity int) int Size func(childComplexity int) int } TradeUpdate struct { Aggressor func(childComplexity int) int BuyOrder func(childComplexity int) int BuyerAuctionBatch func(childComplexity int) int BuyerFee func(childComplexity int) int BuyerID func(childComplexity int) int CreatedAt func(childComplexity int) int Id func(childComplexity int) int MarketId func(childComplexity int) int Price func(childComplexity int) int SellOrder func(childComplexity int) int SellerAuctionBatch func(childComplexity int) int SellerFee func(childComplexity int) int SellerID func(childComplexity int) int Size func(childComplexity int) int Type func(childComplexity int) int } TransactionResult struct { Error func(childComplexity int) int Hash func(childComplexity int) int PartyId func(childComplexity int) int Status func(childComplexity int) int } TransactionSubmitted struct { Success func(childComplexity int) int } Transfer struct { Amount func(childComplexity int) int Asset func(childComplexity int) int From func(childComplexity int) int FromAccountType func(childComplexity int) int GameId func(childComplexity int) int Id func(childComplexity int) int Kind func(childComplexity int) int Reason func(childComplexity int) int Reference func(childComplexity int) int Status func(childComplexity int) int Timestamp func(childComplexity int) int To func(childComplexity int) int ToAccountType func(childComplexity int) int } TransferBalance struct { Account func(childComplexity int) int Balance func(childComplexity int) int } TransferConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } TransferEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } TransferFee struct { Amount func(childComplexity int) int Epoch func(childComplexity int) int TransferID func(childComplexity int) int } TransferNode struct { Fees func(childComplexity int) int Transfer func(childComplexity int) int } TransferResponse struct { Balances func(childComplexity int) int Transfers func(childComplexity int) int } TransferResponses struct { Responses func(childComplexity int) int } UpdateAsset struct { AssetId func(childComplexity int) int Quantum func(childComplexity int) int Source func(childComplexity int) int } UpdateERC20 struct { LifetimeLimit func(childComplexity int) int WithdrawThreshold func(childComplexity int) int } UpdateFutureProduct struct { DataSourceSpecBinding func(childComplexity int) int DataSourceSpecForSettlementData func(childComplexity int) int DataSourceSpecForTradingTermination func(childComplexity int) int QuoteName func(childComplexity int) int } UpdateInstrumentConfiguration struct { Code func(childComplexity int) int Name func(childComplexity int) int Product func(childComplexity int) int } UpdateMarket struct { MarketId func(childComplexity int) int UpdateMarketConfiguration func(childComplexity int) int } UpdateMarketConfiguration struct { EnableTxReordering func(childComplexity int) int Instrument func(childComplexity int) int LinearSlippageFactor func(childComplexity int) int LiquidationStrategy func(childComplexity int) int LiquidityFeeSettings func(childComplexity int) int LiquidityMonitoringParameters func(childComplexity int) int LiquiditySlaParameters func(childComplexity int) int MarkPriceConfiguration func(childComplexity int) int Metadata func(childComplexity int) int PriceMonitoringParameters func(childComplexity int) int QuadraticSlippageFactor func(childComplexity int) int RiskParameters func(childComplexity int) int TickSize func(childComplexity int) int } UpdateMarketLogNormalRiskModel struct { LogNormal func(childComplexity int) int } UpdateMarketSimpleRiskModel struct { Simple func(childComplexity int) int } UpdateMarketState struct { Market func(childComplexity int) int Price func(childComplexity int) int UpdateType func(childComplexity int) int } UpdateNetworkParameter struct { NetworkParameter func(childComplexity int) int } UpdatePerpetualProduct struct { ClampLowerBound func(childComplexity int) int ClampUpperBound func(childComplexity int) int DataSourceSpecBinding func(childComplexity int) int DataSourceSpecForSettlementData func(childComplexity int) int DataSourceSpecForSettlementSchedule func(childComplexity int) int FundingRateLowerBound func(childComplexity int) int FundingRateScalingFactor func(childComplexity int) int FundingRateUpperBound func(childComplexity int) int InterestRate func(childComplexity int) int MarginFundingFactor func(childComplexity int) int QuoteName func(childComplexity int) int } UpdateReferralProgram struct { BenefitTiers func(childComplexity int) int EndOfProgramTimestamp func(childComplexity int) int StakingTiers func(childComplexity int) int WindowLength func(childComplexity int) int } UpdateSpotInstrumentConfiguration struct { Code func(childComplexity int) int Name func(childComplexity int) int } UpdateSpotMarket struct { MarketId func(childComplexity int) int UpdateSpotMarketConfiguration func(childComplexity int) int } UpdateSpotMarketConfiguration struct { EnableTxReordering func(childComplexity int) int Instrument func(childComplexity int) int LiquidityFeeSettings func(childComplexity int) int LiquiditySLAParams func(childComplexity int) int Metadata func(childComplexity int) int PriceMonitoringParameters func(childComplexity int) int RiskParameters func(childComplexity int) int TargetStakeParameters func(childComplexity int) int TickSize func(childComplexity int) int } UpdateVolumeDiscountProgram struct { BenefitTiers func(childComplexity int) int EndOfProgramTimestamp func(childComplexity int) int WindowLength func(childComplexity int) int } UpdateVolumeRebateProgram struct { BenefitTiers func(childComplexity int) int EndOfProgramTimestamp func(childComplexity int) int WindowLength func(childComplexity int) int } VolumeBenefitTier struct { MinimumRunningNotionalTakerVolume func(childComplexity int) int VolumeDiscountFactor func(childComplexity int) int VolumeDiscountFactors func(childComplexity int) int } VolumeDiscountProgram struct { BenefitTiers func(childComplexity int) int EndOfProgramTimestamp func(childComplexity int) int EndedAt func(childComplexity int) int Id func(childComplexity int) int Version func(childComplexity int) int WindowLength func(childComplexity int) int } VolumeDiscountStats struct { AtEpoch func(childComplexity int) int DiscountFactor func(childComplexity int) int DiscountFactors func(childComplexity int) int PartyId func(childComplexity int) int RunningVolume func(childComplexity int) int } VolumeDiscountStatsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } VolumeDiscountStatsEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } VolumeRebateBenefitTier struct { AdditionalMakerRebate func(childComplexity int) int MinimumPartyMakerVolumeFraction func(childComplexity int) int } VolumeRebateProgram struct { BenefitTiers func(childComplexity int) int EndOfProgramTimestamp func(childComplexity int) int EndedAt func(childComplexity int) int Id func(childComplexity int) int Version func(childComplexity int) int WindowLength func(childComplexity int) int } VolumeRebateStats struct { AdditionalMakerRebate func(childComplexity int) int AtEpoch func(childComplexity int) int MakerFeeReceived func(childComplexity int) int MakerVolumeFraction func(childComplexity int) int PartyId func(childComplexity int) int } VolumeRebateStatsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } VolumeRebateStatsEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } Vote struct { Datetime func(childComplexity int) int EquityLikeSharePerMarket func(childComplexity int) int EquityLikeShareWeight func(childComplexity int) int GovernanceTokenBalance func(childComplexity int) int GovernanceTokenWeight func(childComplexity int) int Party func(childComplexity int) int ProposalId func(childComplexity int) int Value func(childComplexity int) int } VoteConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } VoteEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } Withdrawal struct { Amount func(childComplexity int) int Asset func(childComplexity int) int CreatedTimestamp func(childComplexity int) int Details func(childComplexity int) int Id func(childComplexity int) int Party func(childComplexity int) int Ref func(childComplexity int) int Status func(childComplexity int) int TxHash func(childComplexity int) int WithdrawnTimestamp func(childComplexity int) int } WithdrawalEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } WithdrawalsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } }
type CompositePriceConfigurationResolver ¶ added in v0.74.0
type CompositePriceConfigurationResolver interface { DecayPower(ctx context.Context, obj *vega.CompositePriceConfiguration) (int, error) CompositePriceType(ctx context.Context, obj *vega.CompositePriceConfiguration) (CompositePriceType, error) DataSourcesSpecBinding(ctx context.Context, obj *vega.CompositePriceConfiguration) ([]*SpecBindingForCompositePrice, error) }
type CompositePriceType ¶ added in v0.74.0
type CompositePriceType string
const ( // Composite price is calculated as a weighted average of the underlying price sources CompositePriceTypeCompositePriceTypeWeighted CompositePriceType = "COMPOSITE_PRICE_TYPE_WEIGHTED" // Composite price is calculated as a median of the underlying price sources CompositePriceTypeCompositePriceTypeMedian CompositePriceType = "COMPOSITE_PRICE_TYPE_MEDIAN" // Composite price is set to the last trade (legacy) CompositePriceTypeCompositePriceTypeLastTrade CompositePriceType = "COMPOSITE_PRICE_TYPE_LAST_TRADE" )
func (CompositePriceType) IsValid ¶ added in v0.74.0
func (e CompositePriceType) IsValid() bool
func (CompositePriceType) MarshalGQL ¶ added in v0.74.0
func (e CompositePriceType) MarshalGQL(w io.Writer)
func (CompositePriceType) String ¶ added in v0.74.0
func (e CompositePriceType) String() string
func (*CompositePriceType) UnmarshalGQL ¶ added in v0.74.0
func (e *CompositePriceType) UnmarshalGQL(v interface{}) error
type Condition ¶ added in v0.73.0
type Condition struct { // The type of comparison to make on the value. Operator v1.Condition_Operator `json:"operator"` // The value to compare against. Value *string `json:"value,omitempty"` }
Condition describes the condition that must be validated by the data source engine
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type ContinuousTrading ¶
type ContinuousTrading struct { // Size of an increment in price in terms of the quote currency TickSize string `json:"tickSize"` }
A mode where Vega tries to execute orders as soon as they are received
type CoreProxyServiceClient ¶
type CoreProxyServiceClient interface { vegaprotoapi.CoreServiceClient }
CoreProxyServiceClient ...
type CoreSnapshotDataResolver ¶ added in v0.65.0
type CurrentReferralProgramResolver ¶ added in v0.73.0
type Data ¶ added in v0.61.0
type Data struct { // signers is the list of public keys/ETH addresses that signed the data Signers []*Signer `json:"signers,omitempty"` // properties contains all the properties sent by a data source Data []*v1.Property `json:"data,omitempty"` MetaData []*v1.Property `json:"metaData,omitempty"` // List of all the data specs that matched this source data. // When the array is empty, it means no data spec matched this source data. MatchedSpecIds []string `json:"matchedSpecIds,omitempty"` // RFC3339Nano formatted date and time for when the data was broadcast to the markets // with a matching data spec. // It has no value when the source data does not match any data spec. BroadcastAt int64 `json:"broadcastAt"` }
A data source contains the data sent by a data source
type DataSourceDefinitionExternalResolver ¶ added in v0.72.0
type DataSourceDefinitionExternalResolver interface {
SourceType(ctx context.Context, obj *vega.DataSourceDefinitionExternal) (ExternalDataSourceKind, error)
}
type DataSourceDefinitionInternalResolver ¶ added in v0.72.0
type DataSourceDefinitionInternalResolver interface {
SourceType(ctx context.Context, obj *vega.DataSourceDefinitionInternal) (InternalDataSourceKind, error)
}
type DataSourceDefinitionResolver ¶ added in v0.72.0
type DataSourceDefinitionResolver interface {
SourceType(ctx context.Context, obj *vega.DataSourceDefinition) (DataSourceKind, error)
}
type DataSourceKind ¶ added in v0.62.0
type DataSourceKind interface {
IsDataSourceKind()
}
type DataSourceSpec ¶ added in v0.61.0
type DataSourceSpec struct { // ID is a hash generated from the DataSourceSpec data. ID string `json:"id"` // RFC3339Nano creation date time CreatedAt int64 `json:"createdAt"` // RFC3339Nano last updated timestamp UpdatedAt *int64 `json:"updatedAt,omitempty"` Data *vega.DataSourceDefinition `json:"data"` // Status describes the status of the data source spec Status DataSourceSpecStatus `json:"status"` }
An data source specification describes the data source data that a product (or a risk model) wants to get from the oracle engine.
type DataSourceSpecConfigurationResolver ¶ added in v0.61.0
type DataSourceSpecConfigurationTimeResolver ¶ added in v0.73.0
type DataSourceSpecConfigurationTimeTriggerResolver ¶ added in v0.73.0
type DataSourceSpecStatus ¶ added in v0.61.0
type DataSourceSpecStatus string
Describes the status of the data spec
const ( // Describes an active data spec DataSourceSpecStatusStatusActive DataSourceSpecStatus = "STATUS_ACTIVE" // Describes a data spec that is not listening to data // anymore DataSourceSpecStatusStatusDeactivated DataSourceSpecStatus = "STATUS_DEACTIVATED" )
func (DataSourceSpecStatus) IsValid ¶ added in v0.61.0
func (e DataSourceSpecStatus) IsValid() bool
func (DataSourceSpecStatus) MarshalGQL ¶ added in v0.61.0
func (e DataSourceSpecStatus) MarshalGQL(w io.Writer)
func (DataSourceSpecStatus) String ¶ added in v0.61.0
func (e DataSourceSpecStatus) String() string
func (*DataSourceSpecStatus) UnmarshalGQL ¶ added in v0.61.0
func (e *DataSourceSpecStatus) UnmarshalGQL(v interface{}) error
type DateRangeResolver ¶ added in v0.55.0
type DelegationResolver ¶
type DepositResolver ¶
type DirectiveRoot ¶
type DirectiveRoot struct { }
type DiscountFactors ¶ added in v0.77.8
type DiscountFactors struct { // The proportion of the referee's taker infrastructure fees to be discounted InfrastructureFactor string `json:"infrastructureFactor"` // The proportion of the referee's taker maker fees to be discounted MakerFactor string `json:"makerFactor"` // The proportion of the referee's taker liquidity fees to be discounted LiquidityFactor string `json:"liquidityFactor"` }
type DiscreteTrading ¶
type DiscreteTrading struct { // Duration of the discrete trading batch in nanoseconds. Maximum 1 month. Duration int `json:"duration"` // Size of an increment in price in terms of the quote currency TickSize string `json:"tickSize"` }
Frequent batch auctions trading mode
type DispatchStrategyResolver ¶ added in v0.73.0
type DispatchStrategyResolver interface { DispatchMetric(ctx context.Context, obj *vega.DispatchStrategy) (vega.DispatchMetric, error) DispatchMetricAssetID(ctx context.Context, obj *vega.DispatchStrategy) (string, error) MarketIdsInScope(ctx context.Context, obj *vega.DispatchStrategy) ([]string, error) WindowLength(ctx context.Context, obj *vega.DispatchStrategy) (int, error) LockPeriod(ctx context.Context, obj *vega.DispatchStrategy) (int, error) }
type ERC20MultiSigSignerAddedBundleEdge ¶ added in v0.55.0
type ERC20MultiSigSignerAddedBundleEdge struct { Node *v2.ERC20MultiSigSignerAddedBundle `json:"node"` Cursor string `json:"cursor"` }
type ERC20MultiSigSignerAddedBundleResolver ¶ added in v0.71.0
type ERC20MultiSigSignerAddedConnection ¶ added in v0.55.0
type ERC20MultiSigSignerAddedConnection struct { Edges []*ERC20MultiSigSignerAddedBundleEdge `json:"edges,omitempty"` PageInfo *v2.PageInfo `json:"pageInfo,omitempty"` }
Response for the signature bundle to add a particular validator to the signer list of the multisig contract
type ERC20MultiSigSignerRemovedBundleEdge ¶ added in v0.55.0
type ERC20MultiSigSignerRemovedBundleEdge struct { Node *v2.ERC20MultiSigSignerRemovedBundle `json:"node"` Cursor string `json:"cursor"` }
type ERC20MultiSigSignerRemovedBundleResolver ¶ added in v0.71.0
type ERC20MultiSigSignerRemovedConnection ¶ added in v0.55.0
type ERC20MultiSigSignerRemovedConnection struct { // The list of signer bundles for that validator Edges []*ERC20MultiSigSignerRemovedBundleEdge `json:"edges,omitempty"` // The pagination information PageInfo *v2.PageInfo `json:"pageInfo,omitempty"` }
Response for the signature bundle to remove a particular validator from the signer list of the multisig contract
type ERC20SetAssetLimitsBundle ¶ added in v0.55.0
type ERC20SetAssetLimitsBundle struct { // The address of the asset on ethereum AssetSource string `json:"assetSource"` // The ID of the vega asset VegaAssetID string `json:"vegaAssetId"` // The nonce, which is actually the internal reference for the proposal Nonce string `json:"nonce"` // The lifetime limit deposit for this asset LifetimeLimit string `json:"lifetimeLimit"` // The threshold withdraw for this asset Threshold string `json:"threshold"` // The signatures bundle as hex encoded data, forward by 0x // e.g: 0x + sig1 + sig2 + ... + sixN Signatures string `json:"signatures"` }
Response for the signature bundle to update the token limits (maxLifetimeDeposit and withdrawThreshold) for a given ERC20 token (already allowlisted) in the collateral bridge
type ETHAddress ¶ added in v0.61.0
type ETHAddress struct {
Address *string `json:"address,omitempty"`
}
func (ETHAddress) IsSignerKind ¶ added in v0.61.0
func (ETHAddress) IsSignerKind()
type EpochParticipation ¶
type EpochParticipation struct { Epoch *vega.Epoch `json:"epoch,omitempty"` // RFC3339 timestamp Offline *int64 `json:"offline,omitempty"` // RFC3339 timestamp Online *int64 `json:"online,omitempty"` // Total amount rewarded for participation in the given epoch TotalRewards *float64 `json:"totalRewards,omitempty"` }
Summary of a node's rewards for a given epoch
type EpochResolver ¶
type EpochResolver interface { ID(ctx context.Context, obj *vega.Epoch) (string, error) ValidatorsConnection(ctx context.Context, obj *vega.Epoch, pagination *v2.Pagination) (*v2.NodesConnection, error) DelegationsConnection(ctx context.Context, obj *vega.Epoch, partyID *string, nodeID *string, pagination *v2.Pagination) (*v2.DelegationsConnection, error) }
type EpochRewardSummaryResolver ¶ added in v0.65.0
type EpochRewardSummaryResolver interface { Epoch(ctx context.Context, obj *vega.EpochRewardSummary) (int, error) RewardType(ctx context.Context, obj *vega.EpochRewardSummary) (vega.AccountType, error) }
type EpochTimestampsResolver ¶
type EpochTimestampsResolver interface { Start(ctx context.Context, obj *vega.EpochTimestamps) (*int64, error) Expiry(ctx context.Context, obj *vega.EpochTimestamps) (*int64, error) End(ctx context.Context, obj *vega.EpochTimestamps) (*int64, error) FirstBlock(ctx context.Context, obj *vega.EpochTimestamps) (string, error) LastBlock(ctx context.Context, obj *vega.EpochTimestamps) (*string, error) }
type EquityLikeShareWeightPerMarketResolver ¶ added in v0.74.5
type EquityLikeShareWeightPerMarketResolver interface {
}type Erc20 ¶
type Erc20 struct { // The address of the ERC20 contract ContractAddress string `json:"contractAddress"` // The lifetime limits deposit per address // Note: this is a temporary measure that can be changed by governance LifetimeLimit string `json:"lifetimeLimit"` // The maximum you can withdraw instantly. All withdrawals over the threshold will be delayed by the withdrawal delay. // There is no limit on the size of a withdrawal // Note: this is a temporary measure that can be changed by governance WithdrawThreshold string `json:"withdrawThreshold"` // The chain ID the asset originates from. ChainID string `json:"chainId"` }
An asset originated from an Ethereum ERC20 Token
func ERC20FromProto ¶
func (Erc20) IsAssetSource ¶
func (Erc20) IsAssetSource()
type Erc20ListAssetBundle ¶ added in v0.55.0
type Erc20ListAssetBundle struct { // The source asset in the ethereum network AssetSource string `json:"assetSource"` // The ID of the vega asset VegaAssetID string `json:"vegaAssetId"` // The nonce to be used in the request Nonce string `json:"nonce"` // Signature aggregate from the nodes, in the following format: // 0x + sig1 + sig2 + ... + sigN Signatures string `json:"signatures"` }
Response for the signature bundle to allowlist an ERC20 token in the collateral bridge
type Erc20WithdrawalApproval ¶
type Erc20WithdrawalApproval struct { // The source asset on the bridged EVM chain AssetSource string `json:"assetSource"` // The amount to be withdrawn Amount string `json:"amount"` // The nonce to be used in the request Nonce string `json:"nonce"` // Signature aggregate from the nodes, in the following format: // 0x + sig1 + sig2 + ... + sigN Signatures string `json:"signatures"` // The target address that will receive the funds TargetAddress string `json:"targetAddress"` // RFC3339Nano timestamp at which the withdrawal was created Creation string `json:"creation"` // The chain ID of the bridged EVM chain SourceChainID string `json:"sourceChainId"` }
All the data related to the approval of a withdrawal from the network
type Erc20WithdrawalDetails ¶
type Erc20WithdrawalDetails struct { // The ethereum address of the receiver of the asset funds ReceiverAddress string `json:"receiverAddress"` }
Specific details for an erc20 withdrawal
func (Erc20WithdrawalDetails) IsWithdrawalDetails ¶
func (Erc20WithdrawalDetails) IsWithdrawalDetails()
type EthCallSpecResolver ¶ added in v0.73.0
type EthCallSpecResolver interface { Abi(ctx context.Context, obj *vega.EthCallSpec) ([]string, error) Args(ctx context.Context, obj *vega.EthCallSpec) ([]string, error) Trigger(ctx context.Context, obj *vega.EthCallSpec) (*EthCallTrigger, error) RequiredConfirmations(ctx context.Context, obj *vega.EthCallSpec) (int, error) Normalisers(ctx context.Context, obj *vega.EthCallSpec) ([]*Normaliser, error) Filters(ctx context.Context, obj *vega.EthCallSpec) ([]*Filter, error) SourceChainID(ctx context.Context, obj *vega.EthCallSpec) (int, error) }
type EthCallTrigger ¶ added in v0.73.0
type EthCallTrigger struct {
Trigger TriggerKind `json:"trigger"`
}
EthCallTrigger is the type of trigger used to make calls to Ethereum network.
type EthTimeTrigger ¶ added in v0.73.0
type EthTimeTrigger struct { // Trigger when the Ethereum time is greater or equal to this time, in Unix seconds. Initial *int64 `json:"initial,omitempty"` // Repeat the call every n seconds after the initial call. If no time for // initial call was specified, begin repeating immediately. Every *int `json:"every,omitempty"` // If repeating, stop once Ethereum time is greater than this time, in Unix // seconds. If not set, then repeat indefinitely. Until *int64 `json:"until,omitempty"` }
Trigger for an Ethereum call based on the Ethereum block timestamp. Can be one-off or repeating.
func (EthTimeTrigger) IsTriggerKind ¶ added in v0.73.0
func (EthTimeTrigger) IsTriggerKind()
type EthereumEvent ¶
type EthereumEvent struct { // The ID of the ethereum contract to use (string) ContractID string `json:"contractId"` // Name of the Ethereum event to listen to. (string) Event string `json:"event"` }
An Ethereum data source
func (EthereumEvent) IsOracle ¶
func (EthereumEvent) IsOracle()
type Event ¶
type Event interface {
IsEvent()
}
Union type for wrapped events in stream PROPOSAL is mapped to governance data, something to keep in mind
type ExternalData ¶ added in v0.61.0
type ExternalData struct {
Data *Data `json:"data"`
}
type ExternalDataSourceKind ¶ added in v0.62.0
type ExternalDataSourceKind interface {
IsExternalDataSourceKind()
}
type ExternalDataSourceSpec ¶ added in v0.61.0
type ExternalDataSourceSpec struct {
Spec *DataSourceSpec `json:"spec"`
}
externalDataSourceSpec is the type that wraps the DataSourceSpec type in order to be further used/extended by the OracleSpec
type FeeEstimate ¶ added in v0.71.0
type FeeEstimate struct { // The estimated fees if the order was to trade Fees *TradeFee `json:"fees"` // The total estimated amount of fees if the order was to trade TotalFeeAmount string `json:"totalFeeAmount"` }
An estimate of the fee to be paid for the order
type FeesStatsResolver ¶ added in v0.73.0
type Filter ¶ added in v0.73.0
type Filter struct { // key is the data source data property key targeted by the filter. Key *PropertyKey `json:"key"` // The conditions that should be matched by the data to be // considered of interest. Conditions []*Condition `json:"conditions,omitempty"` }
Filter describes the conditions under which oracle data is considered of interest or not.
type FundingPaymentResolver ¶ added in v0.73.0
type FundingPeriodDataPointResolver ¶ added in v0.73.0
type FundingPeriodDataPointResolver interface { Seq(ctx context.Context, obj *v1.FundingPeriodDataPoint) (int, error) DataPointSource(ctx context.Context, obj *v1.FundingPeriodDataPoint) (*v1.FundingPeriodDataPoint_Source, error) }
type FundingPeriodResolver ¶ added in v0.73.0
type FutureProductResolver ¶
type FutureResolver ¶
type FutureResolver interface { SettlementAsset(ctx context.Context, obj *vega.Future) (*vega.Asset, error) DataSourceSpecForSettlementData(ctx context.Context, obj *vega.Future) (*DataSourceSpec, error) DataSourceSpecForTradingTermination(ctx context.Context, obj *vega.Future) (*DataSourceSpec, error) }
type GameEntity ¶ added in v0.74.0
type GameEntity interface {
IsGameEntity()
}
type GamePartyScoreFilter ¶ added in v0.77.0
type GamePartyScoreFilter struct { // Zero or more game IDs to filter by GameIds []string `json:"gameIds,omitempty"` // Zero or more team IDs to filter by TeamIds []string `json:"teamIds,omitempty"` // Zero or more party IDs to filter by PartyIds []string `json:"partyIds,omitempty"` // Optional 'from epoch' ID for scores epoch interval EpochFrom *int `json:"epochFrom,omitempty"` // Optional 'to epoch' ID for scores epoch interval EpochTo *int `json:"epochTo,omitempty"` }
type GamePartyScoreResolver ¶ added in v0.77.0
type GameResolver ¶ added in v0.74.0
type GameTeamScoreFilter ¶ added in v0.77.0
type GameTeamScoreFilter struct { // Zero or more game IDs to filter by GameIds []string `json:"gameIds,omitempty"` // Zero or more team IDs to filter by TeamIds []string `json:"teamIds,omitempty"` // Optional 'from epoch' ID for scores epoch interval EpochFrom *int `json:"epochFrom,omitempty"` // Optional 'to epoch' ID for scores epoch interval EpochTo *int `json:"epochTo,omitempty"` }
type GameTeamScoreResolver ¶ added in v0.77.0
type GovernanceTransferKind ¶ added in v0.72.0
type GovernanceTransferKind interface {
IsGovernanceTransferKind()
}
type GovernanceTransferType ¶ added in v0.72.0
type GovernanceTransferType string
const ( // Default value, always invalid GovernanceTransferTypeGovernanceTransferTypeUnspecified GovernanceTransferType = "GOVERNANCE_TRANSFER_TYPE_UNSPECIFIED" // Transfers the specified amount or does not transfer anything GovernanceTransferTypeGovernanceTransferTypeAllOrNothing GovernanceTransferType = "GOVERNANCE_TRANSFER_TYPE_ALL_OR_NOTHING" // Transfers the specified amount or the max allowable amount if this is less than the specified amount GovernanceTransferTypeGovernanceTransferTypeBestEffort GovernanceTransferType = "GOVERNANCE_TRANSFER_TYPE_BEST_EFFORT" )
func (GovernanceTransferType) IsValid ¶ added in v0.72.0
func (e GovernanceTransferType) IsValid() bool
func (GovernanceTransferType) MarshalGQL ¶ added in v0.72.0
func (e GovernanceTransferType) MarshalGQL(w io.Writer)
func (GovernanceTransferType) String ¶ added in v0.72.0
func (e GovernanceTransferType) String() string
func (*GovernanceTransferType) UnmarshalGQL ¶ added in v0.72.0
func (e *GovernanceTransferType) UnmarshalGQL(v interface{}) error
type GraphServer ¶
GraphServer is the graphql server.
func New ¶
func New( log *logging.Logger, config gateway.Config, vegaPaths paths.Paths, ) (*GraphServer, error)
New returns a new instance of the grapqhl server.
func (*GraphServer) ReloadConf ¶
func (g *GraphServer) ReloadConf(cfg gateway.Config)
ReloadConf update the internal configuration of the graphql server.
type IcebergOrderResolver ¶ added in v0.72.0
type IndividualGameEntity ¶ added in v0.74.0
type IndividualGameEntity struct { // Party ID of the participant Individual string `json:"individual"` // The rank of the individual within the game. If the individual is in a team, then the rank of the individual in the team Rank int `json:"rank"` // The volume traded by the individual Volume string `json:"volume"` // The reward metric applied to the game RewardMetric vega.DispatchMetric `json:"rewardMetric"` // The rewards earned by the individual during the epoch RewardEarned string `json:"rewardEarned"` // Total rewards earned by the individual during the game TotalRewardsEarned string `json:"totalRewardsEarned"` // The rewards earned by the individual during the epoch in quantum value RewardEarnedQuantum string `json:"rewardEarnedQuantum"` // Total rewards earned by the individual during the game in quantum value TotalRewardsEarnedQuantum string `json:"totalRewardsEarnedQuantum"` }
Individual party participating in a game and their metrics
func (IndividualGameEntity) IsGameEntity ¶ added in v0.74.0
func (IndividualGameEntity) IsGameEntity()
type InstrumentConfigurationResolver ¶
type InstrumentConfigurationResolver interface { FutureProduct(ctx context.Context, obj *vega.InstrumentConfiguration) (*vega.FutureProduct, error) Product(ctx context.Context, obj *vega.InstrumentConfiguration) (ProductConfiguration, error) }
type InstrumentResolver ¶
type InternalDataSourceKind ¶ added in v0.62.0
type InternalDataSourceKind interface {
IsInternalDataSourceKind()
}
type KeyRotationResolver ¶
type LedgerEntryResolver ¶ added in v0.71.0
type LedgerEntryResolver interface { FromAccountID(ctx context.Context, obj *vega.LedgerEntry) (*vega.AccountDetails, error) ToAccountID(ctx context.Context, obj *vega.LedgerEntry) (*vega.AccountDetails, error) }
type LiquidationStrategyResolver ¶ added in v0.74.0
type LiquidityMonitoringParameters ¶
type LiquidityMonitoringParameters struct { // Specifies parameters related to target stake calculation TargetStakeParameters *TargetStakeParameters `json:"targetStakeParameters"` }
Configuration of a market liquidity monitoring parameters
type LiquidityProviderFeeShare ¶
type LiquidityProviderFeeShare struct { vega.Party `json:"party"` EquityLikeShare string `json:"equityLikeShare"` AverageEntryValuation string `json:"averageEntryValuation"` AverageScore string `json:"averageScore"` VirtualStake string `json:"virtualStake"` }Party *
The equity-like share of liquidity fee for each liquidity provider
type LiquidityProviderResolver ¶ added in v0.73.0
type LiquidityProviderResolver interface { SLA(ctx context.Context, obj *v2.LiquidityProvider) (*LiquidityProviderSLA, error) }
type LiquidityProviderSLA ¶ added in v0.73.0
type LiquidityProviderSLA struct { // The liquidity provider party ID Party *vega.Party `json:"party"` // Indicates how often LP meets the commitment during the current epoch. CurrentEpochFractionOfTimeOnBook string `json:"currentEpochFractionOfTimeOnBook"` // Indicates how often LP met the commitment in the previous epoch. LastEpochFractionOfTimeOnBook string `json:"lastEpochFractionOfTimeOnBook"` // Indicates the fee penalty amount applied in the previous epoch. LastEpochFeePenalty string `json:"lastEpochFeePenalty"` // Indicates the bond penalty amount applied in the previous epoch. LastEpochBondPenalty string `json:"lastEpochBondPenalty"` // Determines how the fee penalties from past epochs affect future fee revenue. HysteresisPeriodFeePenalties []string `json:"hysteresisPeriodFeePenalties,omitempty"` // Represents the total amount of funds LP must supply. The amount to be supplied is in the market’s settlement currency, spread on both buy and sell sides of the order book within a defined range. RequiredLiquidity string `json:"requiredLiquidity"` // Notional volume of orders within the range provided on the buy side of the book. NotionalVolumeBuys string `json:"notionalVolumeBuys"` // Notional volume of orders within the range provided on the sell side of the book. NotionalVolumeSells string `json:"notionalVolumeSells"` }
The SLA statistics for each liquidity provider
type LiquidityProvisionUpdateResolver ¶ added in v0.55.0
type LiquiditySLAParametersResolver ¶ added in v0.73.0
type LossSocialization ¶
type MarginEstimateResolver ¶ added in v0.74.0
type MarginEstimateResolver interface { WorstCase(ctx context.Context, obj *v2.MarginEstimate) (*AbstractMarginLevels, error) BestCase(ctx context.Context, obj *v2.MarginEstimate) (*AbstractMarginLevels, error) }
type MarginLevelsResolver ¶
type MarginLevelsResolver interface { Market(ctx context.Context, obj *vega.MarginLevels) (*vega.Market, error) Asset(ctx context.Context, obj *vega.MarginLevels) (*vega.Asset, error) Party(ctx context.Context, obj *vega.MarginLevels) (*vega.Party, error) MaintenanceLevel(ctx context.Context, obj *vega.MarginLevels) (string, error) InitialLevel(ctx context.Context, obj *vega.MarginLevels) (string, error) OrderMarginLevel(ctx context.Context, obj *vega.MarginLevels) (string, error) }
type MarginLevelsUpdateResolver ¶ added in v0.55.0
type MarketDataCommitments ¶
type MarketDataCommitments struct { // A set of liquidity sell orders to meet the liquidity provision obligation. Sells []*vega.LiquidityOrderReference `json:"sells,omitempty"` // A set of liquidity buy orders to meet the liquidity provision obligation. Buys []*vega.LiquidityOrderReference `json:"buys,omitempty"` }
The liquidity commitments for this market
type MarketDataResolver ¶
type MarketDataResolver interface { Market(ctx context.Context, obj *vega.MarketData) (*vega.Market, error) MarkPriceType(ctx context.Context, obj *vega.MarketData) (CompositePriceType, error) BestBidVolume(ctx context.Context, obj *vega.MarketData) (string, error) BestOfferVolume(ctx context.Context, obj *vega.MarketData) (string, error) BestStaticBidVolume(ctx context.Context, obj *vega.MarketData) (string, error) BestStaticOfferVolume(ctx context.Context, obj *vega.MarketData) (string, error) OpenInterest(ctx context.Context, obj *vega.MarketData) (string, error) AuctionEnd(ctx context.Context, obj *vega.MarketData) (*string, error) AuctionStart(ctx context.Context, obj *vega.MarketData) (*string, error) IndicativeVolume(ctx context.Context, obj *vega.MarketData) (string, error) Commitments(ctx context.Context, obj *vega.MarketData) (*MarketDataCommitments, error) PriceMonitoringBounds(ctx context.Context, obj *vega.MarketData) ([]*PriceMonitoringBounds, error) LiquidityProviderSLA(ctx context.Context, obj *vega.MarketData) ([]*LiquidityProviderSLA, error) NextMarkToMarket(ctx context.Context, obj *vega.MarketData) (string, error) ProductData(ctx context.Context, obj *vega.MarketData) (ProductData, error) NextNetworkCloseout(ctx context.Context, obj *vega.MarketData) (string, error) }
type MarketDepthResolver ¶
type MarketDepthTrade ¶
type MarketEvent ¶
type MarketLogEvent ¶
type MarketResolver ¶
type MarketResolver interface { DecimalPlaces(ctx context.Context, obj *vega.Market) (int, error) OpeningAuction(ctx context.Context, obj *vega.Market) (*AuctionDuration, error) PriceMonitoringSettings(ctx context.Context, obj *vega.Market) (*PriceMonitoringSettings, error) LiquidityMonitoringParameters(ctx context.Context, obj *vega.Market) (*LiquidityMonitoringParameters, error) Proposal(ctx context.Context, obj *vega.Market) (*vega.GovernanceData, error) MarketProposal(ctx context.Context, obj *vega.Market) (ProposalNode, error) OrdersConnection(ctx context.Context, obj *vega.Market, pagination *v2.Pagination, filter *OrderByPartyIdsFilter) (*v2.OrderConnection, error) AccountsConnection(ctx context.Context, obj *vega.Market, partyID *string, pagination *v2.Pagination, includeDerivedParties *bool) (*v2.AccountsConnection, error) TradesConnection(ctx context.Context, obj *vega.Market, dateRange *v2.DateRange, pagination *v2.Pagination) (*v2.TradeConnection, error) Depth(ctx context.Context, obj *vega.Market, maxDepth *int) (*vega.MarketDepth, error) CandlesConnection(ctx context.Context, obj *vega.Market, since string, to *string, interval vega.Interval, pagination *v2.Pagination) (*v2.CandleDataConnection, error) Data(ctx context.Context, obj *vega.Market) (*vega.MarketData, error) LiquidityProvisions(ctx context.Context, obj *vega.Market, partyID *string, live *bool, pagination *v2.Pagination) (*v2.LiquidityProvisionsWithPendingConnection, error) LiquidityProvisionsConnection(ctx context.Context, obj *vega.Market, partyID *string, live *bool, pagination *v2.Pagination) (*v2.LiquidityProvisionsConnection, error) RiskFactors(ctx context.Context, obj *vega.Market) (*vega.RiskFactor, error) LiquiditySLAParameters(ctx context.Context, obj *vega.Market) (*vega.LiquiditySLAParameters, error) EnableTxReordering(ctx context.Context, obj *vega.Market) (bool, error) }
type MarketTick ¶
type MarketUpdateType ¶ added in v0.73.0
type MarketUpdateType string
const ( // Default value, always invalid MarketUpdateTypeMarketStateUpdateTypeUnspecified MarketUpdateType = "MARKET_STATE_UPDATE_TYPE_UNSPECIFIED" // Terminate the market MarketUpdateTypeMarketStateUpdateTypeTerminate MarketUpdateType = "MARKET_STATE_UPDATE_TYPE_TERMINATE" // Suspend the market MarketUpdateTypeMarketStateUpdateTypeSuspend MarketUpdateType = "MARKET_STATE_UPDATE_TYPE_SUSPEND" // Resume a suspended market MarketUpdateTypeMarketStateUpdateTypeResume MarketUpdateType = "MARKET_STATE_UPDATE_TYPE_RESUME" )
func (MarketUpdateType) IsValid ¶ added in v0.73.0
func (e MarketUpdateType) IsValid() bool
func (MarketUpdateType) MarshalGQL ¶ added in v0.73.0
func (e MarketUpdateType) MarshalGQL(w io.Writer)
func (MarketUpdateType) String ¶ added in v0.73.0
func (e MarketUpdateType) String() string
func (*MarketUpdateType) UnmarshalGQL ¶ added in v0.73.0
func (e *MarketUpdateType) UnmarshalGQL(v interface{}) error
type NewAssetResolver ¶
type NewAssetResolver interface { Name(ctx context.Context, obj *vega.NewAsset) (string, error) Symbol(ctx context.Context, obj *vega.NewAsset) (string, error) Decimals(ctx context.Context, obj *vega.NewAsset) (int, error) Quantum(ctx context.Context, obj *vega.NewAsset) (string, error) Source(ctx context.Context, obj *vega.NewAsset) (AssetSource, error) }
type NewFreeformResolver ¶
type NewMarketResolver ¶
type NewMarketResolver interface { Instrument(ctx context.Context, obj *vega.NewMarket) (*vega.InstrumentConfiguration, error) DecimalPlaces(ctx context.Context, obj *vega.NewMarket) (int, error) RiskParameters(ctx context.Context, obj *vega.NewMarket) (RiskModel, error) Metadata(ctx context.Context, obj *vega.NewMarket) ([]string, error) PriceMonitoringParameters(ctx context.Context, obj *vega.NewMarket) (*PriceMonitoringParameters, error) LiquidityMonitoringParameters(ctx context.Context, obj *vega.NewMarket) (*LiquidityMonitoringParameters, error) PositionDecimalPlaces(ctx context.Context, obj *vega.NewMarket) (int, error) LinearSlippageFactor(ctx context.Context, obj *vega.NewMarket) (string, error) QuadraticSlippageFactor(ctx context.Context, obj *vega.NewMarket) (string, error) SuccessorConfiguration(ctx context.Context, obj *vega.NewMarket) (*vega.SuccessorConfiguration, error) LiquiditySLAParameters(ctx context.Context, obj *vega.NewMarket) (*vega.LiquiditySLAParameters, error) LiquidityFeeSettings(ctx context.Context, obj *vega.NewMarket) (*vega.LiquidityFeeSettings, error) LiquidationStrategy(ctx context.Context, obj *vega.NewMarket) (*vega.LiquidationStrategy, error) MarkPriceConfiguration(ctx context.Context, obj *vega.NewMarket) (*vega.CompositePriceConfiguration, error) TickSize(ctx context.Context, obj *vega.NewMarket) (string, error) EnableTxReordering(ctx context.Context, obj *vega.NewMarket) (bool, error) }
type NewSpotMarketResolver ¶ added in v0.73.0
type NewSpotMarketResolver interface { Instrument(ctx context.Context, obj *vega.NewSpotMarket) (*vega.InstrumentConfiguration, error) PriceDecimalPlaces(ctx context.Context, obj *vega.NewSpotMarket) (int, error) Metadata(ctx context.Context, obj *vega.NewSpotMarket) ([]string, error) PriceMonitoringParameters(ctx context.Context, obj *vega.NewSpotMarket) (*PriceMonitoringParameters, error) TargetStakeParameters(ctx context.Context, obj *vega.NewSpotMarket) (*TargetStakeParameters, error) RiskParameters(ctx context.Context, obj *vega.NewSpotMarket) (RiskModel, error) SizeDecimalPlaces(ctx context.Context, obj *vega.NewSpotMarket) (int, error) LiquiditySLAParams(ctx context.Context, obj *vega.NewSpotMarket) (*vega.LiquiditySLAParameters, error) LiquidityFeeSettings(ctx context.Context, obj *vega.NewSpotMarket) (*vega.LiquidityFeeSettings, error) TickSize(ctx context.Context, obj *vega.NewSpotMarket) (string, error) EnableTxReordering(ctx context.Context, obj *vega.NewSpotMarket) (bool, error) }
type NewTransferResolver ¶ added in v0.72.0
type NewTransferResolver interface { Source(ctx context.Context, obj *vega.NewTransfer) (string, error) SourceType(ctx context.Context, obj *vega.NewTransfer) (vega.AccountType, error) Destination(ctx context.Context, obj *vega.NewTransfer) (string, error) DestinationType(ctx context.Context, obj *vega.NewTransfer) (vega.AccountType, error) Asset(ctx context.Context, obj *vega.NewTransfer) (*vega.Asset, error) FractionOfBalance(ctx context.Context, obj *vega.NewTransfer) (string, error) Amount(ctx context.Context, obj *vega.NewTransfer) (string, error) TransferType(ctx context.Context, obj *vega.NewTransfer) (GovernanceTransferType, error) Kind(ctx context.Context, obj *vega.NewTransfer) (GovernanceTransferKind, error) }
type NodeDataResolver ¶
type NodeDataResolver interface { TendermintNodes(ctx context.Context, obj *vega.NodeData) (*NodeSet, error) ErsatzNodes(ctx context.Context, obj *vega.NodeData) (*NodeSet, error) PendingNodes(ctx context.Context, obj *vega.NodeData) (*NodeSet, error) Uptime(ctx context.Context, obj *vega.NodeData) (float64, error) }
type NodeResolver ¶
type NodeResolver interface {
DelegationsConnection(ctx context.Context, obj *vega.Node, partyID *string, pagination *v2.Pagination) (*v2.DelegationsConnection, error)
}
type NodeSet ¶ added in v0.63.0
type NodeSet struct { // Total number of nodes in the node set Total int `json:"total"` // Number of nodes in the node set that had a performance score of 0 at the end of the last epoch Inactive int `json:"inactive"` // IDs of the nodes that were promoted into this node set at the start of the epoch Promoted []string `json:"promoted,omitempty"` // IDs of the nodes that were demoted into this node set at the start of the epoch Demoted []string `json:"demoted,omitempty"` // Total number of nodes allowed in the node set Maximum *int `json:"maximum,omitempty"` }
Details on the collection of nodes for particular validator status
type NodeSignatureResolver ¶
type Normaliser ¶ added in v0.73.0
Normaliser to convert the data returned from the contract method into a standard format.
type ObservableLiquidityProviderFeeShare ¶
type ObservableLiquidityProviderFeeShare struct { string `json:"partyId"` EquityLikeShare string `json:"equityLikeShare"` AverageEntryValuation string `json:"averageEntryValuation"` AverageScore string `json:"averageScore"` }PartyID
The equity-like share of liquidity fee for each liquidity provider
type ObservableLiquidityProviderSLA ¶ added in v0.73.0
type ObservableLiquidityProviderSLA struct { // The liquidity provider party ID Party string `json:"party"` // Indicates how often LP meets the commitment during the current epoch. CurrentEpochFractionOfTimeOnBook string `json:"currentEpochFractionOfTimeOnBook"` // Indicates how often LP meets the commitment during last epoch. LastEpochFractionOfTimeOnBook string `json:"lastEpochFractionOfTimeOnBook"` // Indicates the fee penalty amount applied in the previous epoch. LastEpochFeePenalty string `json:"lastEpochFeePenalty"` // Indicates the bond penalty amount applied in the previous epoch. LastEpochBondPenalty string `json:"lastEpochBondPenalty"` // Determines how the fee penalties from past epochs affect future fee revenue. HysteresisPeriodFeePenalties []string `json:"hysteresisPeriodFeePenalties,omitempty"` // Represents the total amount of funds LP must supply. The amount to be supplied is in the market’s settlement currency, spread on both buy and sell sides of the order book within a defined range. RequiredLiquidity string `json:"requiredLiquidity"` // Notional volume of orders within the range provided on the buy side of the book. NotionalVolumeBuys string `json:"notionalVolumeBuys"` // Notional volume of orders within the range provided on the sell side of the book. NotionalVolumeSells string `json:"notionalVolumeSells"` }
The SLA statistics for each liquidity provider
type ObservableMarketDataResolver ¶
type ObservableMarketDataResolver interface { MarketID(ctx context.Context, obj *vega.MarketData) (string, error) BestBidVolume(ctx context.Context, obj *vega.MarketData) (string, error) BestOfferVolume(ctx context.Context, obj *vega.MarketData) (string, error) BestStaticBidVolume(ctx context.Context, obj *vega.MarketData) (string, error) BestStaticOfferVolume(ctx context.Context, obj *vega.MarketData) (string, error) OpenInterest(ctx context.Context, obj *vega.MarketData) (string, error) AuctionEnd(ctx context.Context, obj *vega.MarketData) (*string, error) AuctionStart(ctx context.Context, obj *vega.MarketData) (*string, error) IndicativeVolume(ctx context.Context, obj *vega.MarketData) (string, error) PriceMonitoringBounds(ctx context.Context, obj *vega.MarketData) ([]*PriceMonitoringBounds, error) LiquidityProviderSLA(ctx context.Context, obj *vega.MarketData) ([]*ObservableLiquidityProviderSLA, error) NextMarkToMarket(ctx context.Context, obj *vega.MarketData) (string, error) ProductData(ctx context.Context, obj *vega.MarketData) (ProductData, error) MarkPriceType(ctx context.Context, obj *vega.MarketData) (CompositePriceType, error) }
type ObservableMarketDepthResolver ¶
type ObservableMarketDepthResolver interface { LastTrade(ctx context.Context, obj *vega.MarketDepth) (*MarketDepthTrade, error) SequenceNumber(ctx context.Context, obj *vega.MarketDepth) (string, error) }
type OracleDataResolver ¶
type OracleDataResolver interface {
ExternalData(ctx context.Context, obj *vega.OracleData) (*ExternalData, error)
}
type OracleSpecResolver ¶
type OracleSpecResolver interface { DataSourceSpec(ctx context.Context, obj *vega.OracleSpec) (*ExternalDataSourceSpec, error) DataConnection(ctx context.Context, obj *vega.OracleSpec, pagination *v2.Pagination) (*v2.OracleDataConnection, error) }
type OrderByMarketAndPartyIdsFilter ¶ added in v0.70.0
type OrderByMarketAndPartyIdsFilter struct { Order *v2.OrderFilter `json:"order,omitempty"` MarketIds []string `json:"marketIds,omitempty"` PartyIds []string `json:"partyIds,omitempty"` }
type OrderByMarketIdsFilter ¶ added in v0.70.0
type OrderByMarketIdsFilter struct { Order *v2.OrderFilter `json:"order,omitempty"` MarketIds []string `json:"marketIds,omitempty"` }
type OrderByPartyIdsFilter ¶ added in v0.70.0
type OrderByPartyIdsFilter struct { Order *v2.OrderFilter `json:"order,omitempty"` PartyIds []string `json:"partyIds,omitempty"` }
type OrderEstimate ¶
type OrderEstimate struct { // The estimated fee if the order was to trade Fee *TradeFee `json:"fee"` // The total estimated amount of fee if the order was to trade TotalFeeAmount string `json:"totalFeeAmount"` // The margin requirement for this order MarginLevels *vega.MarginLevels `json:"marginLevels"` }
An estimate of the fee to be paid by the order
type OrderFilterResolver ¶ added in v0.63.0
type OrderFilterResolver interface { Status(ctx context.Context, obj *v2.OrderFilter, data []vega.Order_Status) error TimeInForce(ctx context.Context, obj *v2.OrderFilter, data []vega.Order_TimeInForce) error }
type OrderInfoResolver ¶ added in v0.74.0
type OrderResolver ¶
type OrderResolver interface { Market(ctx context.Context, obj *vega.Order) (*vega.Market, error) Size(ctx context.Context, obj *vega.Order) (string, error) Remaining(ctx context.Context, obj *vega.Order) (string, error) Party(ctx context.Context, obj *vega.Order) (*vega.Party, error) TradesConnection(ctx context.Context, obj *vega.Order, dateRange *v2.DateRange, pagination *v2.Pagination) (*v2.TradeConnection, error) RejectionReason(ctx context.Context, obj *vega.Order) (*vega.OrderError, error) Version(ctx context.Context, obj *vega.Order) (string, error) LiquidityProvision(ctx context.Context, obj *vega.Order) (*vega.LiquidityProvision, error) }
type OrderSubmissionResolver ¶ added in v0.72.0
type OrderSubmissionResolver interface { Size(ctx context.Context, obj *v11.OrderSubmission) (string, error) IcebergOrder(ctx context.Context, obj *v11.OrderSubmission) (*vega.IcebergOrder, error) }
type OrderUpdateResolver ¶ added in v0.55.0
type OrderUpdateResolver interface { Size(ctx context.Context, obj *vega.Order) (string, error) Remaining(ctx context.Context, obj *vega.Order) (string, error) RejectionReason(ctx context.Context, obj *vega.Order) (*vega.OrderError, error) Version(ctx context.Context, obj *vega.Order) (string, error) }
type PaidLiquidityFeesResolver ¶ added in v0.73.0
type PartyActivityStreakResolver ¶ added in v0.73.0
type PartyActivityStreakResolver interface { ActiveFor(ctx context.Context, obj *v1.PartyActivityStreak) (int, error) InactiveFor(ctx context.Context, obj *v1.PartyActivityStreak) (int, error) RewardDistributionMultiplier(ctx context.Context, obj *v1.PartyActivityStreak) (string, error) RewardVestingMultiplier(ctx context.Context, obj *v1.PartyActivityStreak) (string, error) Epoch(ctx context.Context, obj *v1.PartyActivityStreak) (int, error) }
type PartyAmountResolver ¶ added in v0.73.0
type PartyLockedBalanceResolver ¶ added in v0.73.0
type PartyMarginModeResolver ¶ added in v0.74.0
type PartyResolver ¶
type PartyResolver interface { OrdersConnection(ctx context.Context, obj *vega.Party, pagination *v2.Pagination, filter *OrderByMarketIdsFilter) (*v2.OrderConnection, error) TradesConnection(ctx context.Context, obj *vega.Party, marketID *string, dataRange *v2.DateRange, pagination *v2.Pagination) (*v2.TradeConnection, error) AccountsConnection(ctx context.Context, obj *vega.Party, marketID *string, assetID *string, typeArg *vega.AccountType, pagination *v2.Pagination, includeDerivedParties *bool) (*v2.AccountsConnection, error) PositionsConnection(ctx context.Context, obj *vega.Party, market *string, pagination *v2.Pagination) (*v2.PositionConnection, error) MarginsConnection(ctx context.Context, obj *vega.Party, marketID *string, pagination *v2.Pagination) (*v2.MarginConnection, error) ProposalsConnection(ctx context.Context, obj *vega.Party, proposalType *v2.ListGovernanceDataRequest_Type, inState *vega.Proposal_State, pagination *v2.Pagination) (*v2.GovernanceDataConnection, error) VotesConnection(ctx context.Context, obj *vega.Party, pagination *v2.Pagination) (*ProposalVoteConnection, error) WithdrawalsConnection(ctx context.Context, obj *vega.Party, dateRange *v2.DateRange, pagination *v2.Pagination) (*v2.WithdrawalsConnection, error) DepositsConnection(ctx context.Context, obj *vega.Party, dateRange *v2.DateRange, pagination *v2.Pagination) (*v2.DepositsConnection, error) LiquidityProvisions(ctx context.Context, obj *vega.Party, marketID *string, reference *string, live *bool, pagination *v2.Pagination) (*v2.LiquidityProvisionsWithPendingConnection, error) LiquidityProvisionsConnection(ctx context.Context, obj *vega.Party, marketID *string, reference *string, live *bool, pagination *v2.Pagination) (*v2.LiquidityProvisionsConnection, error) DelegationsConnection(ctx context.Context, obj *vega.Party, nodeID *string, pagination *v2.Pagination) (*v2.DelegationsConnection, error) StakingSummary(ctx context.Context, obj *vega.Party, pagination *v2.Pagination) (*StakingSummary, error) RewardsConnection(ctx context.Context, obj *vega.Party, assetID *string, pagination *v2.Pagination, fromEpoch *int, toEpoch *int, teamID *string, gameID *string, includeDerivedParties *bool, marketID *string) (*v2.RewardsConnection, error) RewardSummaries(ctx context.Context, obj *vega.Party, assetID *string, includeDerivedParties *bool) ([]*vega.RewardSummary, error) TransfersConnection(ctx context.Context, obj *vega.Party, direction *TransferDirection, pagination *v2.Pagination, isReward *bool, fromEpoch *int, toEpoch *int, status *v1.Transfer_Status, scope *v2.ListTransfersRequest_Scope, gameID *string, fromAccountType *vega.AccountType, toAccountType *vega.AccountType) (*v2.TransferConnection, error) ActivityStreak(ctx context.Context, obj *vega.Party, epoch *int) (*v1.PartyActivityStreak, error) VestingBalancesSummary(ctx context.Context, obj *vega.Party, assetID *string) (*v2.GetVestingBalancesSummaryResponse, error) VestingStats(ctx context.Context, obj *vega.Party) (*v2.GetPartyVestingStatsResponse, error) }
type PartyStakeResolver ¶
type PartyStakeResolver interface {
Linkings(ctx context.Context, obj *v2.GetStakeResponse) ([]*v1.StakeLinking, error)
}
type PartyVestingBalanceResolver ¶ added in v0.73.0
type PartyVestingBalancesSummaryResolver ¶ added in v0.73.0
type PartyVestingStatsResolver ¶ added in v0.73.0
type PerpetualDataResolver ¶ added in v0.74.0
type PerpetualDataResolver interface { SeqNum(ctx context.Context, obj *vega.PerpetualData) (int, error) InternalCompositePriceType(ctx context.Context, obj *vega.PerpetualData) (CompositePriceType, error) NextInternalCompositePriceCalc(ctx context.Context, obj *vega.PerpetualData) (string, error) }
type PerpetualProductResolver ¶ added in v0.73.0
type PerpetualResolver ¶ added in v0.73.0
type PerpetualResolver interface { SettlementAsset(ctx context.Context, obj *vega.Perpetual) (*vega.Asset, error) DataSourceSpecForSettlementSchedule(ctx context.Context, obj *vega.Perpetual) (*DataSourceSpec, error) DataSourceSpecForSettlementData(ctx context.Context, obj *vega.Perpetual) (*DataSourceSpec, error) }
type PositionEstimate ¶ added in v0.71.0
type PositionEstimate struct { // Margin level range estimate for the specified position Margin *v2.MarginEstimate `json:"margin"` // Estimated margin account balance increase CollateralIncreaseEstimate *v2.CollateralIncreaseEstimate `json:"collateralIncreaseEstimate"` // Liquidation price range estimate for the specified position. Only populated if available collateral was specified in the request Liquidation *v2.LiquidationEstimate `json:"liquidation,omitempty"` }
Response for the estimate of the margin level and, if available, collateral was provided in the request, liquidation price for the specified position
type PositionResolution ¶
type PositionResolution struct { // The market ID where position resolution happened MarketID string `json:"marketId"` // Number of distressed parties on market Distressed int `json:"distressed"` // Number of parties closed out Closed int `json:"closed"` // The mark price at which parties were distressed/closed out MarkPrice string `json:"markPrice"` }
type PositionResolver ¶
type PositionResolver interface { Market(ctx context.Context, obj *vega.Position) (*vega.Market, error) Party(ctx context.Context, obj *vega.Position) (*vega.Party, error) OpenVolume(ctx context.Context, obj *vega.Position) (string, error) LossSocializationAmount(ctx context.Context, obj *vega.Position) (string, error) MarginsConnection(ctx context.Context, obj *vega.Position, pagination *v2.Pagination) (*v2.MarginConnection, error) }
type PositionUpdateResolver ¶ added in v0.56.0
type PriceLevelResolver ¶
type PriceLevelResolver interface { Volume(ctx context.Context, obj *vega.PriceLevel) (string, error) AmmVolume(ctx context.Context, obj *vega.PriceLevel) (string, error) AmmVolumeEstimated(ctx context.Context, obj *vega.PriceLevel) (string, error) NumberOfOrders(ctx context.Context, obj *vega.PriceLevel) (string, error) }
type PriceMonitoringBounds ¶
type PriceMonitoringBounds struct { // Minimum price that isn't currently breaching the specified price monitoring trigger MinValidPrice string `json:"minValidPrice"` // Maximum price that isn't currently breaching the specified price monitoring trigger MaxValidPrice string `json:"maxValidPrice"` // Price monitoring trigger associated with the bounds Trigger *PriceMonitoringTrigger `json:"trigger"` // Reference price used to calculate the valid price range ReferencePrice string `json:"referencePrice"` // Has this bound been triggered yet or is it still active Active *bool `json:"active,omitempty"` }
Range of valid prices and the associated price monitoring trigger
type PriceMonitoringParameters ¶
type PriceMonitoringParameters struct { // The list of triggers for this price monitoring Triggers []*PriceMonitoringTrigger `json:"triggers,omitempty"` }
PriceMonitoringParameters holds a list of triggers
func PriceMonitoringParametersFromProto ¶
func PriceMonitoringParametersFromProto(ppmp *types.PriceMonitoringParameters) (*PriceMonitoringParameters, error)
type PriceMonitoringSettings ¶
type PriceMonitoringSettings struct { // Specified a set of PriceMonitoringParameters to be use for price monitoring purposes Parameters *PriceMonitoringParameters `json:"parameters,omitempty"` }
Configuration of a market price monitoring auctions triggers
func PriceMonitoringSettingsFromProto ¶
func PriceMonitoringSettingsFromProto(ppmst *types.PriceMonitoringSettings) (*PriceMonitoringSettings, error)
type PriceMonitoringTrigger ¶
type PriceMonitoringTrigger struct { // Price monitoring projection horizon τ in seconds (> 0). HorizonSecs int `json:"horizonSecs"` // Price monitoring probability level p. (>0 and < 1) Probability float64 `json:"probability"` // Price monitoring auction extension duration in seconds should the price // breach its theoretical level over the specified horizon at the specified // probability level (> 0) AuctionExtensionSecs int `json:"auctionExtensionSecs"` }
PriceMonitoringTrigger holds together price projection horizon τ, probability level p, and auction extension duration
func PriceMonitoringTriggerFromProto ¶
func PriceMonitoringTriggerFromProto(ppmt *types.PriceMonitoringTrigger) (*PriceMonitoringTrigger, error)
type ProductConfiguration ¶ added in v0.73.0
type ProductConfiguration interface {
IsProductConfiguration()
}
type ProductData ¶ added in v0.73.0
type ProductData interface {
IsProductData()
}
type PropertyKey ¶ added in v0.73.0
type PropertyKey struct { // The name of the property. Name *string `json:"name,omitempty"` // The type of the property. Type v1.PropertyKey_Type `json:"type"` // An optional decimal place to be applied on the provided value. // Valid only for PropertyType of type DECIMAL, INTEGER. NumberDecimalPlaces *int `json:"numberDecimalPlaces,omitempty"` }
PropertyKey describes the property key contained in a source data.
type ProposalChange ¶
type ProposalChange interface {
IsProposalChange()
}
type ProposalDetailResolver ¶ added in v0.71.0
type ProposalDetailResolver interface { Party(ctx context.Context, obj *vega.Proposal) (*vega.Party, error) Datetime(ctx context.Context, obj *vega.Proposal) (int64, error) RejectionReason(ctx context.Context, obj *vega.Proposal) (*vega.ProposalError, error) RequiredLpMajority(ctx context.Context, obj *vega.Proposal) (*string, error) RequiredLpParticipation(ctx context.Context, obj *vega.Proposal) (*string, error) }
type ProposalEdgeResolver ¶ added in v0.74.0
type ProposalEdgeResolver interface {
ProposalNode(ctx context.Context, obj *v2.GovernanceDataEdge) (ProposalNode, error)
}
type ProposalNode ¶ added in v0.74.0
type ProposalNode interface {
IsProposalNode()
}
type ProposalResolver ¶
type ProposalResolver interface { ID(ctx context.Context, obj *vega.GovernanceData) (*string, error) Reference(ctx context.Context, obj *vega.GovernanceData) (string, error) Party(ctx context.Context, obj *vega.GovernanceData) (*vega.Party, error) State(ctx context.Context, obj *vega.GovernanceData) (vega.Proposal_State, error) Datetime(ctx context.Context, obj *vega.GovernanceData) (int64, error) Rationale(ctx context.Context, obj *vega.GovernanceData) (*vega.ProposalRationale, error) Terms(ctx context.Context, obj *vega.GovernanceData) (*vega.ProposalTerms, error) Votes(ctx context.Context, obj *vega.GovernanceData) (*ProposalVotes, error) RejectionReason(ctx context.Context, obj *vega.GovernanceData) (*vega.ProposalError, error) ErrorDetails(ctx context.Context, obj *vega.GovernanceData) (*string, error) RequiredMajority(ctx context.Context, obj *vega.GovernanceData) (string, error) RequiredParticipation(ctx context.Context, obj *vega.GovernanceData) (string, error) RequiredLpMajority(ctx context.Context, obj *vega.GovernanceData) (*string, error) RequiredLpParticipation(ctx context.Context, obj *vega.GovernanceData) (*string, error) }
type ProposalTermsResolver ¶
type ProposalTermsResolver interface { ClosingDatetime(ctx context.Context, obj *vega.ProposalTerms) (int64, error) EnactmentDatetime(ctx context.Context, obj *vega.ProposalTerms) (*int64, error) ValidationDatetime(ctx context.Context, obj *vega.ProposalTerms) (*int64, error) Change(ctx context.Context, obj *vega.ProposalTerms) (ProposalChange, error) }
type ProposalVote ¶
type ProposalVote struct { // Cast vote Vote *vega.Vote `json:"vote"` // Proposal ID the vote is cast on ProposalID string `json:"proposalId"` }
func ProposalVoteFromProto ¶
func ProposalVoteFromProto(v *types.Vote) *ProposalVote
ProposalVoteFromProto ...
type ProposalVoteConnection ¶
type ProposalVoteConnection struct { // The proposal votes in this connection Edges []*ProposalVoteEdge `json:"edges,omitempty"` // The pagination information PageInfo *v2.PageInfo `json:"pageInfo,omitempty"` }
Connection type for retrieving cursor-based paginated proposal vote information
type ProposalVoteEdge ¶
type ProposalVoteEdge struct { // The proposal vote Node *ProposalVote `json:"node"` // The cursor for this proposal vote Cursor *string `json:"cursor,omitempty"` }
Edge type containing the proposal vote and cursor information returned by a ProposalVoteConnection
type ProposalVoteSide ¶
type ProposalVoteSide struct { // All votes cast for this side Votes []*vega.Vote `json:"votes,omitempty"` // Total number of votes cast for this side TotalNumber string `json:"totalNumber"` // Total weight of governance token from the votes cast for this side TotalWeight string `json:"totalWeight"` // Total number of governance tokens from the votes cast for this side TotalTokens string `json:"totalTokens"` TotalEquityLikeShareWeight string `json:"totalEquityLikeShareWeight"` }
type ProposalVotes ¶
type ProposalVotes struct { // Yes votes cast for this proposal Yes *ProposalVoteSide `json:"yes"` // No votes cast for this proposal No *ProposalVoteSide `json:"no"` }
type ProtocolUpgradeProposalResolver ¶ added in v0.61.0
type ProtocolUpgradeStatus ¶ added in v0.59.0
type ProtocolUpgradeStatus struct {
Ready bool `json:"ready"`
}
Indicator showing whether the data-node is ready for the protocol upgrade to begin.
type PubKey ¶ added in v0.61.0
type PubKey struct {
Key *string `json:"key,omitempty"`
}
func (PubKey) IsSignerKind ¶ added in v0.61.0
func (PubKey) IsSignerKind()
type QuantumRewardsPerEpochResolver ¶ added in v0.74.0
type QuantumVolumesPerEpochResolver ¶ added in v0.74.0
type Query ¶ added in v0.76.0
type Query struct { }
Queries allow a caller to read data and filter data via GraphQL.
type QueryResolver ¶
type QueryResolver interface { Amms(ctx context.Context, id *string, partyID *string, marketID *string, ammPartyID *string, status *v1.AMM_Status, pagination *v2.Pagination) (*v2.AMMConnection, error) Asset(ctx context.Context, id string) (*vega.Asset, error) AssetsConnection(ctx context.Context, id *string, pagination *v2.Pagination) (*v2.AssetsConnection, error) BalanceChanges(ctx context.Context, filter *v2.AccountFilter, dateRange *v2.DateRange, pagination *v2.Pagination) (*v2.AggregatedBalanceConnection, error) CurrentReferralProgram(ctx context.Context) (*v2.ReferralProgram, error) CurrentVolumeDiscountProgram(ctx context.Context) (*v2.VolumeDiscountProgram, error) CurrentVolumeRebateProgram(ctx context.Context) (*v2.VolumeRebateProgram, error) CoreSnapshots(ctx context.Context, pagination *v2.Pagination) (*v2.CoreSnapshotConnection, error) Deposit(ctx context.Context, id string) (*vega.Deposit, error) Deposits(ctx context.Context, dateRange *v2.DateRange, pagination *v2.Pagination) (*v2.DepositsConnection, error) Entities(ctx context.Context, txHash string) (*v2.ListEntitiesResponse, error) Epoch(ctx context.Context, id *string, block *string) (*vega.Epoch, error) EpochRewardSummaries(ctx context.Context, filter *v2.RewardSummaryFilter, pagination *v2.Pagination) (*v2.EpochRewardSummaryConnection, error) Erc20ListAssetBundle(ctx context.Context, assetID string) (*Erc20ListAssetBundle, error) Erc20MultiSigSignerAddedBundles(ctx context.Context, nodeID string, submitter *string, epochSeq *string, chainID *string, pagination *v2.Pagination) (*ERC20MultiSigSignerAddedConnection, error) Erc20MultiSigSignerRemovedBundles(ctx context.Context, nodeID string, submitter *string, epochSeq *string, chainID *string, pagination *v2.Pagination) (*ERC20MultiSigSignerRemovedConnection, error) Erc20SetAssetLimitsBundle(ctx context.Context, proposalID string) (*ERC20SetAssetLimitsBundle, error) Erc20WithdrawalApproval(ctx context.Context, withdrawalID string) (*Erc20WithdrawalApproval, error) EstimateOrder(ctx context.Context, marketID string, partyID string, price *string, size string, side vega.Side, timeInForce vega.Order_TimeInForce, expiration *int64, typeArg vega.Order_Type) (*OrderEstimate, error) EstimateFees(ctx context.Context, marketID string, partyID string, price *string, size string, side vega.Side, timeInForce vega.Order_TimeInForce, expiration *int64, typeArg vega.Order_Type) (*FeeEstimate, error) EstimatePosition(ctx context.Context, marketID string, openVolume string, averageEntryPrice string, orders []*v2.OrderInfo, marginAccountBalance string, generalAccountBalance string, orderMarginAccountBalance string, marginMode vega.MarginMode, marginFactor *string, includeRequiredPositionMarginInAvailableCollateral *bool, scaleLiquidationPriceToMarketDecimals *bool) (*PositionEstimate, error) EstimateAMMBounds(ctx context.Context, basePrice string, upperPrice *string, lowerPrice *string, leverageAtUpperPrice *string, leverageAtLowerPrice *string, commitmentAmount string, marketID string) (*v2.EstimateAMMBoundsResponse, error) EthereumKeyRotations(ctx context.Context, nodeID *string) (*v2.EthereumKeyRotationsConnection, error) EstimateTransferFee(ctx context.Context, fromAccount string, fromAccountType vega.AccountType, toAccount string, amount string, assetID string) (*v2.EstimateTransferFeeResponse, error) FeesStats(ctx context.Context, marketID *string, assetID *string, epoch *int, partyID *string, epochFrom *int, epochTo *int) (*v1.FeesStats, error) FeesStatsForParty(ctx context.Context, partyID string, assetID *string, fromEpoch *int, toEpoch *int) ([]*v2.FeesStatsForParty, error) FundingPayments(ctx context.Context, partyID string, marketID *string, pagination *v2.Pagination) (*v2.FundingPaymentConnection, error) FundingPeriods(ctx context.Context, marketID string, dateRange *v2.DateRange, pagination *v2.Pagination) (*v2.FundingPeriodConnection, error) FundingPeriodDataPoints(ctx context.Context, marketID string, dateRange *v2.DateRange, source *v1.FundingPeriodDataPoint_Source, pagination *v2.Pagination) (*v2.FundingPeriodDataPointConnection, error) Games(ctx context.Context, gameID *string, epochFrom *int, epochTo *int, entityScope *vega.EntityScope, teamID *string, partyID *string, pagination *v2.Pagination) (*v2.GamesConnection, error) GetMarketDataHistoryConnectionByID(ctx context.Context, id string, start *int64, end *int64, pagination *v2.Pagination) (*v2.MarketDataConnection, error) KeyRotationsConnection(ctx context.Context, id *string, pagination *v2.Pagination) (*v2.KeyRotationConnection, error) LedgerEntries(ctx context.Context, filter *v2.LedgerEntryFilter, dateRange *v2.DateRange, pagination *v2.Pagination) (*v2.AggregatedLedgerEntriesConnection, error) LiquidityProviders(ctx context.Context, partyID *string, marketID *string, pagination *v2.Pagination) (*v2.LiquidityProviderConnection, error) LastBlockHeight(ctx context.Context) (string, error) Market(ctx context.Context, id string) (*vega.Market, error) MarketsConnection(ctx context.Context, id *string, pagination *v2.Pagination, includeSettled *bool) (*v2.MarketConnection, error) MostRecentHistorySegment(ctx context.Context) (*v2.HistorySegment, error) NetworkLimits(ctx context.Context) (*vega.NetworkLimits, error) NetworkParameter(ctx context.Context, key string) (*vega.NetworkParameter, error) NetworkParametersConnection(ctx context.Context, pagination *v2.Pagination) (*v2.NetworkParameterConnection, error) Node(ctx context.Context, id string) (*vega.Node, error) NodeData(ctx context.Context) (*vega.NodeData, error) NodesConnection(ctx context.Context, pagination *v2.Pagination) (*v2.NodesConnection, error) NodeSignaturesConnection(ctx context.Context, resourceID string, pagination *v2.Pagination) (*v2.NodeSignaturesConnection, error) OracleDataBySpecConnection(ctx context.Context, oracleSpecID string, pagination *v2.Pagination) (*v2.OracleDataConnection, error) OracleDataConnection(ctx context.Context, pagination *v2.Pagination) (*v2.OracleDataConnection, error) OracleSpec(ctx context.Context, oracleSpecID string) (*vega.OracleSpec, error) OracleSpecsConnection(ctx context.Context, pagination *v2.Pagination) (*v2.OracleSpecsConnection, error) OrderByID(ctx context.Context, id string, version *int) (*vega.Order, error) OrderByReference(ctx context.Context, reference string) (*vega.Order, error) OrderVersionsConnection(ctx context.Context, orderID *string, pagination *v2.Pagination) (*v2.OrderConnection, error) PaidLiquidityFees(ctx context.Context, marketID *string, assetID *string, epoch *int, partyIDs []string, includeDerivedParties *bool, epochFrom *int, epochTo *int) (*v2.PaidLiquidityFeesConnection, error) PartiesConnection(ctx context.Context, id *string, pagination *v2.Pagination) (*v2.PartyConnection, error) PartiesProfilesConnection(ctx context.Context, ids []string, pagination *v2.Pagination) (*v2.PartiesProfilesConnection, error) Party(ctx context.Context, id string) (*vega.Party, error) Positions(ctx context.Context, filter *v2.PositionsFilter, pagination *v2.Pagination) (*v2.PositionConnection, error) Proposal(ctx context.Context, id *string, reference *string) (ProposalNode, error) ProposalsConnection(ctx context.Context, proposalType *v2.ListGovernanceDataRequest_Type, inState *vega.Proposal_State, pagination *v2.Pagination) (*v2.GovernanceDataConnection, error) ProtocolUpgradeStatus(ctx context.Context) (*ProtocolUpgradeStatus, error) ProtocolUpgradeProposals(ctx context.Context, inState *v1.ProtocolUpgradeProposalStatus, approvedBy *string, pagination *v2.Pagination) (*v2.ProtocolUpgradeProposalConnection, error) ReferralSets(ctx context.Context, id *string, referrer *string, referee *string, pagination *v2.Pagination) (*v2.ReferralSetConnection, error) ReferralSetReferees(ctx context.Context, id *string, referrer *string, referee *string, pagination *v2.Pagination, aggregationEpochs *int) (*v2.ReferralSetRefereeConnection, error) ReferralSetStats(ctx context.Context, setID *string, epoch *int, partyID *string, pagination *v2.Pagination) (*v2.ReferralSetStatsConnection, error) Statistics(ctx context.Context) (*v12.Statistics, error) StopOrder(ctx context.Context, id string) (*v1.StopOrderEvent, error) StopOrders(ctx context.Context, filter *v2.StopOrderFilter, pagination *v2.Pagination) (*v2.StopOrderConnection, error) GameTeamScores(ctx context.Context, filter *GameTeamScoreFilter, pagination *v2.Pagination) (*v2.GameTeamScoresConnection, error) GamePartyScores(ctx context.Context, filter *GamePartyScoreFilter, pagination *v2.Pagination) (*v2.GamePartyScoresConnection, error) SuccessorMarkets(ctx context.Context, marketID string, fullHistory *bool, pagination *v2.Pagination) (*v2.SuccessorMarketConnection, error) Teams(ctx context.Context, teamID *string, partyID *string, pagination *v2.Pagination) (*v2.TeamConnection, error) TeamsStatistics(ctx context.Context, teamID *string, aggregationEpochs *int, pagination *v2.Pagination) (*v2.TeamsStatisticsConnection, error) TeamMembersStatistics(ctx context.Context, teamID string, partyID *string, aggregationEpochs *int, pagination *v2.Pagination) (*v2.TeamMembersStatisticsConnection, error) TeamReferees(ctx context.Context, teamID string, pagination *v2.Pagination) (*v2.TeamRefereeConnection, error) TeamRefereeHistory(ctx context.Context, referee string, pagination *v2.Pagination) (*v2.TeamRefereeHistoryConnection, error) TimeWeightedNotionalPosition(ctx context.Context, assetID string, partyID string, gameID string, epochSeq *int) (*v2.TimeWeightedNotionalPosition, error) TotalTransferFeeDiscount(ctx context.Context, partyID string, assetID string) (*v2.GetTotalTransferFeeDiscountResponse, error) Trades(ctx context.Context, filter *TradesFilter, pagination *v2.Pagination, dateRange *v2.DateRange) (*v2.TradeConnection, error) TransfersConnection(ctx context.Context, partyID *string, direction *TransferDirection, pagination *v2.Pagination, isReward *bool, fromEpoch *int, toEpoch *int, status *v1.Transfer_Status, scope *v2.ListTransfersRequest_Scope, gameID *string, fromAccountType *vega.AccountType, toAccountType *vega.AccountType) (*v2.TransferConnection, error) Transfer(ctx context.Context, id string) (*v2.TransferNode, error) VolumeRebateStats(ctx context.Context, epoch *int, partyID *string, pagination *v2.Pagination) (*v2.VolumeRebateStatsConnection, error) VolumeDiscountStats(ctx context.Context, epoch *int, partyID *string, pagination *v2.Pagination) (*v2.VolumeDiscountStatsConnection, error) Withdrawal(ctx context.Context, id string) (*vega.Withdrawal, error) Withdrawals(ctx context.Context, dateRange *v2.DateRange, pagination *v2.Pagination) (*v2.WithdrawalsConnection, error) PartyMarginModes(ctx context.Context, marketID *string, partyID *string, pagination *v2.Pagination) (*v2.PartyMarginModesConnection, error) }
type RankingScoreResolver ¶
type RecurringGovernanceTransferResolver ¶ added in v0.72.0
type ReferralProgramResolver ¶ added in v0.73.0
type ReferralSetRefereeResolver ¶ added in v0.73.0
type ReferralSetResolver ¶ added in v0.74.0
type ReferralSetStatsResolver ¶ added in v0.73.0
type ReferralSetStatsResolver interface { AtEpoch(ctx context.Context, obj *v2.ReferralSetStats) (int, error) DiscountFactors(ctx context.Context, obj *v2.ReferralSetStats) (*DiscountFactors, error) RewardFactors(ctx context.Context, obj *v2.ReferralSetStats) (*RewardFactors, error) RewardsFactorsMultiplier(ctx context.Context, obj *v2.ReferralSetStats) (*RewardFactors, error) }
type ReferrerRewardsGeneratedResolver ¶ added in v0.73.0
type ResolverRoot ¶
type ResolverRoot interface { AccountBalance() AccountBalanceResolver AccountDetails() AccountDetailsResolver AccountEvent() AccountEventResolver AccountUpdate() AccountUpdateResolver AggregatedLedgerEntry() AggregatedLedgerEntryResolver Asset() AssetResolver AuctionEvent() AuctionEventResolver BatchProposalTerms() BatchProposalTermsResolver BatchProposalTermsChange() BatchProposalTermsChangeResolver BenefitTier() BenefitTierResolver CancelTransfer() CancelTransferResolver Candle() CandleResolver CompositePriceConfiguration() CompositePriceConfigurationResolver CoreSnapshotData() CoreSnapshotDataResolver CurrentReferralProgram() CurrentReferralProgramResolver DataSourceDefinition() DataSourceDefinitionResolver DataSourceDefinitionExternal() DataSourceDefinitionExternalResolver DataSourceDefinitionInternal() DataSourceDefinitionInternalResolver DataSourceSpecConfiguration() DataSourceSpecConfigurationResolver DataSourceSpecConfigurationTime() DataSourceSpecConfigurationTimeResolver DataSourceSpecConfigurationTimeTrigger() DataSourceSpecConfigurationTimeTriggerResolver Delegation() DelegationResolver Deposit() DepositResolver DispatchStrategy() DispatchStrategyResolver ERC20MultiSigSignerAddedBundle() ERC20MultiSigSignerAddedBundleResolver ERC20MultiSigSignerRemovedBundle() ERC20MultiSigSignerRemovedBundleResolver Epoch() EpochResolver EpochRewardSummary() EpochRewardSummaryResolver EpochTimestamps() EpochTimestampsResolver EthCallSpec() EthCallSpecResolver EthereumKeyRotation() EthereumKeyRotationResolver FeesStats() FeesStatsResolver FundingPayment() FundingPaymentResolver FundingPeriod() FundingPeriodResolver FundingPeriodDataPoint() FundingPeriodDataPointResolver Future() FutureResolver FutureProduct() FutureProductResolver Game() GameResolver GamePartyScore() GamePartyScoreResolver GameTeamScore() GameTeamScoreResolver IcebergOrder() IcebergOrderResolver Instrument() InstrumentResolver InstrumentConfiguration() InstrumentConfigurationResolver KeyRotation() KeyRotationResolver LedgerEntry() LedgerEntryResolver LiquidationStrategy() LiquidationStrategyResolver LiquidityOrderReference() LiquidityOrderReferenceResolver LiquidityProvider() LiquidityProviderResolver LiquidityProvision() LiquidityProvisionResolver LiquidityProvisionUpdate() LiquidityProvisionUpdateResolver LiquiditySLAParameters() LiquiditySLAParametersResolver MarginEstimate() MarginEstimateResolver MarginLevels() MarginLevelsResolver MarginLevelsUpdate() MarginLevelsUpdateResolver Market() MarketResolver MarketData() MarketDataResolver MarketDepth() MarketDepthResolver MarketDepthUpdate() MarketDepthUpdateResolver NewAsset() NewAssetResolver NewFreeform() NewFreeformResolver NewMarket() NewMarketResolver NewSpotMarket() NewSpotMarketResolver NewTransfer() NewTransferResolver Node() NodeResolver NodeData() NodeDataResolver NodeSignature() NodeSignatureResolver ObservableMarketData() ObservableMarketDataResolver ObservableMarketDepth() ObservableMarketDepthResolver ObservableMarketDepthUpdate() ObservableMarketDepthUpdateResolver OracleData() OracleDataResolver OracleSpec() OracleSpecResolver Order() OrderResolver OrderSubmission() OrderSubmissionResolver OrderUpdate() OrderUpdateResolver PaidLiquidityFees() PaidLiquidityFeesResolver Party() PartyResolver PartyActivityStreak() PartyActivityStreakResolver PartyAmount() PartyAmountResolver PartyLockedBalance() PartyLockedBalanceResolver PartyMarginMode() PartyMarginModeResolver PartyStake() PartyStakeResolver PartyVestingBalance() PartyVestingBalanceResolver PartyVestingBalancesSummary() PartyVestingBalancesSummaryResolver PartyVestingStats() PartyVestingStatsResolver Perpetual() PerpetualResolver PerpetualData() PerpetualDataResolver PerpetualProduct() PerpetualProductResolver Position() PositionResolver PositionUpdate() PositionUpdateResolver PriceLevel() PriceLevelResolver Proposal() ProposalResolver ProposalDetail() ProposalDetailResolver ProposalEdge() ProposalEdgeResolver ProposalTerms() ProposalTermsResolver ProtocolUpgradeProposal() ProtocolUpgradeProposalResolver QuantumRewardsPerEpoch() QuantumRewardsPerEpochResolver QuantumVolumesPerEpoch() QuantumVolumesPerEpochResolver Query() QueryResolver RankingScore() RankingScoreResolver RecurringGovernanceTransfer() RecurringGovernanceTransferResolver RecurringTransfer() RecurringTransferResolver ReferralProgram() ReferralProgramResolver ReferralSet() ReferralSetResolver ReferralSetReferee() ReferralSetRefereeResolver ReferralSetStats() ReferralSetStatsResolver ReferrerRewardsGenerated() ReferrerRewardsGeneratedResolver Reward() RewardResolver RewardSummary() RewardSummaryResolver Spot() SpotResolver SpotProduct() SpotProductResolver StakeLinking() StakeLinkingResolver Statistics() StatisticsResolver StopOrder() StopOrderResolver Subscription() SubscriptionResolver Team() TeamResolver TeamMemberStatistics() TeamMemberStatisticsResolver TeamReferee() TeamRefereeResolver TeamRefereeHistory() TeamRefereeHistoryResolver TeamStatistics() TeamStatisticsResolver TimeWeightedNotionalPosition() TimeWeightedNotionalPositionResolver TradableInstrument() TradableInstrumentResolver Trade() TradeResolver TradeUpdate() TradeUpdateResolver TransactionResult() TransactionResultResolver Transfer() TransferResolver TransferNode() TransferNodeResolver UpdateAsset() UpdateAssetResolver UpdateMarket() UpdateMarketResolver UpdateMarketConfiguration() UpdateMarketConfigurationResolver UpdateMarketState() UpdateMarketStateResolver UpdateNetworkParameter() UpdateNetworkParameterResolver UpdateReferralProgram() UpdateReferralProgramResolver UpdateSpotMarket() UpdateSpotMarketResolver UpdateSpotMarketConfiguration() UpdateSpotMarketConfigurationResolver UpdateVolumeDiscountProgram() UpdateVolumeDiscountProgramResolver VolumeBenefitTier() VolumeBenefitTierResolver VolumeDiscountProgram() VolumeDiscountProgramResolver VolumeDiscountStats() VolumeDiscountStatsResolver VolumeRebateProgram() VolumeRebateProgramResolver VolumeRebateStats() VolumeRebateStatsResolver Vote() VoteResolver Withdrawal() WithdrawalResolver DateRange() DateRangeResolver OrderFilter() OrderFilterResolver OrderInfo() OrderInfoResolver RewardSummaryFilter() RewardSummaryFilterResolver StopOrderFilter() StopOrderFilterResolver }
type RewardFactors ¶ added in v0.77.8
type RewardFactors struct { // The proportion of the referee's taker infrastructure fees to be rewarded to the referrer InfrastructureFactor string `json:"infrastructureFactor"` // The proportion of the referee's taker maker fees to be rewarded to the referrer MakerFactor string `json:"makerFactor"` // The proportion of the referee's taker liquidity fees to be rewarded to the referrer LiquidityFactor string `json:"liquidityFactor"` }
type RewardResolver ¶
type RewardResolver interface { Asset(ctx context.Context, obj *vega.Reward) (*vega.Asset, error) RewardType(ctx context.Context, obj *vega.Reward) (vega.AccountType, error) Party(ctx context.Context, obj *vega.Reward) (*vega.Party, error) Epoch(ctx context.Context, obj *vega.Reward) (*vega.Epoch, error) LockedUntilEpoch(ctx context.Context, obj *vega.Reward) (*vega.Epoch, error) }
type RewardSummaryConnection ¶
type RewardSummaryConnection struct { // List of reward summaries available for the connection Edges []*RewardSummaryEdge `json:"edges,omitempty"` // Page information for the connection PageInfo *v2.PageInfo `json:"pageInfo"` }
Connection type for retrieving cursor-based paginated reward summary information
type RewardSummaryEdge ¶
type RewardSummaryEdge struct { // The reward summary Node *vega.RewardSummary `json:"node"` // Cursor identifying the reward summary Cursor string `json:"cursor"` }
Edge type containing the reward summary and cursor information returned by a RewardSummaryConnection
type RewardSummaryFilterResolver ¶ added in v0.68.0
type RewardSummaryResolver ¶
type RewardSummaryResolver interface { Asset(ctx context.Context, obj *vega.RewardSummary) (*vega.Asset, error) RewardsConnection(ctx context.Context, obj *vega.RewardSummary, assetID *string, pagination *v2.Pagination, includeDerivedParties *bool) (*v2.RewardsConnection, error) }
type SettleDistressed ¶
type SettleDistressed struct { // The market in which a position was closed out MarketID string `json:"marketId"` // The party that was closed out PartyID string `json:"partyId"` // The margin taken from distressed party Margin string `json:"margin"` // The price at which the position was closed out Price string `json:"price"` }
type SettlePosition ¶
type SettlePosition struct { // The market in which a position was settled MarketID string `json:"marketId"` // The party who settled a position PartyID string `json:"partyId"` // The settle price Price string `json:"price"` // The trades that were settled to close the overall position TradeSettlements []*TradeSettlement `json:"tradeSettlements,omitempty"` }
type Signer ¶ added in v0.61.0
type Signer struct {
Signer SignerKind `json:"signer"`
}
Signer is the authorized signature used for the data.
type SignerKind ¶ added in v0.61.0
type SignerKind interface {
IsSignerKind()
}
type SpecBindingForCompositePrice ¶ added in v0.74.0
type SpecBindingForCompositePrice struct {
PriceSourceProperty string `json:"priceSourceProperty"`
}
Describes which property of the data source data should be used as composite price source.
type SpotProductResolver ¶ added in v0.73.0
type SpotResolver ¶ added in v0.73.0
type StakeLinkingResolver ¶
type StakingSummary ¶
type StakingSummary struct { // The stake currently available for the party CurrentStakeAvailable string `json:"currentStakeAvailable"` // The list of all stake link/unlink for the party Linkings *v2.StakesConnection `json:"linkings"` }
All staking information related to a Party. Contains the current recognised balance by the network and all the StakeLink/Unlink seen by the network
type StatisticsResolver ¶
type StatisticsResolver interface { BlockHeight(ctx context.Context, obj *v12.Statistics) (string, error) BacklogLength(ctx context.Context, obj *v12.Statistics) (string, error) TotalPeers(ctx context.Context, obj *v12.Statistics) (string, error) GenesisTime(ctx context.Context, obj *v12.Statistics) (int64, error) CurrentTime(ctx context.Context, obj *v12.Statistics) (int64, error) VegaTime(ctx context.Context, obj *v12.Statistics) (int64, error) Status(ctx context.Context, obj *v12.Statistics) (string, error) TxPerBlock(ctx context.Context, obj *v12.Statistics) (string, error) AverageTxBytes(ctx context.Context, obj *v12.Statistics) (string, error) AverageOrdersPerBlock(ctx context.Context, obj *v12.Statistics) (string, error) TradesPerSecond(ctx context.Context, obj *v12.Statistics) (string, error) OrdersPerSecond(ctx context.Context, obj *v12.Statistics) (string, error) TotalMarkets(ctx context.Context, obj *v12.Statistics) (string, error) TotalAmendOrder(ctx context.Context, obj *v12.Statistics) (string, error) TotalCancelOrder(ctx context.Context, obj *v12.Statistics) (string, error) TotalCreateOrder(ctx context.Context, obj *v12.Statistics) (string, error) TotalOrders(ctx context.Context, obj *v12.Statistics) (string, error) TotalTrades(ctx context.Context, obj *v12.Statistics) (string, error) EventCount(ctx context.Context, obj *v12.Statistics) (string, error) EventsPerSecond(ctx context.Context, obj *v12.Statistics) (string, error) BlockDuration(ctx context.Context, obj *v12.Statistics) (string, error) }
type StopOrderFilterResolver ¶ added in v0.72.0
type StopOrderFilterResolver interface { Parties(ctx context.Context, obj *v2.StopOrderFilter, data []string) error Markets(ctx context.Context, obj *v2.StopOrderFilter, data []string) error Status(ctx context.Context, obj *v2.StopOrderFilter, data []vega.StopOrder_Status) error ExpiryStrategy(ctx context.Context, obj *v2.StopOrderFilter, data []vega.StopOrder_ExpiryStrategy) error }
type StopOrderPrice ¶ added in v0.72.0
type StopOrderPrice struct {
Price string `json:"price"`
}
Price at which a stop order will trigger
func (StopOrderPrice) IsStopOrderTrigger ¶ added in v0.72.0
func (StopOrderPrice) IsStopOrderTrigger()
type StopOrderResolver ¶ added in v0.72.0
type StopOrderResolver interface { ID(ctx context.Context, obj *v1.StopOrderEvent) (string, error) OcoLinkID(ctx context.Context, obj *v1.StopOrderEvent) (*string, error) ExpiresAt(ctx context.Context, obj *v1.StopOrderEvent) (*int64, error) ExpiryStrategy(ctx context.Context, obj *v1.StopOrderEvent) (*vega.StopOrder_ExpiryStrategy, error) TriggerDirection(ctx context.Context, obj *v1.StopOrderEvent) (vega.StopOrder_TriggerDirection, error) Status(ctx context.Context, obj *v1.StopOrderEvent) (vega.StopOrder_Status, error) CreatedAt(ctx context.Context, obj *v1.StopOrderEvent) (int64, error) UpdatedAt(ctx context.Context, obj *v1.StopOrderEvent) (*int64, error) PartyID(ctx context.Context, obj *v1.StopOrderEvent) (string, error) MarketID(ctx context.Context, obj *v1.StopOrderEvent) (string, error) Trigger(ctx context.Context, obj *v1.StopOrderEvent) (StopOrderTrigger, error) Order(ctx context.Context, obj *v1.StopOrderEvent) (*vega.Order, error) RejectionReason(ctx context.Context, obj *v1.StopOrderEvent) (*vega.StopOrder_RejectionReason, error) SizeOverrideSetting(ctx context.Context, obj *v1.StopOrderEvent) (vega.StopOrder_SizeOverrideSetting, error) SizeOverrideValue(ctx context.Context, obj *v1.StopOrderEvent) (*string, error) }
type StopOrderTrailingPercentOffset ¶ added in v0.72.0
type StopOrderTrailingPercentOffset struct {
TrailingPercentOffset string `json:"trailingPercentOffset"`
}
Percentage movement in the price at which a stop order will trigger.
func (StopOrderTrailingPercentOffset) IsStopOrderTrigger ¶ added in v0.72.0
func (StopOrderTrailingPercentOffset) IsStopOrderTrigger()
type StopOrderTrigger ¶ added in v0.72.0
type StopOrderTrigger interface {
IsStopOrderTrigger()
}
type Subscription ¶ added in v0.76.0
type Subscription struct { }
Subscriptions allow a caller to receive new information as it is available from the Vega network.
type SubscriptionResolver ¶
type SubscriptionResolver interface { Accounts(ctx context.Context, marketID *string, partyID *string, assetID *string, typeArg *vega.AccountType, includeDerivedParties *bool) (<-chan []*v2.AccountBalance, error) BusEvents(ctx context.Context, types []BusEventType, marketID *string, partyID *string, batchSize int) (<-chan []*BusEvent, error) Candles(ctx context.Context, marketID string, interval vega.Interval) (<-chan *v2.Candle, error) LiquidityProvisions(ctx context.Context, partyID *string, marketID *string) (<-chan []*vega.LiquidityProvision, error) Margins(ctx context.Context, partyID string, marketID *string) (<-chan *vega.MarginLevels, error) MarketsData(ctx context.Context, marketIds []string) (<-chan []*vega.MarketData, error) MarketsDepth(ctx context.Context, marketIds []string) (<-chan []*vega.MarketDepth, error) MarketsDepthUpdate(ctx context.Context, marketIds []string) (<-chan []*vega.MarketDepthUpdate, error) Orders(ctx context.Context, filter *OrderByMarketAndPartyIdsFilter) (<-chan []*vega.Order, error) Positions(ctx context.Context, partyID *string, marketID *string, includeDerivedParties *bool) (<-chan []*vega.Position, error) Proposals(ctx context.Context, partyID *string) (<-chan *vega.GovernanceData, error) Trades(ctx context.Context, marketID *string, partyID *string) (<-chan []*vega.Trade, error) TradesStream(ctx context.Context, filter TradesSubscriptionFilter) (<-chan []*vega.Trade, error) Votes(ctx context.Context, proposalID *string, partyID *string) (<-chan *ProposalVote, error) }
type TargetStakeParameters ¶
type TargetStakeParameters struct { // Specifies length of time window expressed in seconds for target stake calculation TimeWindow int `json:"timeWindow"` // Specifies scaling factors used in target stake calculation ScalingFactor float64 `json:"scalingFactor"` }
TargetStakeParameters contains parameters used in target stake calculation
type TeamGameEntity ¶ added in v0.74.0
type TeamGameEntity struct { // Breakdown of the team members and their contributions to the total team metrics. Team *TeamParticipation `json:"team"` // Rank of the team within the game. Rank int `json:"rank"` // Total volume traded by the team Volume string `json:"volume"` // Reward metric applied to the game. RewardMetric vega.DispatchMetric `json:"rewardMetric"` // Total rewards earned by the team during the epoch RewardEarned string `json:"rewardEarned"` // Total rewards earned by the team for the game TotalRewardsEarned string `json:"totalRewardsEarned"` // Total rewards earned by the team during the epoch in quantum value RewardEarnedQuantum string `json:"rewardEarnedQuantum"` // Total rewards earned by the team for the game in quantum value TotalRewardsEarnedQuantum string `json:"totalRewardsEarnedQuantum"` }
Team participating in a game and their metrics.
func (TeamGameEntity) IsGameEntity ¶ added in v0.74.0
func (TeamGameEntity) IsGameEntity()
type TeamMemberStatisticsResolver ¶ added in v0.74.0
type TeamParticipation ¶ added in v0.74.0
type TeamParticipation struct { // Team ID TeamID string `json:"teamId"` // List of participating team members and their metrics. MembersParticipating []*IndividualGameEntity `json:"membersParticipating"` }
Team participation information, i.e. the team ID and the metrics for each participating team member.
type TeamRefereeHistoryResolver ¶ added in v0.73.0
type TeamRefereeResolver ¶ added in v0.73.0
type TeamResolver ¶ added in v0.73.0
type TeamStatisticsResolver ¶ added in v0.74.0
type TimeUpdate ¶
type TimeUpdate struct { // RFC3339Nano time of new block time Timestamp int64 `json:"timestamp"` }
func (TimeUpdate) IsEvent ¶
func (TimeUpdate) IsEvent()
type TimeWeightedNotionalPositionResolver ¶ added in v0.75.0
type TradeFee ¶
type TradeFee struct { // The maker fee, paid by the aggressive party to the other party (the one who had an order in the book) MakerFee string `json:"makerFee"` // The infrastructure fee, a fee paid to the validators to maintain the Vega network InfrastructureFee string `json:"infrastructureFee"` // The fee paid to the liquidity providers that committed liquidity to the market LiquidityFee string `json:"liquidityFee"` // The fee paid into the protocol buy-back account BuyBackFee string `json:"buyBackFee"` // The fee paid into the network treasury TreasuryFee string `json:"treasuryFee"` // The fee paid to a high-volume maker as a rebate HighVolumeMakerFee string `json:"highVolumeMakerFee"` // Referral discount on maker fees for the trade MakerFeeReferralDiscount *string `json:"makerFeeReferralDiscount,omitempty"` // Volume discount on maker fees for the trade MakerFeeVolumeDiscount *string `json:"makerFeeVolumeDiscount,omitempty"` // Referral discount on infrastructure fees for the trade InfrastructureFeeReferralDiscount *string `json:"infrastructureFeeReferralDiscount,omitempty"` // Volume discount on infrastructure fees for the trade InfrastructureFeeVolumeDiscount *string `json:"infrastructureFeeVolumeDiscount,omitempty"` // Referral discount on liquidity fees for the trade LiquidityFeeReferralDiscount *string `json:"liquidityFeeReferralDiscount,omitempty"` // Volume discount on liquidity fees for the trade LiquidityFeeVolumeDiscount *string `json:"liquidityFeeVolumeDiscount,omitempty"` }
The fee paid by the party when a trade occurs
type TradeResolver ¶
type TradeResolver interface { Market(ctx context.Context, obj *vega.Trade) (*vega.Market, error) Buyer(ctx context.Context, obj *vega.Trade) (*vega.Party, error) Seller(ctx context.Context, obj *vega.Trade) (*vega.Party, error) Size(ctx context.Context, obj *vega.Trade) (string, error) CreatedAt(ctx context.Context, obj *vega.Trade) (int64, error) BuyerFee(ctx context.Context, obj *vega.Trade) (*TradeFee, error) SellerFee(ctx context.Context, obj *vega.Trade) (*TradeFee, error) BuyerAuctionBatch(ctx context.Context, obj *vega.Trade) (*int, error) SellerAuctionBatch(ctx context.Context, obj *vega.Trade) (*int, error) }
type TradeSettlement ¶
type TradeUpdateResolver ¶ added in v0.55.0
type TradeUpdateResolver interface { BuyerID(ctx context.Context, obj *vega.Trade) (string, error) SellerID(ctx context.Context, obj *vega.Trade) (string, error) Size(ctx context.Context, obj *vega.Trade) (string, error) CreatedAt(ctx context.Context, obj *vega.Trade) (int64, error) BuyerFee(ctx context.Context, obj *vega.Trade) (*TradeFee, error) SellerFee(ctx context.Context, obj *vega.Trade) (*TradeFee, error) BuyerAuctionBatch(ctx context.Context, obj *vega.Trade) (*int, error) SellerAuctionBatch(ctx context.Context, obj *vega.Trade) (*int, error) }
type TradesFilter ¶ added in v0.71.0
type TradesFilter struct { PartyIds []string `json:"partyIds,omitempty"` MarketIds []string `json:"marketIds,omitempty"` OrderIds []string `json:"orderIds,omitempty"` }
Filter to apply to the trade connection query
type TradesSubscriptionFilter ¶ added in v0.71.0
type TradesSubscriptionFilter struct { PartyIds []string `json:"partyIds,omitempty"` MarketIds []string `json:"marketIds,omitempty"` }
Filter to apply to the trade subscription request
type TradingDataServiceClientV2 ¶
type TradingDataServiceClientV2 interface { v2.TradingDataServiceClient }
type TransactionResultResolver ¶ added in v0.58.0
type TransactionSubmitted ¶
type TransactionSubmitted struct {
Success bool `json:"success"`
}
type TransferBalance ¶
type TransferBalance struct { // Account involved in transfer Account *vega.AccountDetails `json:"account"` // The new balance of the account Balance string `json:"balance"` }
type TransferDirection ¶
type TransferDirection string
Filter type for specifying the types of transfers to filter for
const ( TransferDirectionTo TransferDirection = "To" TransferDirectionFrom TransferDirection = "From" TransferDirectionToOrFrom TransferDirection = "ToOrFrom" )
func (TransferDirection) IsValid ¶
func (e TransferDirection) IsValid() bool
func (TransferDirection) MarshalGQL ¶
func (e TransferDirection) MarshalGQL(w io.Writer)
func (TransferDirection) String ¶
func (e TransferDirection) String() string
func (*TransferDirection) UnmarshalGQL ¶
func (e *TransferDirection) UnmarshalGQL(v interface{}) error
type TransferFee ¶ added in v0.73.0
type TransferFee struct { // Transfer ID of the transfer for which the fee was paid TransferID string `json:"transferId"` // The fee amount Amount string `json:"amount"` // The epoch when this fee was paid Epoch int `json:"epoch"` }
A transfer fee record
type TransferKind ¶
type TransferKind interface {
IsTransferKind()
}
type TransferNodeResolver ¶ added in v0.73.0
type TransferNodeResolver interface {
Fees(ctx context.Context, obj *v2.TransferNode) ([]*TransferFee, error)
}
type TransferResolver ¶
type TransferResponse ¶
type TransferResponse struct { // The ledger entries and balances resulting from a transfer request Transfers []*vega.LedgerEntry `json:"transfers,omitempty"` // The balances of accounts involved in the transfer Balances []*TransferBalance `json:"balances,omitempty"` }
type TransferResponses ¶
type TransferResponses struct { // A group of transfer responses - events from core Responses []*TransferResponse `json:"responses,omitempty"` }
type TriggerKind ¶ added in v0.73.0
type TriggerKind interface {
IsTriggerKind()
}
type UpdateAssetResolver ¶
type UpdateAssetResolver interface { Quantum(ctx context.Context, obj *vega.UpdateAsset) (string, error) Source(ctx context.Context, obj *vega.UpdateAsset) (UpdateAssetSource, error) }
type UpdateAssetSource ¶
type UpdateAssetSource interface {
IsUpdateAssetSource()
}
One of the possible asset sources for update assets proposals
func UpdateAssetSourceFromProto ¶
func UpdateAssetSourceFromProto(pdetails *types.AssetDetailsUpdate) (UpdateAssetSource, error)
type UpdateErc20 ¶
type UpdateErc20 struct { // The lifetime limits deposit per address // Note: this is a temporary measure that can be changed by governance LifetimeLimit string `json:"lifetimeLimit"` // The maximum you can withdraw instantly. All withdrawals over the threshold will be delayed by the withdrawal delay. // There is no limit on the size of a withdrawal // Note: this is a temporary measure that can be changed by governance WithdrawThreshold string `json:"withdrawThreshold"` }
An asset originated from an Ethereum ERC20 Token
func UpdateERC20FromProto ¶
func UpdateERC20FromProto(ea *types.ERC20Update) *UpdateErc20
func (UpdateErc20) IsUpdateAssetSource ¶
func (UpdateErc20) IsUpdateAssetSource()
type UpdateInstrumentConfiguration ¶
type UpdateInstrumentConfiguration struct { Code string `json:"code"` Name string `json:"name"` Product UpdateProductConfiguration `json:"product"` }
type UpdateMarketConfigurationResolver ¶
type UpdateMarketConfigurationResolver interface { Instrument(ctx context.Context, obj *vega.UpdateMarketConfiguration) (*UpdateInstrumentConfiguration, error) PriceMonitoringParameters(ctx context.Context, obj *vega.UpdateMarketConfiguration) (*PriceMonitoringParameters, error) LiquidityMonitoringParameters(ctx context.Context, obj *vega.UpdateMarketConfiguration) (*LiquidityMonitoringParameters, error) RiskParameters(ctx context.Context, obj *vega.UpdateMarketConfiguration) (UpdateMarketRiskParameters, error) EnableTxReordering(ctx context.Context, obj *vega.UpdateMarketConfiguration) (bool, error) }
type UpdateMarketResolver ¶
type UpdateMarketResolver interface {
UpdateMarketConfiguration(ctx context.Context, obj *vega.UpdateMarket) (*vega.UpdateMarketConfiguration, error)
}
type UpdateMarketRiskParameters ¶
type UpdateMarketRiskParameters interface {
IsUpdateMarketRiskParameters()
}
type UpdateMarketStateResolver ¶ added in v0.73.0
type UpdateMarketStateResolver interface { Market(ctx context.Context, obj *vega.UpdateMarketState) (*vega.Market, error) UpdateType(ctx context.Context, obj *vega.UpdateMarketState) (MarketUpdateType, error) Price(ctx context.Context, obj *vega.UpdateMarketState) (*string, error) }
type UpdateNetworkParameterResolver ¶
type UpdateNetworkParameterResolver interface {
NetworkParameter(ctx context.Context, obj *vega.UpdateNetworkParameter) (*vega.NetworkParameter, error)
}
type UpdateProductConfiguration ¶ added in v0.73.0
type UpdateProductConfiguration interface {
IsUpdateProductConfiguration()
}
type UpdateReferralProgramResolver ¶ added in v0.73.0
type UpdateReferralProgramResolver interface { BenefitTiers(ctx context.Context, obj *vega.UpdateReferralProgram) ([]*vega.BenefitTier, error) EndOfProgramTimestamp(ctx context.Context, obj *vega.UpdateReferralProgram) (int64, error) WindowLength(ctx context.Context, obj *vega.UpdateReferralProgram) (int, error) StakingTiers(ctx context.Context, obj *vega.UpdateReferralProgram) ([]*vega.StakingTier, error) }
type UpdateSpotInstrumentConfiguration ¶ added in v0.76.0
type UpdateSpotMarketConfigurationResolver ¶ added in v0.73.0
type UpdateSpotMarketConfigurationResolver interface { Instrument(ctx context.Context, obj *vega.UpdateSpotMarketConfiguration) (*UpdateSpotInstrumentConfiguration, error) PriceMonitoringParameters(ctx context.Context, obj *vega.UpdateSpotMarketConfiguration) (*PriceMonitoringParameters, error) TargetStakeParameters(ctx context.Context, obj *vega.UpdateSpotMarketConfiguration) (*TargetStakeParameters, error) RiskParameters(ctx context.Context, obj *vega.UpdateSpotMarketConfiguration) (RiskModel, error) LiquiditySLAParams(ctx context.Context, obj *vega.UpdateSpotMarketConfiguration) (*vega.LiquiditySLAParameters, error) EnableTxReordering(ctx context.Context, obj *vega.UpdateSpotMarketConfiguration) (bool, error) }
type UpdateSpotMarketResolver ¶ added in v0.73.0
type UpdateSpotMarketResolver interface {
UpdateSpotMarketConfiguration(ctx context.Context, obj *vega.UpdateSpotMarket) (*vega.UpdateSpotMarketConfiguration, error)
}
type UpdateVolumeDiscountProgramResolver ¶ added in v0.73.0
type UpdateVolumeDiscountProgramResolver interface { BenefitTiers(ctx context.Context, obj *vega.UpdateVolumeDiscountProgram) ([]*vega.VolumeBenefitTier, error) EndOfProgramTimestamp(ctx context.Context, obj *vega.UpdateVolumeDiscountProgram) (int64, error) WindowLength(ctx context.Context, obj *vega.UpdateVolumeDiscountProgram) (int, error) }
type UpdateVolumeRebateProgram ¶ added in v0.77.8
type UpdateVolumeRebateProgram struct { // The benefit tiers for the program BenefitTiers []*VolumeRebateBenefitTier `json:"benefitTiers"` // Timestamp as Unix time in nanoseconds, after which program ends. EndOfProgramTimestamp int64 `json:"endOfProgramTimestamp"` // The window length to consider for the volume discount program WindowLength int `json:"windowLength"` }
func (UpdateVolumeRebateProgram) IsProposalChange ¶ added in v0.77.8
func (UpdateVolumeRebateProgram) IsProposalChange()
type VegaResolverRoot ¶
VegaResolverRoot is the root resolver for all graphql types.
func NewResolverRoot ¶
func NewResolverRoot( log *logging.Logger, config gateway.Config, tradingClient CoreProxyServiceClient, tradingDataClientV2 TradingDataServiceClientV2, ) *VegaResolverRoot
NewResolverRoot instantiate a graphql root resolver.
func (*VegaResolverRoot) AccountBalance ¶ added in v0.59.0
func (r *VegaResolverRoot) AccountBalance() AccountBalanceResolver
Account returns the accounts resolver.
func (*VegaResolverRoot) AccountDetails ¶ added in v0.56.0
func (r *VegaResolverRoot) AccountDetails() AccountDetailsResolver
Account returns the accounts resolver.
func (*VegaResolverRoot) AccountEvent ¶ added in v0.59.0
func (r *VegaResolverRoot) AccountEvent() AccountEventResolver
Account returns the accounts resolver.
func (*VegaResolverRoot) AccountUpdate ¶ added in v0.55.0
func (r *VegaResolverRoot) AccountUpdate() AccountUpdateResolver
func (*VegaResolverRoot) AggregatedLedgerEntry ¶ added in v0.63.0
func (r *VegaResolverRoot) AggregatedLedgerEntry() AggregatedLedgerEntryResolver
func (*VegaResolverRoot) AuctionEvent ¶
func (r *VegaResolverRoot) AuctionEvent() AuctionEventResolver
func (*VegaResolverRoot) BatchProposalTerms ¶ added in v0.74.0
func (r *VegaResolverRoot) BatchProposalTerms() BatchProposalTermsResolver
func (*VegaResolverRoot) BatchProposalTermsChange ¶ added in v0.74.0
func (r *VegaResolverRoot) BatchProposalTermsChange() BatchProposalTermsChangeResolver
func (*VegaResolverRoot) BenefitTier ¶ added in v0.73.0
func (r *VegaResolverRoot) BenefitTier() BenefitTierResolver
func (*VegaResolverRoot) CancelTransfer ¶ added in v0.72.0
func (r *VegaResolverRoot) CancelTransfer() CancelTransferResolver
func (*VegaResolverRoot) Candle ¶
func (r *VegaResolverRoot) Candle() CandleResolver
Candle returns the candles resolver.
func (*VegaResolverRoot) CompositePriceConfiguration ¶ added in v0.74.0
func (r *VegaResolverRoot) CompositePriceConfiguration() CompositePriceConfigurationResolver
func (*VegaResolverRoot) CoreSnapshotData ¶ added in v0.65.0
func (r *VegaResolverRoot) CoreSnapshotData() CoreSnapshotDataResolver
func (*VegaResolverRoot) CurrentReferralProgram ¶ added in v0.73.0
func (r *VegaResolverRoot) CurrentReferralProgram() CurrentReferralProgramResolver
func (*VegaResolverRoot) DataSourceDefinition ¶ added in v0.72.0
func (r *VegaResolverRoot) DataSourceDefinition() DataSourceDefinitionResolver
func (*VegaResolverRoot) DataSourceDefinitionExternal ¶ added in v0.72.0
func (r *VegaResolverRoot) DataSourceDefinitionExternal() DataSourceDefinitionExternalResolver
func (*VegaResolverRoot) DataSourceDefinitionInternal ¶ added in v0.72.0
func (r *VegaResolverRoot) DataSourceDefinitionInternal() DataSourceDefinitionInternalResolver
func (*VegaResolverRoot) DataSourceSpecConfiguration ¶ added in v0.61.0
func (r *VegaResolverRoot) DataSourceSpecConfiguration() DataSourceSpecConfigurationResolver
func (*VegaResolverRoot) DataSourceSpecConfigurationTime ¶ added in v0.73.0
func (r *VegaResolverRoot) DataSourceSpecConfigurationTime() DataSourceSpecConfigurationTimeResolver
func (*VegaResolverRoot) DataSourceSpecConfigurationTimeTrigger ¶ added in v0.73.0
func (r *VegaResolverRoot) DataSourceSpecConfigurationTimeTrigger() DataSourceSpecConfigurationTimeTriggerResolver
func (*VegaResolverRoot) DateRange ¶ added in v0.55.0
func (r *VegaResolverRoot) DateRange() DateRangeResolver
func (*VegaResolverRoot) Delegation ¶
func (r *VegaResolverRoot) Delegation() DelegationResolver
func (*VegaResolverRoot) DispatchStrategy ¶ added in v0.73.0
func (r *VegaResolverRoot) DispatchStrategy() DispatchStrategyResolver
func (*VegaResolverRoot) ERC20MultiSigSignerAddedBundle ¶ added in v0.71.0
func (r *VegaResolverRoot) ERC20MultiSigSignerAddedBundle() ERC20MultiSigSignerAddedBundleResolver
func (*VegaResolverRoot) ERC20MultiSigSignerRemovedBundle ¶ added in v0.71.0
func (r *VegaResolverRoot) ERC20MultiSigSignerRemovedBundle() ERC20MultiSigSignerRemovedBundleResolver
func (*VegaResolverRoot) Epoch ¶
func (r *VegaResolverRoot) Epoch() EpochResolver
func (*VegaResolverRoot) EpochRewardSummary ¶ added in v0.65.0
func (r *VegaResolverRoot) EpochRewardSummary() EpochRewardSummaryResolver
func (*VegaResolverRoot) EpochTimestamps ¶
func (r *VegaResolverRoot) EpochTimestamps() EpochTimestampsResolver
func (*VegaResolverRoot) EquityLikeShareWeightPerMarket ¶ added in v0.74.5
func (r *VegaResolverRoot) EquityLikeShareWeightPerMarket() EquityLikeShareWeightPerMarketResolver
func (*VegaResolverRoot) EthCallSpec ¶ added in v0.73.0
func (r *VegaResolverRoot) EthCallSpec() EthCallSpecResolver
func (*VegaResolverRoot) EthereumKeyRotation ¶
func (r *VegaResolverRoot) EthereumKeyRotation() EthereumKeyRotationResolver
func (*VegaResolverRoot) FeesStats ¶ added in v0.73.0
func (r *VegaResolverRoot) FeesStats() FeesStatsResolver
func (*VegaResolverRoot) FundingPayment ¶ added in v0.73.0
func (r *VegaResolverRoot) FundingPayment() FundingPaymentResolver
func (*VegaResolverRoot) FundingPeriod ¶ added in v0.73.0
func (r *VegaResolverRoot) FundingPeriod() FundingPeriodResolver
func (*VegaResolverRoot) FundingPeriodDataPoint ¶ added in v0.73.0
func (r *VegaResolverRoot) FundingPeriodDataPoint() FundingPeriodDataPointResolver
func (*VegaResolverRoot) Future ¶
func (r *VegaResolverRoot) Future() FutureResolver
func (*VegaResolverRoot) FutureProduct ¶
func (r *VegaResolverRoot) FutureProduct() FutureProductResolver
func (*VegaResolverRoot) Game ¶ added in v0.74.0
func (r *VegaResolverRoot) Game() GameResolver
func (*VegaResolverRoot) GamePartyScore ¶ added in v0.77.0
func (r *VegaResolverRoot) GamePartyScore() GamePartyScoreResolver
func (*VegaResolverRoot) GameTeamScore ¶ added in v0.77.0
func (r *VegaResolverRoot) GameTeamScore() GameTeamScoreResolver
func (*VegaResolverRoot) IcebergOrder ¶ added in v0.72.0
func (r *VegaResolverRoot) IcebergOrder() IcebergOrderResolver
func (*VegaResolverRoot) Instrument ¶
func (r *VegaResolverRoot) Instrument() InstrumentResolver
func (*VegaResolverRoot) InstrumentConfiguration ¶
func (r *VegaResolverRoot) InstrumentConfiguration() InstrumentConfigurationResolver
func (*VegaResolverRoot) KeyRotation ¶
func (r *VegaResolverRoot) KeyRotation() KeyRotationResolver
func (*VegaResolverRoot) LedgerEntry ¶ added in v0.71.0
func (r *VegaResolverRoot) LedgerEntry() LedgerEntryResolver
func (*VegaResolverRoot) LiquidationStrategy ¶ added in v0.74.0
func (r *VegaResolverRoot) LiquidationStrategy() LiquidationStrategyResolver
func (*VegaResolverRoot) LiquidityOrderReference ¶
func (r *VegaResolverRoot) LiquidityOrderReference() LiquidityOrderReferenceResolver
func (*VegaResolverRoot) LiquidityProvider ¶ added in v0.73.0
func (r *VegaResolverRoot) LiquidityProvider() LiquidityProviderResolver
func (*VegaResolverRoot) LiquidityProvision ¶
func (r *VegaResolverRoot) LiquidityProvision() LiquidityProvisionResolver
func (*VegaResolverRoot) LiquidityProvisionUpdate ¶ added in v0.55.0
func (r *VegaResolverRoot) LiquidityProvisionUpdate() LiquidityProvisionUpdateResolver
func (*VegaResolverRoot) LiquiditySLAParameters ¶ added in v0.73.0
func (r *VegaResolverRoot) LiquiditySLAParameters() LiquiditySLAParametersResolver
func (*VegaResolverRoot) MarginEstimate ¶ added in v0.74.0
func (r *VegaResolverRoot) MarginEstimate() MarginEstimateResolver
MarginLevels returns the market levels resolver.
func (*VegaResolverRoot) MarginLevels ¶
func (r *VegaResolverRoot) MarginLevels() MarginLevelsResolver
MarginLevels returns the market levels resolver.
func (*VegaResolverRoot) MarginLevelsUpdate ¶ added in v0.55.0
func (r *VegaResolverRoot) MarginLevelsUpdate() MarginLevelsUpdateResolver
MarginLevelsUpdate returns the market levels resolver.
func (*VegaResolverRoot) Market ¶
func (r *VegaResolverRoot) Market() MarketResolver
Market returns the markets resolver.
func (*VegaResolverRoot) MarketData ¶
func (r *VegaResolverRoot) MarketData() MarketDataResolver
MarketData returns the market data resolver.
func (*VegaResolverRoot) MarketDepth ¶
func (r *VegaResolverRoot) MarketDepth() MarketDepthResolver
MarketDepth returns the market depth resolver.
func (*VegaResolverRoot) MarketDepthUpdate ¶
func (r *VegaResolverRoot) MarketDepthUpdate() MarketDepthUpdateResolver
MarketDepthUpdate returns the market depth update resolver.
func (*VegaResolverRoot) NewAsset ¶
func (r *VegaResolverRoot) NewAsset() NewAssetResolver
func (*VegaResolverRoot) NewFreeform ¶
func (r *VegaResolverRoot) NewFreeform() NewFreeformResolver
func (*VegaResolverRoot) NewMarket ¶
func (r *VegaResolverRoot) NewMarket() NewMarketResolver
func (*VegaResolverRoot) NewSpotMarket ¶ added in v0.73.0
func (r *VegaResolverRoot) NewSpotMarket() NewSpotMarketResolver
func (*VegaResolverRoot) NewTransfer ¶ added in v0.72.0
func (r *VegaResolverRoot) NewTransfer() NewTransferResolver
func (*VegaResolverRoot) Node ¶
func (r *VegaResolverRoot) Node() NodeResolver
func (*VegaResolverRoot) NodeData ¶
func (r *VegaResolverRoot) NodeData() NodeDataResolver
func (*VegaResolverRoot) NodeSignature ¶
func (r *VegaResolverRoot) NodeSignature() NodeSignatureResolver
NodeSignature ...
func (*VegaResolverRoot) ObservableMarketData ¶
func (r *VegaResolverRoot) ObservableMarketData() ObservableMarketDataResolver
func (*VegaResolverRoot) ObservableMarketDepth ¶
func (r *VegaResolverRoot) ObservableMarketDepth() ObservableMarketDepthResolver
func (*VegaResolverRoot) ObservableMarketDepthUpdate ¶
func (r *VegaResolverRoot) ObservableMarketDepthUpdate() ObservableMarketDepthUpdateResolver
func (*VegaResolverRoot) OracleData ¶
func (r *VegaResolverRoot) OracleData() OracleDataResolver
func (*VegaResolverRoot) OracleSpec ¶
func (r *VegaResolverRoot) OracleSpec() OracleSpecResolver
func (*VegaResolverRoot) Order ¶
func (r *VegaResolverRoot) Order() OrderResolver
Order returns the order resolver.
func (*VegaResolverRoot) OrderFilter ¶ added in v0.63.0
func (r *VegaResolverRoot) OrderFilter() OrderFilterResolver
func (*VegaResolverRoot) OrderInfo ¶ added in v0.74.0
func (r *VegaResolverRoot) OrderInfo() OrderInfoResolver
func (*VegaResolverRoot) OrderSubmission ¶ added in v0.72.0
func (r *VegaResolverRoot) OrderSubmission() OrderSubmissionResolver
func (*VegaResolverRoot) OrderUpdate ¶ added in v0.55.0
func (r *VegaResolverRoot) OrderUpdate() OrderUpdateResolver
OrderUpdate returns the order resolver.
func (*VegaResolverRoot) PaidLiquidityFees ¶ added in v0.73.0
func (r *VegaResolverRoot) PaidLiquidityFees() PaidLiquidityFeesResolver
func (*VegaResolverRoot) Party ¶
func (r *VegaResolverRoot) Party() PartyResolver
Party returns the parties resolver.
func (*VegaResolverRoot) PartyActivityStreak ¶ added in v0.73.0
func (r *VegaResolverRoot) PartyActivityStreak() PartyActivityStreakResolver
func (*VegaResolverRoot) PartyAmount ¶ added in v0.73.0
func (r *VegaResolverRoot) PartyAmount() PartyAmountResolver
func (*VegaResolverRoot) PartyLockedBalance ¶ added in v0.73.0
func (r *VegaResolverRoot) PartyLockedBalance() PartyLockedBalanceResolver
func (*VegaResolverRoot) PartyMarginMode ¶ added in v0.74.0
func (r *VegaResolverRoot) PartyMarginMode() PartyMarginModeResolver
func (*VegaResolverRoot) PartyStake ¶
func (r *VegaResolverRoot) PartyStake() PartyStakeResolver
func (*VegaResolverRoot) PartyVestingBalance ¶ added in v0.73.0
func (r *VegaResolverRoot) PartyVestingBalance() PartyVestingBalanceResolver
func (*VegaResolverRoot) PartyVestingBalancesSummary ¶ added in v0.73.0
func (r *VegaResolverRoot) PartyVestingBalancesSummary() PartyVestingBalancesSummaryResolver
func (*VegaResolverRoot) PartyVestingStats ¶ added in v0.73.0
func (r *VegaResolverRoot) PartyVestingStats() PartyVestingStatsResolver
func (*VegaResolverRoot) Perpetual ¶ added in v0.73.0
func (r *VegaResolverRoot) Perpetual() PerpetualResolver
func (*VegaResolverRoot) PerpetualData ¶ added in v0.74.0
func (r *VegaResolverRoot) PerpetualData() PerpetualDataResolver
func (*VegaResolverRoot) PerpetualProduct ¶ added in v0.73.0
func (r *VegaResolverRoot) PerpetualProduct() PerpetualProductResolver
func (*VegaResolverRoot) Position ¶
func (r *VegaResolverRoot) Position() PositionResolver
Position returns the positions resolver.
func (*VegaResolverRoot) PositionUpdate ¶ added in v0.56.0
func (r *VegaResolverRoot) PositionUpdate() PositionUpdateResolver
PositionUpdate returns the positionUpdate resolver.
func (*VegaResolverRoot) PriceLevel ¶
func (r *VegaResolverRoot) PriceLevel() PriceLevelResolver
PriceLevel returns the price levels resolver.
func (*VegaResolverRoot) Proposal ¶
func (r *VegaResolverRoot) Proposal() ProposalResolver
Proposal returns the proposal resolver.
func (*VegaResolverRoot) ProposalDetail ¶ added in v0.71.0
func (r *VegaResolverRoot) ProposalDetail() ProposalDetailResolver
ProposalDetail returns the Proposal detail resolver.
func (*VegaResolverRoot) ProposalEdge ¶ added in v0.74.0
func (r *VegaResolverRoot) ProposalEdge() ProposalEdgeResolver
Proposal returns the proposal resolver.
func (*VegaResolverRoot) ProposalTerms ¶
func (r *VegaResolverRoot) ProposalTerms() ProposalTermsResolver
func (*VegaResolverRoot) ProtocolUpgradeProposal ¶ added in v0.61.0
func (r *VegaResolverRoot) ProtocolUpgradeProposal() ProtocolUpgradeProposalResolver
func (*VegaResolverRoot) QuantumRewardsPerEpoch ¶ added in v0.74.0
func (r *VegaResolverRoot) QuantumRewardsPerEpoch() QuantumRewardsPerEpochResolver
func (*VegaResolverRoot) QuantumVolumesPerEpoch ¶ added in v0.74.0
func (r *VegaResolverRoot) QuantumVolumesPerEpoch() QuantumVolumesPerEpochResolver
func (*VegaResolverRoot) Query ¶
func (r *VegaResolverRoot) Query() QueryResolver
Query returns the query resolver.
func (*VegaResolverRoot) RankingScore ¶
func (r *VegaResolverRoot) RankingScore() RankingScoreResolver
func (*VegaResolverRoot) RecurringGovernanceTransfer ¶ added in v0.72.0
func (r *VegaResolverRoot) RecurringGovernanceTransfer() RecurringGovernanceTransferResolver
func (*VegaResolverRoot) RecurringTransfer ¶
func (r *VegaResolverRoot) RecurringTransfer() RecurringTransferResolver
func (*VegaResolverRoot) ReferralProgram ¶ added in v0.73.0
func (r *VegaResolverRoot) ReferralProgram() ReferralProgramResolver
func (*VegaResolverRoot) ReferralSet ¶ added in v0.74.0
func (r *VegaResolverRoot) ReferralSet() ReferralSetResolver
func (*VegaResolverRoot) ReferralSetReferee ¶ added in v0.73.0
func (r *VegaResolverRoot) ReferralSetReferee() ReferralSetRefereeResolver
func (*VegaResolverRoot) ReferralSetStats ¶ added in v0.73.0
func (r *VegaResolverRoot) ReferralSetStats() ReferralSetStatsResolver
func (*VegaResolverRoot) ReferrerRewardsGenerated ¶ added in v0.73.0
func (r *VegaResolverRoot) ReferrerRewardsGenerated() ReferrerRewardsGeneratedResolver
func (*VegaResolverRoot) Reward ¶
func (r *VegaResolverRoot) Reward() RewardResolver
func (*VegaResolverRoot) RewardSummary ¶
func (r *VegaResolverRoot) RewardSummary() RewardSummaryResolver
func (*VegaResolverRoot) RewardSummaryFilter ¶ added in v0.68.0
func (r *VegaResolverRoot) RewardSummaryFilter() RewardSummaryFilterResolver
RewardSummaryFilter returns RewardSummaryFilterResolver implementation.
func (*VegaResolverRoot) Spot ¶ added in v0.73.0
func (r *VegaResolverRoot) Spot() SpotResolver
func (*VegaResolverRoot) SpotProduct ¶ added in v0.73.0
func (r *VegaResolverRoot) SpotProduct() SpotProductResolver
func (*VegaResolverRoot) StakeLinking ¶
func (r *VegaResolverRoot) StakeLinking() StakeLinkingResolver
func (*VegaResolverRoot) Statistics ¶
func (r *VegaResolverRoot) Statistics() StatisticsResolver
func (*VegaResolverRoot) StopOrder ¶ added in v0.72.0
func (r *VegaResolverRoot) StopOrder() StopOrderResolver
func (*VegaResolverRoot) StopOrderFilter ¶ added in v0.72.0
func (r *VegaResolverRoot) StopOrderFilter() StopOrderFilterResolver
func (*VegaResolverRoot) Subscription ¶
func (r *VegaResolverRoot) Subscription() SubscriptionResolver
Subscription returns the subscriptions resolver.
func (*VegaResolverRoot) Team ¶ added in v0.73.0
func (r *VegaResolverRoot) Team() TeamResolver
func (*VegaResolverRoot) TeamMemberStatistics ¶ added in v0.74.0
func (r *VegaResolverRoot) TeamMemberStatistics() TeamMemberStatisticsResolver
func (*VegaResolverRoot) TeamReferee ¶ added in v0.73.0
func (r *VegaResolverRoot) TeamReferee() TeamRefereeResolver
func (*VegaResolverRoot) TeamRefereeHistory ¶ added in v0.73.0
func (r *VegaResolverRoot) TeamRefereeHistory() TeamRefereeHistoryResolver
func (*VegaResolverRoot) TeamStatistics ¶ added in v0.74.0
func (r *VegaResolverRoot) TeamStatistics() TeamStatisticsResolver
func (*VegaResolverRoot) TimeWeightedNotionalPosition ¶ added in v0.75.0
func (r *VegaResolverRoot) TimeWeightedNotionalPosition() TimeWeightedNotionalPositionResolver
func (*VegaResolverRoot) TradableInstrument ¶
func (r *VegaResolverRoot) TradableInstrument() TradableInstrumentResolver
func (*VegaResolverRoot) Trade ¶
func (r *VegaResolverRoot) Trade() TradeResolver
Trade returns the trades resolver.
func (*VegaResolverRoot) TradeUpdate ¶ added in v0.55.0
func (r *VegaResolverRoot) TradeUpdate() TradeUpdateResolver
func (*VegaResolverRoot) TransactionResult ¶ added in v0.58.0
func (r *VegaResolverRoot) TransactionResult() TransactionResultResolver
func (*VegaResolverRoot) Transfer ¶
func (r *VegaResolverRoot) Transfer() TransferResolver
func (*VegaResolverRoot) TransferNode ¶ added in v0.73.0
func (r *VegaResolverRoot) TransferNode() TransferNodeResolver
func (*VegaResolverRoot) UpdateAsset ¶
func (r *VegaResolverRoot) UpdateAsset() UpdateAssetResolver
func (*VegaResolverRoot) UpdateMarket ¶
func (r *VegaResolverRoot) UpdateMarket() UpdateMarketResolver
func (*VegaResolverRoot) UpdateMarketConfiguration ¶
func (r *VegaResolverRoot) UpdateMarketConfiguration() UpdateMarketConfigurationResolver
func (*VegaResolverRoot) UpdateMarketState ¶ added in v0.73.0
func (r *VegaResolverRoot) UpdateMarketState() UpdateMarketStateResolver
func (*VegaResolverRoot) UpdateNetworkParameter ¶
func (r *VegaResolverRoot) UpdateNetworkParameter() UpdateNetworkParameterResolver
func (*VegaResolverRoot) UpdateReferralProgram ¶ added in v0.73.0
func (r *VegaResolverRoot) UpdateReferralProgram() UpdateReferralProgramResolver
func (*VegaResolverRoot) UpdateSpotMarket ¶ added in v0.73.0
func (r *VegaResolverRoot) UpdateSpotMarket() UpdateSpotMarketResolver
func (*VegaResolverRoot) UpdateSpotMarketConfiguration ¶ added in v0.73.0
func (r *VegaResolverRoot) UpdateSpotMarketConfiguration() UpdateSpotMarketConfigurationResolver
func (*VegaResolverRoot) UpdateVolumeDiscountProgram ¶ added in v0.73.0
func (r *VegaResolverRoot) UpdateVolumeDiscountProgram() UpdateVolumeDiscountProgramResolver
func (*VegaResolverRoot) VolumeBenefitTier ¶ added in v0.77.8
func (r *VegaResolverRoot) VolumeBenefitTier() VolumeBenefitTierResolver
func (*VegaResolverRoot) VolumeDiscountProgram ¶ added in v0.73.0
func (r *VegaResolverRoot) VolumeDiscountProgram() VolumeDiscountProgramResolver
func (*VegaResolverRoot) VolumeDiscountStats ¶ added in v0.73.0
func (r *VegaResolverRoot) VolumeDiscountStats() VolumeDiscountStatsResolver
func (*VegaResolverRoot) VolumeRebateProgram ¶ added in v0.77.8
func (r *VegaResolverRoot) VolumeRebateProgram() VolumeRebateProgramResolver
func (*VegaResolverRoot) VolumeRebateStats ¶ added in v0.77.8
func (r *VegaResolverRoot) VolumeRebateStats() VolumeRebateStatsResolver
func (*VegaResolverRoot) Vote ¶
func (r *VegaResolverRoot) Vote() VoteResolver
func (*VegaResolverRoot) Withdrawal ¶
func (r *VegaResolverRoot) Withdrawal() WithdrawalResolver
Withdrawal ...
type VolumeBenefitTierResolver ¶ added in v0.77.8
type VolumeBenefitTierResolver interface {
VolumeDiscountFactors(ctx context.Context, obj *vega.VolumeBenefitTier) (*DiscountFactors, error)
}
type VolumeDiscountProgramResolver ¶ added in v0.73.0
type VolumeDiscountStatsResolver ¶ added in v0.73.0
type VolumeDiscountStatsResolver interface { AtEpoch(ctx context.Context, obj *v2.VolumeDiscountStats) (int, error) DiscountFactors(ctx context.Context, obj *v2.VolumeDiscountStats) (*DiscountFactors, error) }
type VolumeRebateBenefitTier ¶ added in v0.77.8
type VolumeRebateBenefitTier struct { // The required volume fraction for a party to access this tier MinimumPartyMakerVolumeFraction string `json:"minimumPartyMakerVolumeFraction"` // The additional rebate factor (in percentage of trade_value_for_fee_purposes a party at this tier will receive when they are the maker side of a trade AdditionalMakerRebate string `json:"additionalMakerRebate"` }
type VolumeRebateProgramResolver ¶ added in v0.77.8
type VolumeRebateProgramResolver interface { Version(ctx context.Context, obj *v2.VolumeRebateProgram) (int, error) BenefitTiers(ctx context.Context, obj *v2.VolumeRebateProgram) ([]*VolumeRebateBenefitTier, error) WindowLength(ctx context.Context, obj *v2.VolumeRebateProgram) (int, error) }
type VolumeRebateStatsResolver ¶ added in v0.77.8
type VoteResolver ¶
type VoteResolver interface { Party(ctx context.Context, obj *vega.Vote) (*vega.Party, error) Datetime(ctx context.Context, obj *vega.Vote) (int64, error) GovernanceTokenBalance(ctx context.Context, obj *vega.Vote) (string, error) GovernanceTokenWeight(ctx context.Context, obj *vega.Vote) (string, error) }
type WithdrawalDetails ¶
type WithdrawalDetails interface {
IsWithdrawalDetails()
}
type WithdrawalResolver ¶
type WithdrawalResolver interface { Party(ctx context.Context, obj *vega.Withdrawal) (*vega.Party, error) Asset(ctx context.Context, obj *vega.Withdrawal) (*vega.Asset, error) TxHash(ctx context.Context, obj *vega.Withdrawal) (*string, error) Details(ctx context.Context, obj *vega.Withdrawal) (WithdrawalDetails, error) }
Source Files ¶
- all_resolver.go
- asset_resolver.go
- auction_event_resolver.go
- benefit_tier_resolver.go
- connection_handlers.go
- data_source_resolver.go
- date_range_resolver.go
- delegation_resolver.go
- dispatch_strategy_resolver.go
- doc.go
- els_weight_per_market_resolver.go
- epoch_resolver.go
- epoch_timestamps_resolver.go
- erc20_multi_sig_signer_added_bundle_resolver.go
- erc20_multi_sig_signer_removed_bundle_resolver.go
- ethereum_key_rotation_resolver.go
- fees_stats_resolver.go
- funding_payment_resolver.go
- funding_period.go
- future_product_resolver.go
- future_resolver.go
- game_resolver.go
- game_scores_resolver.go
- generated.go
- helpers.go
- helpers_enum.go
- iceberg_order_resolver.go
- instrument_configuration_resolver.go
- instrument_resolver.go
- key_rotation_resolver.go
- ledger_entry_resolver.go
- liquidation_strategy_resolver.go
- liquidity_provider_resolver.go
- liquidity_provision_resolver.go
- liquidity_provisions_resolver.go
- liquidity_sla_resolver.go
- margin_estimate_resolver.go
- margin_mode_resolver.go
- mark_price_configuration_resolver.go
- market_data_resolvers.go
- market_resolvers.go
- modelext.go
- models.go
- new_asset_resolver.go
- new_freeform_resolver.go
- new_market_resolver.go
- new_transfer_resolver.go
- node_data_resolver.go
- node_resolver.go
- oracles_resolver.go
- order_filter_resolver.go
- order_submission_resolver.go
- paid_liquidity_fees_resolver.go
- party_activity_streak_resolver.go
- party_vesting_stats_resolver.go
- perpetual_data_resolver.go
- perps_resolver.go
- proposal_detail_resolver.go
- proposal_edge_resolver.go
- proposal_resolver.go
- proposal_terms_resolver.go
- ranking_score_resolver.go
- referral_program_resolver.go
- referral_set_resolver.go
- resolvers.go
- reward.go
- reward_summary.go
- reward_summary_filter_resolver.go
- server.go
- spot_resolver.go
- staking.go
- statistics.go
- stop_order_resolver.go
- team_resolvers.go
- time_weighted_notional_position_resolver.go
- tradable_instrument_resolver.go
- tradable_update_resolver.go
- transfer_node_resolver.go
- transfers_resolver.go
- update_asset_resolver.go
- update_market_configuration_resolver.go
- update_market_resolver.go
- update_market_state_resolver.go
- update_network_parameter_resolver.go
- update_referral_program_resolver.go
- update_volume_discount_program_resolver.go
- vesting_balance_resolver.go
- volume_discount_program_resolver.go
- volume_discount_stats_resolver.go
- volume_rebate_program_resolver.go
- volume_rebate_stats_resolver.go
- vote_resolver.go
- withdrawal_resolver.go
Directories ¶
Path | Synopsis |
---|---|
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |