Skip to main content
Version: testnet (v0.71)

trading_data.proto

path data-node/api/v2/trading_data.proto

package datanode.api.v2


Messages

AccountBalance

Represents the current balance of an account for an asset on Vega, for a particular owner or party

NameTypeDescription
ownerstringUnique account ID used internally by Vega string id = 1; Party that owns the account. Special values include `network` - represents the Vega network and is most commonly seen during liquidation of a distressed trading position.
balancestringAsset balance represented as an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places. Balances cannot be negative.
assetstringAsset ID for the account.
market_idstringMarket ID for the account, this field will be empty if the asset is in a general account.
typevega.AccountTypeAccount type of this account.

AccountEdge

Account data item with the corresponding cursor.

NameTypeDescription
nodeAccountBalanceAccount balance data.
cursorstringCursor that can be used to fetch further pages with reference to this account.

AccountFilter

Filter that is used to filter account data by asset ID, party ID, market ID and account type

NameTypeDescription
asset_idstringRestrict accounts to those holding balances in this asset ID.
party_idsstringRestrict accounts to those owned by the parties in this list. Pass an empty list for no filter.
market_idsstringRestrict accounts to those connected to the markets in this list. Pass an empty list for no filter.
account_typesvega.AccountTypeRestrict accounts to those connected to any of the types in this list. Pass an empty list for no filter.

AccountSnapshotPage

'Initial image' snapshot containing current account balances - may be sent over several response messages

NameTypeDescription
accountsAccountBalanceList of account balances.
last_pageboolIndicator if the current page is the last one or not.

AccountUpdates

List of account updates in the last block

NameTypeDescription
accountsAccountBalanceList of account balances.

AccountsConnection

Page of accounts data and corresponding page information.

NameTypeDescription
edgesAccountEdgePage of accounts data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

AggregatedBalance

AggregatedBalance data contains the balance of the set of requested accounts combined with corresponding party ID, market ID and account type details

NameTypeDescription
timestampint64Timestamp to of block the balance is referring to, in nanoseconds.
balancestringBalance of the set of requested accounts at the time above.
party_idstringIf grouping by party, the party ID.
asset_idstringIf grouping by asset, the asset ID.
market_idstringIf grouping by market, the market ID
account_typevega.AccountTypeIf grouping by account type, the account type.

AggregatedBalanceConnection

Page of aggregated balance objects and corresponding page information

NameTypeDescription
edgesAggregatedBalanceEdgePage of aggregated balance data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

AggregatedBalanceEdge

Aggregated balance data with the corresponding cursor.

NameTypeDescription
nodeAggregatedBalanceBalance of the set of requested accounts.
cursorstringCursor that can be used to fetch further pages.

AggregatedLedgerEntriesConnection

Page of aggregated ledger entries data and corresponding page information

NameTypeDescription
edgesAggregatedLedgerEntriesEdgePage of 'AggregatedLedgerEntry' data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

AggregatedLedgerEntriesEdge

Represents the aggregated ledger entry data with corresponding cursor for it

NameTypeDescription
nodeAggregatedLedgerEntry'AggregatedLedgerEntry' data.
cursorstringCursor that can be used to fetch further pages.

AggregatedLedgerEntry

Represents an aggregated view of ledger entry data, sender and receiver accounts, details and balances for both sides after the transfer has been made

NameTypeDescription
timestampint64Timestamp to of block the result is referring to, in nanoseconds.
quantitystringAmount of ledger entries for the set of requested accounts at the time above.
transfer_typevega.TransferTypeTransfer type.
asset_idstringAsset ID for the asset associated with the entry.
from_account_typevega.AccountTypeType of account sent from.
to_account_typevega.AccountTypeType of account received to.
from_account_party_idstringSender's party ID.
to_account_party_idstringReceiver's party ID.
from_account_market_idstringSender market ID.
to_account_market_idstringReceiver market ID.
from_account_balancestringSender account balance after the transfer.
to_account_balancestringReceiver account balance after the transfer.

AssetEdge

Assets data with the corresponding cursor.

NameTypeDescription
nodevega.AssetAsset data returned.
cursorstringCursor that can be used to fetch further pages.

AssetsConnection

Page of asset data and corresponding page information

NameTypeDescription
edgesAssetEdgePage of assets data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

Candle

Represents the high, low, open, and closing prices for an interval of trading, referred to commonly as a candlestick or candle

NameTypeDescription
startint64Timestamp for the point in time when the candle was initially created/opened, in nanoseconds.
last_updateint64Timestamp for the point in time when the candle was last updated, in nanoseconds.
highstringHighest price for trading during the candle interval.
lowstringLowest price for trading during the candle interval.
openstringOpen trade price.
closestringClosing trade price.
volumeuint64Total trading volume during the candle interval.

CandleDataConnection

Page of candles data and corresponding page information

NameTypeDescription
edgesCandleEdgePage of candle data items and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

CandleEdge

Candle data with the corresponding cursor.

NameTypeDescription
nodeCandleCandlestick data, i.e. high, low, open, and closing prices for an interval of trading.
cursorstringCursor that can be used to fetch further pages.

Checkpoint

Actual data regarding a checkpoint

NameTypeDescription
hashstringHash of the checkpoint.
block_hashstringBlock hash at which the checkpoint is made.
at_blockuint64Block number at which the checkpoint is made.

CheckpointEdge

Checkpoint data with the corresponding cursor.

NameTypeDescription
nodeCheckpointData relating to a single checkpoint generated by the Vega network.
cursorstringCursor that can be used to fetch further pages.

CheckpointsConnection

Page of checkpoints data and corresponding page information

NameTypeDescription
edgesCheckpointEdgePage of checkpoints data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

CoreSnapshotConnection

Page of core snapshot data and corresponding page information.

NameTypeDescription
edgesCoreSnapshotEdgePage of core snapshot data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

CoreSnapshotEdge

Core snapshot data with the corresponding cursor.

NameTypeDescription
nodevega.events.v1.CoreSnapshotDataCore snapshot data.
cursorstringCursor that can be used to fetch further pages.

DateRange

Date range for queries that can return historical data Timestamps should be provided as unix time in nanoseconds and are inclusive.

NameTypeDescription
start_timestampint64
end_timestampint64

DelegationEdge

Delegation data with the corresponding cursor.

NameTypeDescription
nodevega.DelegationHow much a party is delegating to a node and when.
cursorstringCursor that can be used to fetch further pages.

DelegationsConnection

Page of delegations data and corresponding page information

NameTypeDescription
edgesDelegationEdgePage of delegations data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

DepositEdge

Deposits data with the corresponding cursor.

NameTypeDescription
nodevega.DepositData associated with a single deposit made on the Vega network.
cursorstringCursor that can be used to fetch further pages.

DepositsConnection

Page of deposits data received and corresponding page information

NameTypeDescription
edgesDepositEdgePage of deposits data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

ERC20MultiSigSignerAddedBundle

Signature bundle data to be added

NameTypeDescription
new_signerstringEthereum address of the signer to be removed.
submitterstringEthereum address of the submitter.
noncestringNonce used in the signing operation.
timestampint64Unixnano timestamp for when the validator was added.
signaturesstringBundle of signatures from current validators to sign in the new signer.
epoch_seqstringEpoch in which the validator was added.

ERC20MultiSigSignerAddedBundleEdge

Signature bundle data that is to be added with the corresponding cursor.

NameTypeDescription
nodeERC20MultiSigSignerAddedBundleSignature bundle data to be added.
cursorstringCursor that can be used to fetch further pages.

ERC20MultiSigSignerAddedConnection

Page of signature data items to be added and corresponding page information

NameTypeDescription
edgesERC20MultiSigSignerAddedBundleEdgePage of signature bundle data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

ERC20MultiSigSignerAddedEdge

Signature data that is to be added with the corresponding cursor.

NameTypeDescription
nodevega.events.v1.ERC20MultiSigSignerAddedSignature data to be added.
cursorstringCursor that can be used to fetch further pages.

ERC20MultiSigSignerRemovedBundle

Signature bundle data to be removed

NameTypeDescription
old_signerstringEthereum address of the signer to be removed.
submitterstringEthereum address of the submitter.
noncestringNonce used in the signing operation.
timestampint64Unixnano timestamp for when the validator was added.
signaturesstringBundle of signatures from current validators to sign in the new signer.
epoch_seqstringEpoch in which the validator was removed.

ERC20MultiSigSignerRemovedBundleEdge

Signature bundle data to be removed, with the corresponding cursor.

NameTypeDescription
nodeERC20MultiSigSignerRemovedBundleSignature bundle data to be added.
cursorstringCursor that can be used to fetch further pages.

ERC20MultiSigSignerRemovedConnection

Page of signature data items to be removed and corresponding page information.

NameTypeDescription
edgesERC20MultiSigSignerRemovedBundleEdgePage of signature bundle data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

ERC20MultiSigSignerRemovedEdge

Signature data to be removed with the corresponding cursor.

NameTypeDescription
nodevega.events.v1.ERC20MultiSigSignerRemovedSignature data to be removed.
cursorstringCursor that can be used to fetch further pages.

EpochRewardSummaryConnection

Page of rewards summary data for epoch and corresponding page information

NameTypeDescription
edgesEpochRewardSummaryEdgePage of rewards summary data for epochs and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

EpochRewardSummaryEdge

Rewards summary data for epoch with the corresponding cursor.

NameTypeDescription
nodevega.EpochRewardSummaryRewards summary data for epoch.
cursorstringCursor that can be used to fetch further pages.

EstimateFeeRequest

Request to fetch the estimated fee if an order were to trade immediately

NameTypeDescription
market_idstringMarket ID, used to specify the fee factors.
pricestringPrice at which the potential order is expected to trade.
sizeuint64Size at which the potential order is expected to trade.

EstimateFeeResponse

Response that is received from EstimateFeeRequest, contains the estimated fees for a given order

NameTypeDescription
feevega.FeeSummary of the estimated fees for this order if it were to trade now.

EstimateMarginRequest

Request to fetch the estimated MarginLevels if an order were to trade immediately

NameTypeDescription
market_idstringMarket ID for the order.
party_idstringParty ID of the order.
sidevega.SideOrder side - indicator for Seller or Buyer side.
typevega.Order.TypeType of the order.
sizeuint64Size of order.
pricestringPrice of the asset.

EstimateMarginResponse

Response to an estimate margin request, containing the estimated margin levels for a given order

NameTypeDescription
margin_levelsvega.MarginLevelsSummary of the estimated margins for this order if it were to trade now.

EstimatePositionRequest

Request for the estimate of the margin level and, if available collateral is provided, liqudation price for the specified position.

