Get latest market data
GEThttps://vega-data.nodes.guru:3008/api/v2/market/data/:marketId/latest
Get the latest market data for a given market
Request
Path Parameters
marketId stringrequired
Market ID to retrieve market data for.
Responses
- 200
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
marketData object
{
"marketData": {
"auctionEnd": "string",
"auctionStart": "string",
"bestBidPrice": "string",
"bestBidVolume": "string",
"bestOfferPrice": "string",
"bestOfferVolume": "string",
"bestStaticBidPrice": "string",
"bestStaticBidVolume": "string",
"bestStaticOfferPrice": "string",
"bestStaticOfferVolume": "string",
"extensionTrigger": "AUCTION_TRIGGER_UNSPECIFIED",
"indicativePrice": "string",
"indicativeVolume": "string",
"lastTradedPrice": "string",
"liquidityProviderFeeShare": [
{
"averageEntryValuation": "string",
"averageScore": "string",
"equityLikeShare": "string",
"party": "string",
"virtualStake": "string"
}
],
"liquidityProviderSla": [
{
"currentEpochFractionOfTimeOnBook": "string",
"hysteresisPeriodFeePenalties": [
"string"
],
"lastEpochBondPenalty": "string",
"lastEpochFeePenalty": "string",
"lastEpochFractionOfTimeOnBook": "string",
"notionalVolumeBuys": "string",
"notionalVolumeSells": "string",
"party": "string",
"requiredLiquidity": "string"
}
],
"markPrice": "string",
"markPriceState": {
"priceSources": [
{
"lastUpdated": "string",
"price": "string",
"priceSource": "string"
}
]
},
"markPriceType": "COMPOSITE_PRICE_TYPE_UNSPECIFIED",
"market": "string",
"marketGrowth": "string",
"marketState": "STATE_UNSPECIFIED",
"marketTradingMode": "TRADING_MODE_UNSPECIFIED",
"marketValueProxy": "string",
"midPrice": "string",
"nextMarkToMarket": "string",
"nextNetworkCloseout": "string",
"openInterest": "string",
"priceMonitoringBounds": [
{
"maxValidPrice": "string",
"minValidPrice": "string",
"referencePrice": "string",
"trigger": {
"auctionExtension": "string",
"horizon": "string",
"probability": "string"
}
}
],
"productData": {
"perpetualData": {
"externalTwap": "string",
"fundingPayment": "string",
"fundingRate": "string",
"internalCompositePrice": "string",
"internalCompositePriceState": {
"priceSources": [
{
"lastUpdated": "string",
"price": "string",
"priceSource": "string"
}
]
},
"internalCompositePriceType": "COMPOSITE_PRICE_TYPE_UNSPECIFIED",
"internalTwap": "string",
"nextInternalCompositePriceCalc": "string",
"seqNum": "string",
"startTime": "string",
"underlyingIndexPrice": "string"
}
},
"staticMidPrice": "string",
"suppliedStake": "string",
"targetStake": "string",
"timestamp": "string",
"trigger": "AUCTION_TRIGGER_UNSPECIFIED"
}
}
An internal server error
- application/json
- Schema
- Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
- curl
- python
- go
- nodejs
- CURL
curl -L -X GET 'https://vega-data.nodes.guru:3008/api/v2/market/data/:marketId/latest' \
-H 'Accept: application/json'
ResponseClear