NameTypeDescription
market_idstringMarket ID.
open_volumeint64Open volume. This field is an signed integer (negative for short position) passed as a string and needs to be scaled using the market's position decimal places.
ordersOrderInfoOpen and/or hypothetical orders.
collateral_availablestringOptional argument specifying collateral available for the position, if provided then response will contain the liquidation price estimate.

EstimatePositionResponse

Response for the estimate of the margin level and, if available collateral was provided in the request, liqudation price for the specified position.

NameTypeDescription
marginMarginEstimateMargin level range estimate for the specified position.
liquidationLiquidationEstimateLiquidation price range estimate for the specified position. Only populated if available collateral was specified in the request.

EthereumKeyRotationEdge

Ethereum key rotation data with the corresponding cursor.

NameTypeDescription
nodevega.events.v1.EthereumKeyRotationData relating to an Ethereum key rotation performed by a node on the Vega network.
cursorstringCursor that can be used to fetch further pages.

EthereumKeyRotationsConnection

Page of Ethereum key rotations data and corresponding page information

NameTypeDescription
edgesEthereumKeyRotationEdgePage of Ethereum key rotations data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

ExportLedgerEntriesRequest

Request that is sent when exporting ledger entries to csv

NameTypeDescription
party_idstringParty ID to export ledger entries for.
asset_idstringOptional: Asset ID.
date_rangeDateRangeDate range to export ledger entries for.

ExportNetworkHistoryRequest

Request to export network history data in CSV format

NameTypeDescription
from_blockint64Block to begin exporting from. Must be the first block of a history segment, which by default are 1000 blocks each; in that case - 1, 1001, 2001 etc. are valid values. This can be checked by first calling the API to list all network history segments.
to_blockint64Last block to export up to and including. Must be the last block of a history segment which by default are 1000 blocks each; in that case - 1000, 2000, 3000 etc. are valid values. This can be checked by first calling the API to list all network history segments.
tableTableTable to export data from.

GetActiveNetworkHistoryPeerAddressesRequest

Request to get the addresses of active network history peers

NameTypeDescription

GetActiveNetworkHistoryPeerAddressesResponse

Response containing the addresses of active network history peers

NameTypeDescription
ip_addressesstringList of IP addresses for the active peers.

GetAssetRequest

Request for obtaining asset

NameTypeDescription
asset_idstringAsset ID to get data for.

GetAssetResponse

Response from getting an asset

NameTypeDescription
assetvega.AssetAsset information that is returned.

GetBalanceHistoryRequest

Request that is used when querying balance history

NameTypeDescription
filterAccountFilterAccountFilter contains values that can be set in order to limit balance history data to them.
group_byAccountFieldBy default the net balances of all the accounts specified by the filter are returned. If a list of fields is given in group_by, split out those balances by the supplied criteria.
paginationPagination
date_rangeDateRange

GetBalanceHistoryResponse

Response that is received when querying for balance history

NameTypeDescription
balancesAggregatedBalanceConnectionPage of aggregated balances with the corresponding page information.

GetDepositRequest

Request to get data about a specific deposit by ID

NameTypeDescription
idstringDeposit ID, which can be obtained using the List Deposits query.

GetDepositResponse

Response that is received from getting deposit data

NameTypeDescription
depositvega.DepositDeposit matching the ID from the request.

GetERC20ListAssetBundleRequest

Request for listing the signature bundle to an ERC-20 token in the collateral bridge

NameTypeDescription
asset_idstringAsset ID of the asset bundle requested.

GetERC20ListAssetBundleResponse

Response from listing the signature bundle to an ERC-20 token in the collateral bridge

NameTypeDescription
asset_sourcestringAddress of the asset on ethereum.
vega_asset_idstringAsset ID for the underlying Vega asset.
noncestringNonce, which is actually the internal reference for the proposal.
signaturesstringSignatures bundle as hex encoded data, forward by 0x e.g: 0x + sig1 + sig2 + ... + sixN.

GetERC20SetAssetLimitsBundleRequest

Request for the signature bundle to update the token limits i.e. maxLifetimeDeposit and withdrawThreshold for a given ERC20 token that is already allowlisted in the collateral bridge

NameTypeDescription
proposal_idstringProposal ID of the asset update proposal.

GetERC20SetAssetLimitsBundleResponse

Response for the signature bundle to update the token limits i.e. maxLifetimeDeposit and withdrawThreshold for a given ERC20 token that is already allowlisted in the collateral bridge

NameTypeDescription
asset_sourcestringAddress of the asset on ethereum.
vega_asset_idstringAsset ID for the underlying Vega asset.
noncestringNonce, which is actually the internal reference for the proposal.
lifetime_limitstringLifetime limit deposit for this asset.
thresholdstringThreshold withdraw for this asset.
signaturesstringSignatures bundle as hex encoded data, forward by 0x e.g: 0x + sig1 + sig2 + ... + sixN.

GetERC20WithdrawalApprovalRequest

Request to get all information required to bundle the call to finalise the withdrawal on the erc20 bridge

NameTypeDescription
withdrawal_idstringWithdrawal ID to retrieve.

GetERC20WithdrawalApprovalResponse

Response with all information required to bundle the call to finalise the withdrawal on the erc20 bridge function withdraw_asset(address asset_source, uint256 asset_id, uint256 amount, uint256 expiry, uint256 nonce, bytes memory signatures)

NameTypeDescription
asset_sourcestringAddress of asset on ethereum.
amountstringAmount to be withdrawn.
noncestringNonce, which is actually the internal reference for the withdrawal.
signaturesstringSignatures bundle as hex encoded data, forward by 0x e.g: 0x + sig1 + sig2 + ... + sixN.
target_addressstringEthereum address to withdraw the funds to, 0x prefixed.
creationint64Creation timestamps.

GetEpochRequest

Request to fetch epoch data

NameTypeDescription
iduint64Epoch ID to get, if provided. If omitted, data for the current epoch is returned.

GetEpochResponse

Response from getting epoch

NameTypeDescription
epochvega.EpochData specific to a single epoch on the Vega network. This includes the epoch number, start and end times, and the nodes that participated in the epoch.

GetGovernanceDataRequest

Request to get governance data

NameTypeDescription
proposal_idstringProposal ID to get governance data for, if provided.
referencestringReference to get proposal data for, if provided.

GetGovernanceDataResponse

Response from getting governance data

NameTypeDescription
datavega.GovernanceDataGovernance data content, i.e. proposal and votes for and against.

GetLastTradeRequest

Request for the latest trade that occurred on Vega for a given market

NameTypeDescription
market_idstringMarket ID to retrieve the last trade for, required field.

GetLastTradeResponse

Response for the latest trade that occurred on Vega for a given market

NameTypeDescription
tradevega.TradeInformation about the trade, if one is found.

GetLatestMarketDataRequest

Request that is sent when listing the latest market data for a given market

NameTypeDescription
market_idstringMarket ID to retrieve market data for, required field.

GetLatestMarketDataResponse

Response that is received when listing the latest market data for a given market

NameTypeDescription
market_datavega.MarketDataMarket data that was requested.

GetLatestMarketDepthRequest

Request that is sent when requesting latest market depth data

NameTypeDescription
market_idstringMarket ID to request market depth for, required field.
max_depthuint64Optional field to indicate the maximum market depth.

GetLatestMarketDepthResponse

Response that is received when latest market depth data is queried

NameTypeDescription
market_idstringMarket ID of the depth levels returned.
buyvega.PriceLevelZero or more price levels for the buy side of the market depth data.
sellvega.PriceLevelZero or more price levels for the sell side of the market depth data.
last_tradevega.TradeLast trade recorded on Vega at the time of retrieving the `MarketDepthResponse`.
sequence_numberuint64Sequence number incremented after each update.

GetMarketDataHistoryByIDRequest

Request that is sent for getting Market Data History

NameTypeDescription
market_idstringMarket ID to request data history for, required field.
start_timestampint64Optional Unix time in nanoseconds.
end_timestampint64Optional Unix time in nanoseconds.
paginationPaginationOptional pagination control.

GetMarketDataHistoryByIDResponse

Response that is received when querying Market Data History

NameTypeDescription
market_dataMarketDataConnectionPage of market data history with the corresponding page information.

GetMarketRequest

Request for getting a market by ID

NameTypeDescription
market_idstringMarket ID of the market to retrieve data for.

GetMarketResponse

Response from getting a market by ID

NameTypeDescription
marketvega.MarketInformation about the market requested.

GetMostRecentNetworkHistorySegmentRequest

Request to get the most recent history segment

NameTypeDescription

GetMostRecentNetworkHistorySegmentResponse

Response from getting most recent history segment

NameTypeDescription
segmentHistorySegmentData relating to a history segment created by a Vega data node.
swarm_key_seedstringKey seed for the swarm section.

GetNetworkDataRequest

Request to get network data

NameTypeDescription

GetNetworkDataResponse

Response from getting network data

NameTypeDescription
node_datavega.NodeDataSummary of information with respect to nodes on the Vega network.

GetNetworkHistoryBootstrapPeersRequest

Request to get the nodes network history bootstrap peers

NameTypeDescription

GetNetworkHistoryBootstrapPeersResponse

Response containing the nodes network history bootstrap peers

NameTypeDescription
bootstrap_peersstringList of peers that can be used to bootstrap a Vega data node.

GetNetworkHistoryStatusRequest

Request to get the status of network history

NameTypeDescription

GetNetworkHistoryStatusResponse

Response containing the status of network history

NameTypeDescription
ipfs_addressstringIPFS address of the data node currently connected to.
swarm_keystringSwarm key used by the IPFS swarm.
swarm_key_seedstringSwarm key seed used by the IPFS swarm.
connected_peersstringList of peers connected to the IPFS swarm.

GetNetworkLimitsRequest

Request that is used to query current network limits

NameTypeDescription

GetNetworkLimitsResponse

Response received when querying the current network limits

NameTypeDescription
limitsvega.NetworkLimitsList of received network limits.

GetNetworkParameterRequest

Request for a single network parameter

NameTypeDescription
keystringKey identifying the network parameter.

GetNetworkParameterResponse

Response that is received when getting a network parameter

NameTypeDescription
network_parametervega.NetworkParameterNetwork parameter key and value.

GetNodeRequest

Request to get node data

NameTypeDescription
idstringNode ID to get data for.

GetNodeResponse

Response from getting node

NameTypeDescription
nodevega.NodeData specific to a single node on the Vega network.

GetOracleSpecRequest

Request to get a specific oracle spec by its ID

NameTypeDescription
oracle_spec_idstringOracle spec ID to request data for.

GetOracleSpecResponse

Response for a oracle spec

NameTypeDescription
oracle_specvega.OracleSpecExternal data spec matching the ID.

GetOrderRequest

Request that is sent when executing the query for getting a single order

NameTypeDescription
order_idstringOrder ID to retrieve order information for.
versionint32Optional version of the order.

GetOrderResponse

Response received from the query for getting a single order

NameTypeDescription
ordervega.OrderOrder details, if one was found.

GetPartyRequest

Request to get party by ID

NameTypeDescription
party_idstringParty ID to retrieve party information for.

GetPartyResponse

Response from getting party by ID

NameTypeDescription
partyvega.PartyData for the party requested.

GetProtocolUpgradeStatusRequest

Request to get protocol upgrade status

NameTypeDescription

GetProtocolUpgradeStatusResponse

Response from getting protocol upgrade status

NameTypeDescription
readyboolIndicator if the upgrade is ready or not.

GetRiskFactorsRequest

Request to get risk factor

NameTypeDescription
market_idstringMarket ID to get the risk factor for.

GetRiskFactorsResponse

Response that is received from getting a risk factor

NameTypeDescription
risk_factorvega.RiskFactorRisk factor emitted by the risk model for a given market.

GetStakeRequest

Request to get stake

NameTypeDescription
party_idstringParty ID for which the stake information is requested.
paginationPaginationOptional pagination information to limit the data that is returned.

GetStakeResponse

Response that is received from requesting stake information

NameTypeDescription
current_stake_availablestringCurrent stake available information.
stake_linkingsStakesConnectionPaged list of stake data with corresponding page information.

GetVegaTimeRequest

Request to get the current time of the Vega network

NameTypeDescription

GetVegaTimeResponse

Response for the current consensus coordinated time on the Vega network, referred to as "VegaTime"

NameTypeDescription
timestampint64Timestamp representation of current VegaTime as represented in Nanoseconds since the epoch, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`.

GetWithdrawalRequest

Request to get a specific withdrawal by ID

NameTypeDescription
idstringWithdrawal ID to retrieve data for.

GetWithdrawalResponse

Response for a withdrawal request

NameTypeDescription
withdrawalvega.WithdrawalWithdrawal matching the ID from the request.

GovernanceDataConnection

Page of governance data and corresponding page information

NameTypeDescription
edgesGovernanceDataEdgePage of governance data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

GovernanceDataEdge

Governance data with the corresponding cursor.

NameTypeDescription
nodevega.GovernanceDataGovernance data content, i.e. proposal and votes for and against.
cursorstringCursor that can be used to fetch further pages.

HistorySegment

Describes a network history segment

NameTypeDescription
from_heightint64Starting height of the history segment.
to_heightint64Ending height of the history segment.
history_segment_idstringHistory segment ID.
previous_history_segment_idstringPrevious history segment ID.
database_versionint64Database schema version of the history segment.
chain_idstringChain ID of the history segment.

InfoRequest

Request that is sent when querying node information

NameTypeDescription

InfoResponse

Response that is received from the node information query

NameTypeDescription
versionstringSemver formatted version of the data node.
commit_hashstringCommit hash from which the data node was built.

IntervalToCandleId

Maps an interval for a given market to its corresponding candle ID

NameTypeDescription
intervalstringInterval for the candle.
candle_idstringUnique id of the candle.

KeyRotationConnection

Page of key rotations data and corresponding page information

NameTypeDescription
edgesKeyRotationEdgePage of key rotation data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

KeyRotationEdge

Key rotation data with the corresponding cursor.

NameTypeDescription
nodevega.events.v1.KeyRotationData relating to a key rotation that was performed by a node on the Vega network.
cursorstringCursor that can be used to fetch further pages.

LedgerEntryFilter

Ledger entry filter sets filters on returned set of ledger entries.

NameTypeDescription
close_on_account_filtersboolDetermines whether an entry must have accounts matching both the account_from_filter and the account_to_filter. If set to 'true', entries must have matches in both filters. If set to `false`, entries matching only the account_from_filter or the account_to_filter will also be included.
from_account_filterAccountFilterUsed to set values for filtering sender accounts.
to_account_filterAccountFilterUsed to set values for filtering receiver accounts.
transfer_typesvega.TransferTypeList of transfer types that is used for filtering sender and receiver accounts.

LiquidationEstimate

Liquidation estimate for both worst and best case possible.

NameTypeDescription
worst_caseLiquidationPriceLiquidation price estimate assuming slippage cap is applied.
best_caseLiquidationPriceLiquidation price estimate assuming no slippage.

LiquidationPrice

Liquidation price estimate for either only the current open volume and position given some or all buy orders get filled, or position given some or all sell orders get filled.

NameTypeDescription
open_volume_onlystringLiquidation price for current open volume ignoring any active orders.
including_buy_ordersstringLiquidation price assuming buy orders start getting filled.
including_sell_ordersstringLiquidation price assuming sell orders start getting filled.

LiquidityProvisionsConnection

Page of liquidity provisions data and corresponding page information

NameTypeDescription
edgesLiquidityProvisionsEdgePage of liquidity provisions data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

LiquidityProvisionsEdge

Liquidity provision data with the corresponding cursor.

NameTypeDescription
nodevega.LiquidityProvisionData corresponding to a liquidity provider's commitment.
cursorstringCursor that can be used to fetch further pages.

ListAccountsRequest

Request that is sent when listing accounts

NameTypeDescription
filterAccountFilterAccountFilter contains all filter conditions and values that can be applied to the listing.
paginationPaginationOptional pagination control.

ListAccountsResponse

Response that is received from listing accounts query

NameTypeDescription
accountsAccountsConnectionPage of accounts data and corresponding page information.

ListAllNetworkHistorySegmentsRequest

Request to list all the nodes history segments

NameTypeDescription

ListAllNetworkHistorySegmentsResponse

Response with a list of all the nodes history segments

NameTypeDescription
segmentsHistorySegmentPage of history segments data and corresponding page information.

ListAllPositionsRequest

Request to list positions, given the position filter is supplied.

NameTypeDescription
filterPositionsFilterFilter to apply to the positions.
paginationPaginationOptional pagination control.

ListAllPositionsResponse

Response to query for listing of positions, given the filter is supplied

NameTypeDescription
positionsPositionConnectionPage of positions data and corresponding page information.

ListAssetsRequest

Request for listing assets data

NameTypeDescription
asset_idstringOptional asset ID to list data for.
paginationPaginationOptional pagination information to limit the data that is returned.

ListAssetsResponse

Response from listing assets

NameTypeDescription
assetsAssetsConnectionPage of assets data and corresponding page information.

ListBalanceChangesRequest

Request that is received when querying balances changes

NameTypeDescription
filterAccountFilterLimit the accounts considered according to the filter supplied.
paginationPaginationPagination controls.
date_rangeDateRangeDate range over which to query.

ListBalanceChangesResponse

Response that is received when querying balances changes

NameTypeDescription
balancesAggregatedBalanceConnectionPage of aggregated balances data and corresponding page information.

ListCandleDataRequest

Request that is used when listing candles for a market at an interval

NameTypeDescription
candle_idstringCandle ID to retrieve candle data for, required field.
from_timestampint64Timestamp to retrieve candles since, in nanoseconds since the epoch.
to_timestampint64Timestamp to retrieve candles to, in nanoseconds since the epoch.
paginationPaginationpagination controls

ListCandleDataResponse

Response for list of candles for a market at an interval

NameTypeDescription
candlesCandleDataConnectionPage of candle data and corresponding page information.

ListCandleIntervalsRequest

Request that is used to fetch a list of supported intervals for the given market along with the corresponding candle ID

NameTypeDescription
market_idstringUnique ID for the market to list candle intervals for.

ListCandleIntervalsResponse

List of mapped pairs `interval` -> `candle ID` for a given market

NameTypeDescription
interval_to_candle_idIntervalToCandleIdList of the mappings.

ListCheckpointsRequest

Request to get all checkpoints. Currently no fields, probably will be expanded to allow filtering data

NameTypeDescription
paginationPaginationOptional pagination information to limit the data that is returned.

ListCheckpointsResponse

Response message containing all checkpoints requested

NameTypeDescription
checkpointsCheckpointsConnectionPage of checkpoints data and corresponding page information.

ListCoreSnapshotsRequest

Request type for ListCoreSnapshots; fetches a paginated list of the core snapshots.

NameTypeDescription
paginationPaginationOptional pagination information to limit the data that is returned.

ListCoreSnapshotsResponse

Response from a ListCoreSnapshots RPC call; a paginated list of the core snapshots.

NameTypeDescription
core_snapshotsCoreSnapshotConnectionPage of core snapshot data and corresponding page information.

ListDelegationsRequest

Request for listing delegations

NameTypeDescription
party_idstringParty ID to list delegations for, if provided.
node_idstringNode ID to list delegations for, if provided.
epoch_idstringEpoch ID to list delegations for, if provided.
paginationPaginationOptional pagination information to limit the data that is returned.

ListDelegationsResponse

Response from listing delegations

NameTypeDescription
delegationsDelegationsConnectionPage of delegations data and corresponding page information.

ListDepositsRequest

Request to list all deposits for a given party

NameTypeDescription
party_idstringParty ID whose deposits are to be retrieved. If not provided, deposits for all parties will be provided.
paginationPaginationOptional pagination information to limit the data that is returned.
date_rangeDateRangeDate range of the requested data, if provided.

ListDepositsResponse

Response from listing deposits

NameTypeDescription
depositsDepositsConnectionPage of deposits data and corresponding page information.

ListERC20MultiSigSignerAddedBundlesRequest

Request for adding a signature bundle to the signer list of a multisig contract for a particular validator

NameTypeDescription
node_idstringNode ID of the validator for which a signature bundle is required.
submitterstringEthereum address of the validator that will submit the bundle.
epoch_seqstringEpoch in which the bundle was generated, i.e. the epoch in which the node was promoted to consensus validator.
paginationPaginationPagination controls.

ListERC20MultiSigSignerAddedBundlesResponse

Response from adding a signature bundle to the signer list of a multisig contract for a particular validator

NameTypeDescription
bundlesERC20MultiSigSignerAddedConnectionPage of bundles for that validator - it may have been added multiple times if removed in between - and corresponding page information.

ListERC20MultiSigSignerRemovedBundlesRequest

Request for removing a signature bundle from the signer list of the multisig contract for a particular validator

NameTypeDescription
node_idstringNode ID of the validator of which a signature bundle is required.
submitterstringEthereum address of the validator that will submit the bundle.
epoch_seqstringEpoch in which the bundle was generated, i.e. the epoch in which the node was demoted from a consensus validator.
paginationPaginationPagination controls.

ListERC20MultiSigSignerRemovedBundlesResponse

Response when removing a signature bundle from the signer list of the multisig contract for a particular validator

NameTypeDescription
bundlesERC20MultiSigSignerRemovedConnectionPage of signer bundle data items for that validator and corresponding page information.

ListEntitiesRequest

Request to list all entities that were created by the given transaction hash

NameTypeDescription
transaction_hashstringTransaction hash to match against

ListEntitiesResponse

Response from listing entities that were created for a given transaction hash

NameTypeDescription
accountsvega.Account
ordersvega.Order
positionsvega.Position
ledger_entriesvega.LedgerEntry
balance_changesAccountBalance
transfersvega.events.v1.Transfer
votesvega.Vote
erc20_multi_sig_signer_added_bundlesERC20MultiSigSignerAddedBundle
erc20_multi_sig_signer_removed_bundlesERC20MultiSigSignerRemovedBundle
tradesvega.Trade
oracle_specsvega.OracleSpec
oracle_datavega.OracleData
marketsvega.Market
partiesvega.Party
margin_levelsvega.MarginLevels
rewardsvega.Reward
depositsvega.Deposit
withdrawalsvega.Withdrawal
assetsvega.Asset
liquidity_provisionsvega.LiquidityProvision
proposalsvega.Proposal
delegationsvega.Delegation
nodesNodeBasic
node_signaturesvega.commands.v1.NodeSignature
network_parametersvega.NetworkParameter
key_rotationsvega.events.v1.KeyRotation
ethereum_key_rotationsvega.events.v1.EthereumKeyRotation
protocol_upgrade_proposalsvega.events.v1.ProtocolUpgradeEvent

ListEpochRewardSummariesRequest

Request to get summary of reward per epoch for a given range of epochs

NameTypeDescription
filterRewardSummaryFilterLimit the results considered according to the filter supplied.
paginationPaginationOptional pagination information to limit the data that is returned.

ListEpochRewardSummariesResponse

Return message with reward details in for a single party

NameTypeDescription
summariesEpochRewardSummaryConnectionPage of rewards details for a single party and corresponding page information.

ListEthereumKeyRotationsRequest

Request to list ethereum key rotations for nodes, optionally filtered by node

NameTypeDescription
node_idstringNode ID to get the rotation for, if provided.
paginationPaginationOptional pagination information to limit the data that is returned.

ListEthereumKeyRotationsResponse

Response message containing Ethereum key rotations

NameTypeDescription
key_rotationsEthereumKeyRotationsConnectionPage of Ethereum key rotations data and corresponding page information.

ListGovernanceDataRequest

Request to list governance data

NameTypeDescription
proposal_statevega.Proposal.StateProposal state to list governance data for, if provided.
proposal_typeListGovernanceDataRequest.TypeProposal type to list governance data for, if provided.
proposer_party_idstringProposer party ID to list governance data for, if provided.
proposal_referencestringProposal reference to list governance data for, if provided.
paginationPaginationOptional pagination information to limit the data that is returned.

ListGovernanceDataResponse

Response from listing governance data

NameTypeDescription
connectionGovernanceDataConnectionPage of governance data and corresponding page information.

ListKeyRotationsRequest

Request to list all key rotations

NameTypeDescription
node_idstringNode ID to get key rotations for, if provided.
paginationPaginationOptional pagination information to limit the data that is returned.

ListKeyRotationsResponse

Response message containing Vega key rotations

NameTypeDescription
rotationsKeyRotationConnectionPage of key rotations data and corresponding page information.

ListLatestMarketDataRequest

Request that is sent when listing the latest market data for every market

NameTypeDescription

ListLatestMarketDataResponse

Response that is received when listing the latest market data for every market

NameTypeDescription
markets_datavega.MarketData

ListLedgerEntriesRequest

Request that is sent when listing ledger entries

NameTypeDescription
filterLedgerEntryFilter'LedgerEntryFilter' that contains all values and conditions according to which the listing of ledger entries is filtered.
paginationPaginationOptional pagination control.
date_rangeDateRangeDate range for which to list ledger entries.

ListLedgerEntriesResponse

Response that is received when listing ledger entries

NameTypeDescription
ledger_entriesAggregatedLedgerEntriesConnectionPage of aggregated ledger entries data and corresponding page information.

ListLiquidityProvisionsRequest

Request for listing liquidity provisions

NameTypeDescription
market_idstringTarget market for the liquidity provision orders.
party_idstringParty which submitted the liquidity provision orders.
referencestringReference of the liquidity provision.
liveboolIndicator if the listed liquidity provision orders will include live orders or not.
paginationPaginationOptional pagination information to limit the data that is returned.

ListLiquidityProvisionsResponse

Response from listing liquidity provisions

NameTypeDescription
liquidity_provisionsLiquidityProvisionsConnectionPage of liquidity provisions data and corresponding page information.

ListMarginLevelsRequest

Request for listing margin levels

NameTypeDescription
party_idstringParty ID for which to list the margin levels
market_idstringMarket ID for which to list the margin levels
paginationPaginationPagination control

ListMarginLevelsResponse

Response from listing margin levels

NameTypeDescription
margin_levelsMarginConnectionPage of margin levels data and corresponding page information.

ListMarketsRequest

Request for listing markets

NameTypeDescription
paginationPaginationPagination control.
include_settledboolWhether or not to include settled markets in the response; default to true if not specified.

ListMarketsResponse

Response from listing markets

NameTypeDescription
marketsMarketConnectionPage of markets and corresponding page information.

ListNetworkParametersRequest

Message requesting for the list of all network parameters

NameTypeDescription
paginationPaginationOptional pagination information to limit the data that is returned.

ListNetworkParametersResponse

Response containing all of the Vega network parameters

NameTypeDescription
network_parametersNetworkParameterConnectionPage of network parameters and corresponding page information.

ListNodeSignaturesRequest

Request to specify the ID of the resource to retrieve aggregated signatures for

NameTypeDescription
idstringResource ID to list signatures for, required field.
paginationPaginationOptional pagination information to limit the data that is returned.

ListNodeSignaturesResponse

Response to specify the ID of the resource to retrieve aggregated signatures for

NameTypeDescription
signaturesNodeSignaturesConnectionPage of nodes signatures and corresponding page information.

ListNodesRequest

Request to list nodes

NameTypeDescription
epoch_sequint64Epoch number to list nodes for, if provided.
paginationPaginationOptional pagination information to limit the data that is returned.

ListNodesResponse

Response from listing nodes

NameTypeDescription
nodesNodesConnectionPage of node data and corresponding page information.

ListOracleDataRequest

Request to get all seen oracle data

NameTypeDescription
oracle_spec_idstringOracle spec ID to list data for.
paginationPaginationPagination controls.

ListOracleDataResponse

Response to get all seen oracle data

NameTypeDescription
oracle_dataOracleDataConnectionPage of seen oracle data and corresponding page information.

ListOracleSpecsRequest

Request to get all active oracle specs

NameTypeDescription
paginationPaginationPagination controls.

ListOracleSpecsResponse

Response to get all active oracle specs

NameTypeDescription
oracle_specsOracleSpecsConnectionPage of active oracle specs and corresponding page information.

ListOrderVersionsRequest

Request that is sent when listing possible order versions

NameTypeDescription
order_idstringOrder ID to list versions for.
paginationPaginationOptional pagination control.

ListOrderVersionsResponse

Response that is received when listing possible order versions

NameTypeDescription
ordersOrderConnectionPage of order versions and corresponding page information.

ListOrdersRequest

Request that is sent when executing a query for a list of orders

NameTypeDescription
paginationPaginationOptional pagination control.
filterOrderFilterOrder filter contains all filtering conditions and values that are applied to the orders listing.

ListOrdersResponse

Response that is received from the query to list orders

NameTypeDescription
ordersOrderConnectionPage of orders data and corresponding page information.

ListPartiesRequest

Request to list parties by ID

NameTypeDescription
party_idstringParty ID to filter for. If omitted, no filter will be applied.
paginationPaginationPagination control.

ListPartiesResponse

Response from listing parties

NameTypeDescription
partiesPartyConnectionPage of parties data and corresponding page information.

ListPositionsRequest

Request used to list all positions for a party Optionally, if a market ID is set, the results will be filtered for that market only

NameTypeDescription
party_idstringParty ID to list positions for, required field.
market_idstringMarket ID to filter for. If empty, no markets will be filtered.
paginationPaginationOptional pagination control.

ListPositionsResponse

Response for a list of positions for a party

NameTypeDescription
positionsPositionConnectionPage of positions data and corresponding page information.

ListProtocolUpgradeProposalsRequest

Request type for ListProtocolUpgradeProposals; fetches a paginated list of protocol upgrade proposals

NameTypeDescription
statusvega.events.v1.ProtocolUpgradeProposalStatusProtocol upgrade proposal status to filter results from listing proposals, if provided.
approved_bystringOption to filter listed proposals on being approved or not, if provided.
paginationPaginationOptional pagination information to limit the data that is returned.

ListProtocolUpgradeProposalsResponse

Response type from a ListProtocolUpgradeProposals RPC call; a paginated list of protocol upgrade proposals

NameTypeDescription
protocol_upgrade_proposalsProtocolUpgradeProposalConnectionPage of protocol upgrade proposals and corresponding page information.

ListRewardSummariesRequest

Request to get reward details for a party

NameTypeDescription
party_idstringParty ID for which to list rewards, if provided.
asset_idstringAsset ID for which to list rewards, if provided.
paginationPaginationOptional pagination information to limit the data that is returned.

ListRewardSummariesResponse

Response from listing reward details in for a single party

NameTypeDescription
summariesvega.RewardSummaryPage of rewards details data and corresponding page information.

ListRewardsRequest

Request to get reward details for a party

NameTypeDescription
party_idstringParty ID for which to get the list of rewards.
asset_idstringAsset ID for which to get the list of rewards, if provided.
paginationPaginationPagination control.
from_epochuint64Epoch from which to list the rewards, if provided.
to_epochuint64Epoch up-to-which to list the rewards, if provided.

ListRewardsResponse

Response for listing reward details for a single party

NameTypeDescription
rewardsRewardsConnectionPage of rewards data and corresponding page information.

ListTradesRequest

Request to list trades

NameTypeDescription
market_idsstringList of Market IDs for which to list trades for, if provided.
order_idsstringList of Order IDs for which to list trades for, if provided.
party_idsstringList of Party ID for which to list trades for, if provided.
paginationPaginationPagination control.
date_rangeDateRangeDate range for the listing, if provided.

ListTradesResponse

Response from listing trades

NameTypeDescription
tradesTradeConnectionPage of trades data and corresponding page information.

ListTransfersRequest

Request that is sent to list transfers

NameTypeDescription
pubkeystringPublic key for which to request transfers, this can be a party ID, "0000000000000000000000000000000000000000000000000000000000000000" for the global rewards account, or "network".
directionTransferDirectionTransfer directions - i.e. sender, receiver - to include in the response data
paginationPaginationOptional pagination control

ListTransfersResponse

Response that is received when listing transfers

NameTypeDescription
transfersTransferConnectionPage of transfers data and corresponding page information.

ListVotesRequest

Request that is used to list governance votes

NameTypeDescription
party_idstringParty for which the votes are requested.
proposal_idstringProposal ID to list votes for.
paginationPaginationOptional pagination control.

ListVotesResponse

Response that is received when listing Votes

NameTypeDescription
votesVoteConnectionPage of votes data received and corresponding page information.

ListWithdrawalsRequest

List all withdrawals for a given party

NameTypeDescription
party_idstringParty ID whose withdrawals are to retrieved. If not provided, withdrawals for all parties will be returned.
paginationPaginationOptional pagination information to limit the data that is returned.
date_rangeDateRangeDate range of the requested data, if provided.

ListWithdrawalsResponse

Response from listing withdrawals data

NameTypeDescription
withdrawalsWithdrawalsConnectionPage of withdrawals data and corresponding page information.

MarginConnection

Page of margins data and corresponding page information.

NameTypeDescription
edgesMarginEdgePage of margins data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

MarginEdge

Margin data with the corresponding cursor.

NameTypeDescription
nodevega.MarginLevelsMargin levels data that satisfy a list margin levels request.
cursorstringCursor that can be used to fetch further pages.

MarginEstimate

Margin level estimate for both worst and best case possible.

NameTypeDescription
worst_casevega.MarginLevelsMargin level estimate assuming slippage cap is applied.
best_casevega.MarginLevelsMargin level estimate assuming no slippage.

MarketConnection

Page of markets and corresponding page information.

NameTypeDescription
edgesMarketEdgePage of markets and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

MarketDataConnection

Page of market data items and corresponding page information

NameTypeDescription
edgesMarketDataEdgePage of market data items and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

MarketDataEdge

Market data with the corresponding cursor.

NameTypeDescription
nodevega.MarketDataData generated by a market when open.
cursorstringCursor that can be used to fetch further pages.

MarketEdge

Market information with the corresponding cursor.

NameTypeDescription
nodevega.MarketInformation about the market.
cursorstringCursor that can be used to fetch further pages.

NetworkParameterConnection

Page of network parameters and corresponding page information

NameTypeDescription
edgesNetworkParameterEdgePage of network parameters data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

NetworkParameterEdge

Network parameter with the corresponding cursor.

NameTypeDescription
nodevega.NetworkParameterName and associated value of a network parameter.
cursorstringCursor that can be used to fetch further pages.

NodeBasic

Represents a basic node without any epoch specific details like delegations, staking, rewards etc.

NameTypeDescription
idstringUnique ID identifying the node.
pub_keystringNode operator's public key.
tm_pub_keystringTendermint public key of the node.
ethereum_addressstringEthereum public key of the node.
info_urlstringURL that provides more information about the node.
locationstringCountry code for the location of the node.
statusvega.NodeStatusNode status.
namestringNode name.
avatar_urlstringAvatar URL.

NodeEdge

Node data with the corresponding cursor.

NameTypeDescription
nodevega.NodeData specific to a single node on the Vega network.
cursorstringCursor that can be used to fetch further pages.

NodeSignatureEdge

Nodes signature edge with the corresponding cursor.

NameTypeDescription
nodevega.commands.v1.NodeSignatureNode signature data.
cursorstringCursor that can be used to fetch further pages.

NodeSignaturesConnection

Page of node signatures and corresponding page information.

NameTypeDescription
edgesNodeSignatureEdgePage of node signatures and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

NodesConnection

Page of node data and corresponding page information

NameTypeDescription
edgesNodeEdgePage of node data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

ObserveAccountsRequest

Request that is sent when getting a subscription to a stream of accounts

NameTypeDescription
market_idstringMarket ID to filter accounts by. If empty, no markets will be filtered.
party_idstringParty ID to filter accounts by. If empty, no parties will be filtered.
assetstringAsset ID to filter accounts by. If empty, no assets will be filtered.
typevega.AccountTypeAccount type to subscribe to, required field.

ObserveAccountsResponse

Response that is received when subscribing to a stream of accounts

NameTypeDescription
snapshotAccountSnapshotPage'Initial image' snapshot containing current account balances.
updatesAccountUpdatesList of account updates in the last block.

ObserveCandleDataRequest

Request that is used to subscribe to a stream of candles

NameTypeDescription
candle_idstringUnique ID for the candle.

ObserveCandleDataResponse

Response that is received when subscribing to a stream of candles

NameTypeDescription
candleCandleCandle data.

ObserveDelegationsRequest

Request to subscribe to all event related to delegations, with the given filters

NameTypeDescription
party_idstringParty ID to get delegations for, if provided.
node_idstringNode ID to get delegations for, if provided.

ObserveDelegationsResponse

Response with all events related to delegations, with the given filters

NameTypeDescription
delegationvega.DelegationHow much a party is delegating to a node and when.

ObserveEventBusRequest

Request to subscribe to a stream of one or more event types from the Vega event bus

NameTypeDescription
typevega.events.v1.BusEventTypeOne or more types of event, required field.
market_idstringMarket ID to filter for, optional field. If empty, no markets will be excluded from the stream.
party_idstringParty ID to filter for, optional field. If empty, no parties will be excluded from the stream.
batch_sizeint64Batch size, If not specified, any events received will be sent immediately. If the client is not ready for the next data-set, data may be dropped a number of times, and eventually the stream is closed. if specified, the first batch will be sent when ready. To receive the next set of events, the client must write an `ObserveEventBatch` message on the stream to flush the buffer. If no message is received in 5 seconds, the stream is closed. Default: 0, send any and all events when they are available.

ObserveEventBusResponse

Response to a subscribed stream of events from the Vega event bus

NameTypeDescription
eventsvega.events.v1.BusEventList of events that occurred on the Vega event bus.

ObserveGovernanceRequest

Request for governance subscription

NameTypeDescription
party_idstringParty ID to get the governance subscription for, if provided.

ObserveGovernanceResponse

Response from governance subscription

NameTypeDescription
datavega.GovernanceDataGovernance data, i.e. proposal and votes for and against.

ObserveLedgerMovementsRequest

Request to subscribe to ledger movements

NameTypeDescription

ObserveLedgerMovementsResponse

Response from ledger movements subscription

NameTypeDescription
ledger_movementvega.LedgerMovementLedger movements data with list of ledger entries and and post-transfer balances.

ObserveLiquidityProvisionsRequest

Request sent to subscribe to liquidity provisions

NameTypeDescription
market_idstringTarget market to observe for liquidity provision orders.
party_idstringTarget party to observe for submitted liquidity provision orders.

ObserveLiquidityProvisionsResponse

Response from liquidity provisions subscription

NameTypeDescription
liquidity_provisionsvega.LiquidityProvision

ObserveMarginLevelsRequest

Request to subscribe to a stream of MarginLevels data. If a party ID is provided, the stream will contain margin levels for that party only. Optionally, the list can be additionally filtered by market

NameTypeDescription
party_idstringParty ID to filter for. If empty, no parties will be filtered.
market_idstringOptional Market ID to filter for. If omitted, no markets will be filtered.

ObserveMarginLevelsResponse

Response from subscribing to margin levels data

NameTypeDescription
margin_levelsvega.MarginLevelsMargin levels data that match the subscription request filters.

ObserveMarketsDataRequest

Request that is sent for market data subscription

NameTypeDescription
market_idsstringList of market IDs to be obtained in the subscription.

ObserveMarketsDataResponse

Response that is received for market data subscription

NameTypeDescription
market_datavega.MarketDataList of market data.

ObserveMarketsDepthRequest

Request that is sent to get market depth subscription

NameTypeDescription
market_idsstringList of market IDs to be obtained in the subscription.

ObserveMarketsDepthResponse

Response that is received for MarketDepth subscription.

NameTypeDescription
market_depthvega.MarketDepthList of market depth data.

ObserveMarketsDepthUpdatesRequest

Request that is sent for market depth update subscription

NameTypeDescription
market_idsstringList of market IDs to be obtained in the subscription.

ObserveMarketsDepthUpdatesResponse

Response that is received for market depth update subscription

NameTypeDescription
updatevega.MarketDepthUpdateList of market depth update data.

ObserveOrdersRequest

Request to subscribe to a stream of orders Request fields market ID and party ID are both optional filters: If omitted all orders, for all parties on all markets will be returned on the stream Both filters can be combined

NameTypeDescription
market_idsstringMarket ID to filter for. If empty, no markets will be filtered.
party_idsstringParty ID to filter for. If empty, no parties will be filtered.
exclude_liquidityboolIndicates whether liquidity orders should be excluded from the stream.

ObserveOrdersResponse

Response that is received from an orders subscription

NameTypeDescription
snapshotOrderSnapshotPageAn 'initial image' snapshot containing current live orders.
updatesOrderUpdatesList of order updates in the last block.

ObservePositionsRequest

Request that is used to subscribe to a stream of positions

NameTypeDescription
party_idstringOptional party ID to filter for. If empty, no parties will be filtered from the stream.
market_idstringOptional market ID to filter for. If empty, no markets will be filtered from the stream.

ObservePositionsResponse

Response received from a positions subscription request

NameTypeDescription
snapshotPositionSnapshotPageAn 'initial image' snapshot containing current positions.
updatesPositionUpdatesList of position updates in the last block.

ObserveRewardsRequest

Request sent for subscribing to rewards

NameTypeDescription
asset_idstringAsset ID to get rewards data for, if provided.
party_idstringParty ID to get rewards data for, if provided.

ObserveRewardsResponse

Response that is received from subscribing to rewards data

NameTypeDescription
rewardvega.RewardRewards data received.

ObserveTradesRequest

Request to subscribe to a stream of trades Request fields market ID and party ID are both optional filters: If omitted all trades, for all parties on all markets will be returned on the stream If market ID is given, trades from that market will be returned on the stream If party ID is given, trades from that party will be returned on the stream Both filters can be combined.

NameTypeDescription
market_idsstringList of Market ID to filter by.
party_idsstringList of Party IDs to filter by.

ObserveTradesResponse

Stream of trades

NameTypeDescription
tradesvega.TradeList of 0 or more trades.

ObserveVotesRequest

Request that is sent to subscribe to votes

NameTypeDescription
party_idstringParty ID for which the votes are requested.
proposal_idstringOption proposal ID for which the votes are requested.

ObserveVotesResponse

Response that is received from votes subscription

NameTypeDescription
votevega.VoteData associated with governance votes that are published to the stream.

OracleDataConnection

Page of oracle data and corresponding page information.

NameTypeDescription
edgesOracleDataEdgePage of oracle data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

OracleDataEdge

Oracle data item with the corresponding cursor.

NameTypeDescription
nodevega.OracleDataData that was received from an external oracle.
cursorstringCursor that can be used to fetch further pages.

OracleSpecEdge

Oracle specs data item with the corresponding cursor.

NameTypeDescription
nodevega.OracleSpecExternal spec data that satisfies the list request.
cursorstringCursor that can be used to fetch further pages.

OracleSpecsConnection

Page of oracle specs and corresponding page information

NameTypeDescription
edgesOracleSpecEdgePage of oracle specs data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

OrderConnection

Page of orders data and corresponding page information.

NameTypeDescription
edgesOrderEdgePage of orders and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

OrderEdge

Order data with the corresponding cursor.

NameTypeDescription
nodevega.OrderData associated with an order submitted to a Vega node.
cursorstringCursor that can be used to fetch further pages.

OrderFilter

Order filter that contains all filtering conditions and values that are applied to the orders listing

NameTypeDescription
statusesvega.Order.StatusList of order statuses the orders can be filtered by.
typesvega.Order.TypeList of order types the orders can be filtered by.
time_in_forcesvega.Order.TimeInForceList of timings the orders can be filtered by.
exclude_liquidityboolIndicator if liquidity provision orders should be included or not in the list.
party_idsstringList of party IDs to filter on.
market_idsstringList of market IDs to filter on.
referencestringReference.
date_rangeDateRangeDate range of the orders being listed.
live_onlyboolIndicator for listing only live orders, if set to true.

OrderInfo

Basic description of an order.

NameTypeDescription
sidevega.SideSide for the order, e.g. buy or sell.
pricestringPrice for the order. The price is an integer, for example `123456` is a correctly formatted price of `1.23456` assuming market configured to 5 decimal places. This field is an unsigned integer passed as a string and needs to be scaled using the market's decimal places.
remaininguint64Size remaining. This field is an unsigned integer passed as a string and needs to be scaled using the market's position decimal places.
is_market_orderboolBoolean that indicates if it is a market order.

OrderSnapshotPage

'Initial image' of live orders, may be sent over multiple response messages

NameTypeDescription
ordersvega.OrderList of order data parts.
last_pageboolIndicator if the last page is reached or not.

OrderUpdates

List of order updates in the last block

NameTypeDescription
ordersvega.OrderList of orders data.

PageInfo

Page information for cursor based pagination

NameTypeDescription
has_next_pageboolIndicator if there is a next page.
has_previous_pageboolIndicator if there is a previous page.
start_cursorstringStart cursor.
end_cursorstringEnd cursor.

Pagination

All data returned from the API is ordered in a well-defined manner. The specific columns and the order in which the sorting is performed depend on the API endpoint being called. However, the primary sorting column is usually the timestamp of the block in which the data was last updated. To prevent excessively large response messages and to avoid overloading database resources, the API employs a cursor-based pagination mechanism. This Pagination message can be optionally provided as part of the request to specify: - The starting point within the total result set for beginning the page - The size of the returned page - The ordering of the data within that page If no Pagination message is provided, the API will return the first page of data using the default page size. The default page size is 1000. To retrieve subsequent pages, the caller must examine the PageInfo structure returned in the response to find a cursor string that uniquely identifies the last row of that page. This cursor should then be passed in the 'after' field of the Pagination message in a subsequent request. For paging backward, take the cursor for the first row of the page from PageInfo and pass it in the 'before' field of the Pagination message. Pagination message that uses both first/after and last/before is considered invalid.

NameTypeDescription
firstint32Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.
afterstringIf paging forwards, the cursor string for the last row of the previous page.
lastint32Number of records to be returned that sort less than row identified by cursor supplied in 'before'.
beforestringIf paging forwards, the cursor string for the first row of the previous page.
newest_firstboolNewest records first, older records last, default is true.

PartyConnection

Page of parties data and corresponding page information.

NameTypeDescription
edgesPartyEdgePage of parties and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

PartyEdge

Party data with the corresponding cursor.

NameTypeDescription
nodevega.PartyData associated with a party.
cursorstringCursor that can be used to fetch further pages.

PingRequest

Request to ping the data node

NameTypeDescription

PingResponse

Ping response from the data node

NameTypeDescription

PositionConnection

Page of positions and corresponding page information

NameTypeDescription
edgesPositionEdgePage of positions data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

PositionEdge

Position data with the corresponding cursor.

NameTypeDescription
nodevega.PositionRepresents position data for a party on the specified market on Vega.
cursorstringCursor that can be used to fetch further pages.

PositionSnapshotPage

'Initial image' of current positions, may be sent over multiple response messages

NameTypeDescription
positionsvega.PositionList of positions data.
last_pageboolIndicator if last page is reached or not.

PositionUpdates

List of position updates in the last block

NameTypeDescription
positionsvega.PositionList of positions data.

PositionsFilter

Filter to apply to the ListAllPositionsRequest

NameTypeDescription
party_idsstringList of party IDs to filter on.
market_idsstringList of market IDs to filter on.

ProtocolUpgradeProposalConnection

Page of protocol upgrade proposals and corresponding page information

NameTypeDescription
edgesProtocolUpgradeProposalEdgePage of protocol upgrade proposals data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

ProtocolUpgradeProposalEdge

Protocol upgrade proposal data with the corresponding cursor.

NameTypeDescription
nodevega.events.v1.ProtocolUpgradeEventProtocol upgrade proposal data.
cursorstringCursor that can be used to fetch further pages.

RewardEdge

Rewards data with the corresponding cursor.

NameTypeDescription
nodevega.RewardDetails for a single reward payment.
cursorstringCursor that can be used to fetch further pages.

RewardSummaryFilter

Filter to restrict the results returned by the ListEpochRewardSummaries

NameTypeDescription
asset_idsstringRestrict the results to those connected to the assets in this list. Pass an empty list for no filter.
market_idsstringRestrict the results to those connected to the markets in this list. Pass an empty list for no filter.
from_epochuint64Optional range of epochs to filter on.
to_epochuint64Epoch to which to filter rewards summaries.

RewardsConnection

Page of rewards data and corresponding page information.

NameTypeDescription
edgesRewardEdgePage of rewards data items and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

StakeLinkingEdge

Stake linking data with the corresponding cursor.

NameTypeDescription
nodevega.events.v1.StakeLinkingStake linking represent the intent from a party to deposit.
cursorstringCursor that can be used to fetch further pages.

StakesConnection

Page of stake data and corresponding page information.

NameTypeDescription
edgesStakeLinkingEdgePage of stake data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

TradeConnection

Page of trades and corresponding page information

NameTypeDescription
edgesTradeEdgePage of trades and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

TradeEdge

Trade data item with the corresponding cursor..

NameTypeDescription
nodevega.TradeData associated with a trade that has been executed.
cursorstringCursor that can be used to fetch further pages.

TransferConnection

Page of transfers data items and corresponding page information

NameTypeDescription
edgesTransferEdgePage of transfers data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

TransferEdge

Transfers data with the corresponding cursor.

NameTypeDescription
nodevega.events.v1.TransferData relating to a transfer that has been made.
cursorstringCursor that can be used to fetch further pages.

VoteConnection

Page of vote data items and corresponding page information

NameTypeDescription
edgesVoteEdgePage of vote data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

VoteEdge

Votes data with the corresponding cursor.

NameTypeDescription
nodevega.VoteData associated with a governance vote.
cursorstringCursor that can be used to fetch further pages.

WithdrawalEdge

Withdrawals data with the corresponding cursor.

NameTypeDescription
nodevega.WithdrawalData associated with a single withdrawal made from the Vega network.
cursorstringCursor that can be used to fetch further pages.

WithdrawalsConnection

Page of withdrawals data and corresponding page information

NameTypeDescription
edgesWithdrawalEdgePage of withdrawals data and their corresponding cursors.
page_infoPageInfoPage information that is used for fetching further pages.

Enums

AccountField

List of the properties of an account, used for grouping

NameNumberDescription
ACCOUNT_FIELD_UNSPECIFIED0
ACCOUNT_FIELD_ID1
ACCOUNT_FIELD_PARTY_ID2
ACCOUNT_FIELD_ASSET_ID3
ACCOUNT_FIELD_MARKET_ID4
ACCOUNT_FIELD_TYPE5

LedgerEntryField

List of fields for a ledger entry

NameNumberDescription
LEDGER_ENTRY_FIELD_UNSPECIFIED0
LEDGER_ENTRY_FIELD_ACCOUNT_FROM_ID1
LEDGER_ENTRY_FIELD_ACCOUNT_TO_ID2
LEDGER_ENTRY_FIELD_TRANSFER_TYPE3

ListGovernanceDataRequest.Type

Filter for the types of governance proposals to view

NameNumberDescription
TYPE_UNSPECIFIED0
TYPE_ALL1List all proposals
TYPE_NEW_MARKET2List new market proposals
TYPE_UPDATE_MARKET3List update market proposals
TYPE_NETWORK_PARAMETERS4List change Vega network parameter proposals
TYPE_NEW_ASSET5New asset proposals
TYPE_NEW_FREE_FORM6Proposals for creating a new free form proposal
TYPE_UPDATE_ASSET7Update asset proposals

Table

NameNumberDescription
TABLE_UNSPECIFIED0
TABLE_BALANCES1
TABLE_CHECKPOINTS2
TABLE_DELEGATIONS3
TABLE_LEDGER4
TABLE_ORDERS5
TABLE_TRADES6
TABLE_MARKET_DATA7
TABLE_MARGIN_LEVELS8
TABLE_POSITIONS9
TABLE_LIQUIDITY_PROVISIONS10
TABLE_MARKETS11
TABLE_DEPOSITS12
TABLE_WITHDRAWALS13
TABLE_BLOCKS14
TABLE_REWARDS15

TransferDirection

Direction of a transfer

NameNumberDescription
TRANSFER_DIRECTION_UNSPECIFIED0
TRANSFER_DIRECTION_TRANSFER_FROM1
TRANSFER_DIRECTION_TRANSFER_TO2
TRANSFER_DIRECTION_TRANSFER_TO_OR_FROM3

Services

TradingDataService

ListAccounts

MethodListAccounts
RequestListAccountsRequest
ResponseListAccountsResponse
DescriptionList accounts Get a list of accounts matching the supplied filter, including their current balances. If a given account has never had a balance, it will be absent from the list.

ObserveAccounts

MethodObserveAccounts
RequestObserveAccountsRequest
ResponseObserveAccountsResponse stream
DescriptionAccounts subscription Subscribe to a stream of accounts

Info

MethodInfo
RequestInfoRequest
ResponseInfoResponse
DescriptionData node information Get information about the data node. Response contains a semver formatted version of the data node and the commit hash, from which the data node was built

GetOrder

MethodGetOrder
RequestGetOrderRequest
ResponseGetOrderResponse
DescriptionGet order Get the current version of an order, or optionally provide a version ID to retrieve a given version if order was amended.

ListOrders

MethodListOrders
RequestListOrdersRequest
ResponseListOrdersResponse
DescriptionList orders Get a list of orders that match the given filters

ListOrderVersions

MethodListOrderVersions
RequestListOrderVersionsRequest
ResponseListOrderVersionsResponse
DescriptionList order versions Get a list of all versions of an order in the order history

ObserveOrders

MethodObserveOrders
RequestObserveOrdersRequest
ResponseObserveOrdersResponse stream
DescriptionObserve orders Subscribe to a stream of orders

ListPositions

MethodListPositions
RequestListPositionsRequest
ResponseListPositionsResponse
DescriptionDeprecated: List positions Get a list of positions by party's public key using cursor based pagination Deprecated: use ListAllPositions instead

ListAllPositions

MethodListAllPositions
RequestListAllPositionsRequest
ResponseListAllPositionsResponse
DescriptionList positions Get a list of positions by party's public key using cursor based pagination

ObservePositions

MethodObservePositions
RequestObservePositionsRequest
ResponseObservePositionsResponse stream
DescriptionObserve positions Subscribe to a stream of positions

ListLedgerEntries

MethodListLedgerEntries
RequestListLedgerEntriesRequest
ResponseListLedgerEntriesResponse
DescriptionList ledger entries Get a list of ledger entries within the given date range. This query requests and sums the number of ledger entries from a given subset of accounts, specified via the 'filter' argument. It returns a time series - implemented as a list of AggregateLedgerEntry structs - with a row for every time the summed ledger entries of the set of specified accounts changes. Each account filter must contain no more than one party ID. Entries can be filtered by: - the sending account (market ID, asset ID, account type) - receiving account (market ID, asset ID, account type) - sending AND receiving account - transfer type either in addition to the above filters or as a standalone option

ExportLedgerEntries

MethodExportLedgerEntries
RequestExportLedgerEntriesRequest
ResponseHttpBody stream
DescriptionExport ledger entries Export ledger entries records ledger entries to a csv file. May or may not contain a date range - if no date range is provided, list all records for all times. Ledger entries can be exported by: - export ledger entries for a single party for a given asset within a given time range - export ledger entries for a single party for a given asset for all times buf:lint:ignore RPC_RESPONSE_STANDARD_NAME buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE

ListBalanceChanges

MethodListBalanceChanges
RequestListBalanceChangesRequest
ResponseListBalanceChangesResponse
DescriptionList balance changes Get a list of the changes in account balances over a period of time. An account is defined as a set of asset_id, type, party_id, and market_id. - Every account has an associated asset and type. - Certain account types such as the global reward pool for example, do not have an associated party. These are denoted by the special party ID 'network' - Certain account types do not have an associated market such as the general party accounts, for example. These are denoted by the special market ID '' (the empty string) `ListBalanceChangesRequest` will return a list of `AggregatedBalance` records, with a row for each block at which a given account's balance changes.

GetLatestMarketData

MethodGetLatestMarketData
RequestGetLatestMarketDataRequest
ResponseGetLatestMarketDataResponse
DescriptionGet latest market data Get the latest market data for a given market

ListLatestMarketData

MethodListLatestMarketData
RequestListLatestMarketDataRequest
ResponseListLatestMarketDataResponse
DescriptionList latest market data Get a list of the latest market data for every market

GetLatestMarketDepth

MethodGetLatestMarketDepth
RequestGetLatestMarketDepthRequest
ResponseGetLatestMarketDepthResponse
DescriptionGet latest market depth Get the latest market depth for a given market

ObserveMarketsDepth

MethodObserveMarketsDepth
RequestObserveMarketsDepthRequest
ResponseObserveMarketsDepthResponse stream
DescriptionObserve markets depth Subscribe to a stream of the latest market depth for a given market

ObserveMarketsDepthUpdates

MethodObserveMarketsDepthUpdates
RequestObserveMarketsDepthUpdatesRequest
ResponseObserveMarketsDepthUpdatesResponse stream
DescriptionObserve markets depth updates Subscribe to a stream of updates on market depth for a given market

ObserveMarketsData

MethodObserveMarketsData
RequestObserveMarketsDataRequest
ResponseObserveMarketsDataResponse stream
DescriptionObserve markets data Subscribe to a stream of data about a given market

GetMarketDataHistoryByID

MethodGetMarketDataHistoryByID
RequestGetMarketDataHistoryByIDRequest
ResponseGetMarketDataHistoryByIDResponse
DescriptionGet market data history Get market data history for a market ID between given dates

ListTransfers

MethodListTransfers
RequestListTransfersRequest
ResponseListTransfersResponse
DescriptionList transfers Get a list of transfers to/from/either a public key

GetNetworkLimits

MethodGetNetworkLimits
RequestGetNetworkLimitsRequest
ResponseGetNetworkLimitsResponse
DescriptionGet network limits Get the current network limits, for example: is bootstrapping finished, are proposals enabled etc.

ListCandleData

MethodListCandleData
RequestListCandleDataRequest
ResponseListCandleDataResponse
DescriptionList candle data Get a list of candle data for a given candle ID. You can get a candle ID from the list candle intervals query

ObserveCandleData

MethodObserveCandleData
RequestObserveCandleDataRequest
ResponseObserveCandleDataResponse stream
DescriptionObserve candle data Subscribe to a stream of candle updates

ListCandleIntervals

MethodListCandleIntervals
RequestListCandleIntervalsRequest
ResponseListCandleIntervalsResponse
DescriptionList candle intervals Get a list of all available intervals for a given market along with the corresponding candle ID

ListVotes

MethodListVotes
RequestListVotesRequest
ResponseListVotesResponse
DescriptionList votes Get a list of votes for a party ID

ObserveVotes

MethodObserveVotes
RequestObserveVotesRequest
ResponseObserveVotesResponse stream
DescriptionObserve votes Subscribe to a stream of votes

ListERC20MultiSigSignerAddedBundles

MethodListERC20MultiSigSignerAddedBundles
RequestListERC20MultiSigSignerAddedBundlesRequest
ResponseListERC20MultiSigSignerAddedBundlesResponse
DescriptionList ERC20 multi-sig signer added bundles Get a list of the signature bundles to add a particular validator to the signer list of the multisig contract

ListERC20MultiSigSignerRemovedBundles

MethodListERC20MultiSigSignerRemovedBundles
RequestListERC20MultiSigSignerRemovedBundlesRequest
ResponseListERC20MultiSigSignerRemovedBundlesResponse
DescriptionList ERC20 multi-sig signer removed bundles Get a list of the signature bundles to remove a particular validator from signer list of the multisig contract

GetERC20ListAssetBundle

MethodGetERC20ListAssetBundle
RequestGetERC20ListAssetBundleRequest
ResponseGetERC20ListAssetBundleResponse
DescriptionGet ERC20 list asset bundle Get the signatures bundle to allowlist an ERC20 token in the collateral bridge

GetERC20SetAssetLimitsBundle

MethodGetERC20SetAssetLimitsBundle
RequestGetERC20SetAssetLimitsBundleRequest
ResponseGetERC20SetAssetLimitsBundleResponse
DescriptionGet ERC20 set asset limits bundle Get the signature bundle to update the token limits. These are `maxLifetimeDeposit` and `withdrawThreshold` for a given ERC20 token that is already allowlisted in the collateral bridge.

GetERC20WithdrawalApproval

MethodGetERC20WithdrawalApproval
RequestGetERC20WithdrawalApprovalRequest
ResponseGetERC20WithdrawalApprovalResponse
DescriptionGet ERC20 withdrawal approval Get the signature bundle to finalize a withdrawal on ethereum

GetLastTrade

MethodGetLastTrade
RequestGetLastTradeRequest
ResponseGetLastTradeResponse
DescriptionGet latest trade Get latest trade

ListTrades

MethodListTrades
RequestListTradesRequest
ResponseListTradesResponse
DescriptionList trades Get a list of all trades, optionally filtered by party/market/order

ObserveTrades

MethodObserveTrades
RequestObserveTradesRequest
ResponseObserveTradesResponse stream
DescriptionObserve trades Subscribe to a stream of trades, optionally filtered by party/market

GetOracleSpec

MethodGetOracleSpec
RequestGetOracleSpecRequest
ResponseGetOracleSpecResponse
DescriptionGet oracle spec Get an oracle spec by ID. Use the oracle spec list to query for oracle spec IDs

ListOracleSpecs

MethodListOracleSpecs
RequestListOracleSpecsRequest
ResponseListOracleSpecsResponse
DescriptionList oracle specs Get a list of specs for an oracle

ListOracleData

MethodListOracleData
RequestListOracleDataRequest
ResponseListOracleDataResponse
DescriptionList oracle data Get a list of all oracle data

GetMarket

MethodGetMarket
RequestGetMarketRequest
ResponseGetMarketResponse
DescriptionGet market Get information about a specific market using its ID. Use the market lists query to get a market's ID

ListMarkets

MethodListMarkets
RequestListMarketsRequest
ResponseListMarketsResponse
DescriptionList markets Get a list of markets using a cursor based pagination

GetParty

MethodGetParty
RequestGetPartyRequest
ResponseGetPartyResponse
DescriptionGet party Get a single party

ListParties

MethodListParties
RequestListPartiesRequest
ResponseListPartiesResponse
DescriptionList parties Get a list of parties. If a party ID is provided, only that party will be returned.

ListMarginLevels

MethodListMarginLevels
RequestListMarginLevelsRequest
ResponseListMarginLevelsResponse
DescriptionList margin levels Get a list margin levels that match the provided criteria. If no filter is provided, all margin levels will be returned.

ObserveMarginLevels

MethodObserveMarginLevels
RequestObserveMarginLevelsRequest
ResponseObserveMarginLevelsResponse stream
DescriptionObserve margin levels Subscribe to a stream of margin levels

ListRewards

MethodListRewards
RequestListRewardsRequest
ResponseListRewardsResponse
DescriptionList rewards Get a list of rewards that match the provided criteria. If no filter is provided, all rewards will be returned.

ListRewardSummaries

MethodListRewardSummaries
RequestListRewardSummariesRequest
ResponseListRewardSummariesResponse
DescriptionList reward summaries Get a list of reward summaries where the reward amount is the total rewards received over all epochs per party ID and asset ID. Request parameters are optional party ID and asset ID. If no data is provided, all reward summaries will be returned grouped by party and asset ID.

ListEpochRewardSummaries

MethodListEpochRewardSummaries
RequestListEpochRewardSummariesRequest
ResponseListEpochRewardSummariesResponse
DescriptionList epoch reward summaries Get a list of reward summaries by epoch for a given range of epochs. The result is filtered by list of asset IDs, market IDs and starting and ending epochs, for which to return rewards. If no data is provided, all reward summaries will be returned, grouped by epochs, market IDs, asset IDs and reward type.

GetDeposit

MethodGetDeposit
RequestGetDepositRequest
ResponseGetDepositResponse
DescriptionGet deposit Get a deposit by its ID

ListDeposits

MethodListDeposits
RequestListDepositsRequest
ResponseListDepositsResponse
DescriptionList deposits Get a list of deposits for a given party. If a date range is provided, filtering will be based on the last time the deposit has been updated in Vega time.

GetWithdrawal

MethodGetWithdrawal
RequestGetWithdrawalRequest
ResponseGetWithdrawalResponse
DescriptionGet withdrawal Get a withdrawal by its ID. Use the withdrawals list query to get withdrawal IDs

ListWithdrawals

MethodListWithdrawals
RequestListWithdrawalsRequest
ResponseListWithdrawalsResponse
DescriptionList withdrawals Get a list of withdrawals for a given party

GetAsset

MethodGetAsset
RequestGetAssetRequest
ResponseGetAssetResponse
DescriptionGet asset Get a single asset using its ID. Use the assets list query to get an asset's ID

ListAssets

MethodListAssets
RequestListAssetsRequest
ResponseListAssetsResponse
DescriptionList assets Get a list of assets using cursor based pagination

ListLiquidityProvisions

MethodListLiquidityProvisions
RequestListLiquidityProvisionsRequest
ResponseListLiquidityProvisionsResponse
DescriptionList liquidity provisions Get a list of liquidity provisions for a given market using a cursor based pagination

ObserveLiquidityProvisions

MethodObserveLiquidityProvisions
RequestObserveLiquidityProvisionsRequest
ResponseObserveLiquidityProvisionsResponse stream
DescriptionObserve liquidity provisions Subscribe to a stream of liquidity provision events for a given market and party

GetGovernanceData

MethodGetGovernanceData
RequestGetGovernanceDataRequest
ResponseGetGovernanceDataResponse
DescriptionGet governance data Get a single proposal's details

ListGovernanceData

MethodListGovernanceData
RequestListGovernanceDataRequest
ResponseListGovernanceDataResponse
DescriptionList governance data Get a list of proposals

ObserveGovernance

MethodObserveGovernance
RequestObserveGovernanceRequest
ResponseObserveGovernanceResponse stream
DescriptionObserve governance Subscribe to a stream of governance proposals

ListDelegations

MethodListDelegations
RequestListDelegationsRequest
ResponseListDelegationsResponse
DescriptionList delegations Get a list of the token delegations on the network

GetNetworkData

MethodGetNetworkData
RequestGetNetworkDataRequest
ResponseGetNetworkDataResponse
DescriptionGet network data Get data regarding the nodes of the network

GetNode

MethodGetNode
RequestGetNodeRequest
ResponseGetNodeResponse
DescriptionGet node Get information about a given node

ListNodes

MethodListNodes
RequestListNodesRequest
ResponseListNodesResponse
DescriptionList nodes Get a list of the nodes on the network along with the related information.

ListNodeSignatures

MethodListNodeSignatures
RequestListNodeSignaturesRequest
ResponseListNodeSignaturesResponse
DescriptionList node signatures Get a list of aggregate signatures from all the nodes of the network

GetEpoch

MethodGetEpoch
RequestGetEpochRequest
ResponseGetEpochResponse
DescriptionGet epoch Get data for a specific epoch, if ID is omitted, it retrieves the current epoch

EstimateFee

MethodEstimateFee
RequestEstimateFeeRequest
ResponseEstimateFeeResponse
DescriptionEstimate fee Estimate the fee that would be incurred for submitting an order with the specified price and size on the market.

EstimateMargin

MethodEstimateMargin
RequestEstimateMarginRequest
ResponseEstimateMarginResponse
DescriptionEstimate margin Estimate the margin that would be required for submitting this order

EstimatePosition

MethodEstimatePosition
RequestEstimatePositionRequest
ResponseEstimatePositionResponse
DescriptionEstimate position Estimate the margin that would be required for maintaining the specified position. If the optional collateral available argument is supplied, the response also contains the estimate of the liquidation price.

ListNetworkParameters

MethodListNetworkParameters
RequestListNetworkParametersRequest
ResponseListNetworkParametersResponse
DescriptionList network parameters Get a list of the network parameters

GetNetworkParameter

MethodGetNetworkParameter
RequestGetNetworkParameterRequest
ResponseGetNetworkParameterResponse
DescriptionGet network parameter Get a single network parameter

ListCheckpoints

MethodListCheckpoints
RequestListCheckpointsRequest
ResponseListCheckpointsResponse
DescriptionList checkpoints Get a list of information about checkpoints generated by the network

GetStake

MethodGetStake
RequestGetStakeRequest
ResponseGetStakeResponse
DescriptionGet Stake Get staking information for a given party

GetRiskFactors

MethodGetRiskFactors
RequestGetRiskFactorsRequest
ResponseGetRiskFactorsResponse
DescriptionGet risk factors Get risk factor data for a given market

ObserveEventBus

MethodObserveEventBus
RequestObserveEventBusRequest stream
ResponseObserveEventBusResponse stream
DescriptionObserve event bus Subscribe to a stream of events from the core

ObserveLedgerMovements

MethodObserveLedgerMovements
RequestObserveLedgerMovementsRequest
ResponseObserveLedgerMovementsResponse stream
DescriptionObserve ledger movements Subscribe to a stream of transfer responses

ListKeyRotations

MethodListKeyRotations
RequestListKeyRotationsRequest
ResponseListKeyRotationsResponse
DescriptionList key rotations Get a list of information about Vega key rotations that have been performed by validator nodes

ListEthereumKeyRotations

MethodListEthereumKeyRotations
RequestListEthereumKeyRotationsRequest
ResponseListEthereumKeyRotationsResponse
DescriptionList Ethereum key rotations Get a list of information about Ethereum key rotations that have been performed by validator nodes

GetVegaTime

MethodGetVegaTime
RequestGetVegaTimeRequest
ResponseGetVegaTimeResponse
DescriptionGet Vega time Get the current time of the network, displayed as a Unix timestamp in nano seconds

GetProtocolUpgradeStatus

MethodGetProtocolUpgradeStatus
RequestGetProtocolUpgradeStatusRequest
ResponseGetProtocolUpgradeStatusResponse
DescriptionGet protocol upgrade status Get status of a protocol upgrade

ListProtocolUpgradeProposals

MethodListProtocolUpgradeProposals
RequestListProtocolUpgradeProposalsRequest
ResponseListProtocolUpgradeProposalsResponse
DescriptionList protocol upgrade proposals Get a list of protocol upgrade proposals, optionally filtering on status or approver.

ListCoreSnapshots

MethodListCoreSnapshots
RequestListCoreSnapshotsRequest
ResponseListCoreSnapshotsResponse
DescriptionList snapshots Get a list of core snapshots taken

GetMostRecentNetworkHistorySegment

MethodGetMostRecentNetworkHistorySegment
RequestGetMostRecentNetworkHistorySegmentRequest
ResponseGetMostRecentNetworkHistorySegmentResponse
DescriptionGet most recent network history segment Get the network's most recently history segment

ListAllNetworkHistorySegments

MethodListAllNetworkHistorySegments
RequestListAllNetworkHistorySegmentsRequest
ResponseListAllNetworkHistorySegmentsResponse
DescriptionList all network history segments Get a list of all history segments stored by the data node currently connected to

GetActiveNetworkHistoryPeerAddresses

MethodGetActiveNetworkHistoryPeerAddresses
RequestGetActiveNetworkHistoryPeerAddressesRequest
ResponseGetActiveNetworkHistoryPeerAddressesResponse
DescriptionGet active network history peer addresses Get a list of the addresses of all active network history peers

GetNetworkHistoryStatus

MethodGetNetworkHistoryStatus
RequestGetNetworkHistoryStatusRequest
ResponseGetNetworkHistoryStatusResponse
DescriptionNetwork history status Get information about the current state of network history Response contains the network history status

GetNetworkHistoryBootstrapPeers

MethodGetNetworkHistoryBootstrapPeers
RequestGetNetworkHistoryBootstrapPeersRequest
ResponseGetNetworkHistoryBootstrapPeersResponse
DescriptionNetwork history bootstrap peers Get the bootstrap peers for data nodes. Response contains the bootstrap peers

ListEntities

MethodListEntities
RequestListEntitiesRequest
ResponseListEntitiesResponse
DescriptionList entities Get a list of all entities created by transaction hash

ExportNetworkHistory

MethodExportNetworkHistory
RequestExportNetworkHistoryRequest
ResponseHttpBody stream
DescriptionExport network history as CSV Export CSV table data from network history between two block heights. The requested block heights must fall on network history segment boundaries, which can be discovered by calling the API to list all network history segments. By default segments contain 1000 blocks. In that case ranges such as (1, 1000), (1001, 2000), (1, 3000) would all fall on segment boundaries and be valid. The generated CSV file is compressed into a ZIP file and returned, with the file name in the following format: [chain id]-[table name]-[start block]-[end block].zip In gRPC, results are returned in a chunked stream of base64 encoded data. Through the REST gateway, the base64 data chunks are decoded and streamed as a `content-type: application/zip` HTTP response. The CSV exported data uses a comma as a DELIMITER between fields, and " for QUOTE-ing fields. If a value contains any of: DELIMITER, QUOTE, carriage return, or line feed then the whole value is prefixed and suffixed by the QUOTE character and any occurrence within the value of a QUOTE character preceded by another QUOTE. A NULL is output as the NULL parameter string and is not quoted, while a non-NULL value matching the NULL parameter string is quoted. For example, with the default settings, a NULL is written as an unquoted empty string, while an empty string data value is written with double quotes. Note that CSV files produced may contain quoted values containing embedded carriage returns and line feeds. Thus the files are not strictly one line per table row like text-format files. The first row of the CSV file is a header that describes the contents of each column in subsequent rows. Usually the ZIP file will contain only a single CSV file. However it is possible that the (from_block, to_block) request spans over a range of blocks in which the underlying schema of the database changes. For example, a column may have been added, removed, or renamed. If this happens, the CSV file will be split at the point of the schema change and the zip file will contain multiple CSV files, with a potentially different set of headers. The 'version' number of the database schema is part of the in the CSV filename: [chain id]-[table name]-[schema version]-[start block]-[end block].zip For example, a zip file might be called mainnet-sometable-000001-003000.zip And contain two CSV files: mainnet-sometable-1-000001-002000.csv: timestamp, value 1, foo 2, bar And mainnet-sometable-2-002001-003000.csv: timestamp, value, extra_value 3, baz, apple It is worth noting that the schema will not change within a single network history segment. buf:lint:ignore RPC_RESPONSE_STANDARD_NAME buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE

Ping

MethodPing
RequestPingRequest
ResponsePingResponse
DescriptionPing Ping the data node