List markets
Get a list of markets using a cursor based pagination
Query Parameters
Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.
If paging forwards, the cursor string for the last row of the previous page.
Number of records to be returned that sort less than row identified by cursor supplied in 'before'.
If paging forwards, the cursor string for the first row of the previous page.
Newest records first, older records last, default is true.
Whether or not to include settled markets in the response; default to true if not specified.
- 200
- 500
- default
A successful response.
Schema
markets object
Page of markets and corresponding page information.
edges object[]
Page of markets and their corresponding cursors.
node object
Information about the market.
fees object
Fees configuration that apply to the market.
factors object
Fee factors.
liquidityMonitoringParameters object
LiquidityMonitoringParameters for the market.
targetStakeParameters object
Specifies parameters related to target stake calculation.
marketTimestamps object
Timestamps for when the market state changes.
openingAuction object
Auction duration specifies how long the opening auction will run (minimum duration and optionally a minimum traded volume).
priceMonitoringSettings object
PriceMonitoringSettings for the market.
parameters object
Specifies price monitoring parameters to be used for price monitoring purposes.
triggers object[]
Possible values: [STATE_UNSPECIFIED
, STATE_PROPOSED
, STATE_REJECTED
, STATE_PENDING
, STATE_CANCELLED
, STATE_ACTIVE
, STATE_SUSPENDED
, STATE_CLOSED
, STATE_TRADING_TERMINATED
, STATE_SETTLED
]
tradableInstrument object
Tradable instrument configuration.
instrument object
Details for the underlying instrument.
future object
Future.
dataSourceSpecBinding object
Binding between the data spec and the data source.
dataSourceSpecForSettlementData object
Data source specification that describes the settlement data source filter.
data object
DataSourceDefinition represents the top level object that deals with data sources. DataSourceDefinition can be external or internal, with whatever number of data sources are defined for each type in the child objects below.
external object
DataSourceDefinitionExternal is the top level object used for all external data sources.
It contains one of any of the defined SourceType
variants.
oracle object
All types of external data sources use the same configuration set for meeting requirements in order for the data to be useful for Vega - valid signatures and matching filters.
filters object[]
Filters describes which source data are considered of interest or not for the product (or the risk model).
conditions object[]
Conditions that should be matched by the data to be considered of interest.
Possible values: [OPERATOR_UNSPECIFIED
, OPERATOR_EQUALS
, OPERATOR_GREATER_THAN
, OPERATOR_GREATER_THAN_OR_EQUAL
, OPERATOR_LESS_THAN
, OPERATOR_LESS_THAN_OR_EQUAL
]
key object
Data source's data property key targeted by the filter.
Possible values: [TYPE_UNSPECIFIED
, TYPE_EMPTY
, TYPE_INTEGER
, TYPE_STRING
, TYPE_BOOLEAN
, TYPE_DECIMAL
, TYPE_TIMESTAMP
]
signers object[]
Signers is the list of authorized signatures that signed the data for this source. All the signatures in the data source data should be contained in this external source. All the signatures in the data should be contained in this list.
ethAddress object
pubKey object
List of authorized public keys that signed the data for this source. All the public keys in the data should be contained in these public keys.
internal object
DataSourceDefinitionInternal is the top level object used for all internal data sources.
It contains one of any of the defined SourceType
variants.
time object
DataSourceSpecConfigurationTime is the internal data source used for emitting timestamps.
conditions object[]
Conditions that the timestamps should meet in order to be considered.
Possible values: [OPERATOR_UNSPECIFIED
, OPERATOR_EQUALS
, OPERATOR_GREATER_THAN
, OPERATOR_GREATER_THAN_OR_EQUAL
, OPERATOR_LESS_THAN
, OPERATOR_LESS_THAN_OR_EQUAL
]
Possible values: [STATUS_UNSPECIFIED
, STATUS_ACTIVE
, STATUS_DEACTIVATED
]
dataSourceSpecForTradingTermination object
Data source specification that describes the trading termination data source filter.
data object
DataSourceDefinition represents the top level object that deals with data sources. DataSourceDefinition can be external or internal, with whatever number of data sources are defined for each type in the child objects below.
external object
DataSourceDefinitionExternal is the top level object used for all external data sources.
It contains one of any of the defined SourceType
variants.
oracle object
All types of external data sources use the same configuration set for meeting requirements in order for the data to be useful for Vega - valid signatures and matching filters.
filters object[]
Filters describes which source data are considered of interest or not for the product (or the risk model).
conditions object[]
Conditions that should be matched by the data to be considered of interest.
Possible values: [OPERATOR_UNSPECIFIED
, OPERATOR_EQUALS
, OPERATOR_GREATER_THAN
, OPERATOR_GREATER_THAN_OR_EQUAL
, OPERATOR_LESS_THAN
, OPERATOR_LESS_THAN_OR_EQUAL
]
key object
Data source's data property key targeted by the filter.
Possible values: [TYPE_UNSPECIFIED
, TYPE_EMPTY
, TYPE_INTEGER
, TYPE_STRING
, TYPE_BOOLEAN
, TYPE_DECIMAL
, TYPE_TIMESTAMP
]
signers object[]
Signers is the list of authorized signatures that signed the data for this source. All the signatures in the data source data should be contained in this external source. All the signatures in the data should be contained in this list.
ethAddress object
pubKey object
List of authorized public keys that signed the data for this source. All the public keys in the data should be contained in these public keys.
internal object
DataSourceDefinitionInternal is the top level object used for all internal data sources.
It contains one of any of the defined SourceType
variants.
time object
DataSourceSpecConfigurationTime is the internal data source used for emitting timestamps.
conditions object[]
Conditions that the timestamps should meet in order to be considered.
Possible values: [OPERATOR_UNSPECIFIED
, OPERATOR_EQUALS
, OPERATOR_GREATER_THAN
, OPERATOR_GREATER_THAN_OR_EQUAL
, OPERATOR_LESS_THAN
, OPERATOR_LESS_THAN_OR_EQUAL
]
Possible values: [STATUS_UNSPECIFIED
, STATUS_ACTIVE
, STATUS_DEACTIVATED
]
metadata object
Collection of instrument meta-data.
logNormalRiskModel object
Log normal.
params object
Risk model parameters for log normal.
marginCalculator object
Margin calculator for the instrument.
scalingFactors object
Scaling factors for margin calculation.
simpleRiskModel object
Simple.
params object
Risk model params for simple modelling.
Possible values: [TRADING_MODE_UNSPECIFIED
, TRADING_MODE_CONTINUOUS
, TRADING_MODE_BATCH_AUCTION
, TRADING_MODE_OPENING_AUCTION
, TRADING_MODE_MONITORING_AUCTION
, TRADING_MODE_NO_TRADING
]
pageInfo object
Page information that is used for fetching further pages.
{
"markets": {
"edges": [
{
"cursor": "string",
"node": {
"decimalPlaces": "string",
"fees": {
"factors": {
"infrastructureFee": "string",
"liquidityFee": "string",
"makerFee": "string"
}
},
"id": "string",
"linearSlippageFactor": "string",
"liquidityMonitoringParameters": {
"auctionExtension": "string",
"targetStakeParameters": {
"scalingFactor": 0,
"timeWindow": "string"
},
"triggeringRatio": "string"
},
"lpPriceRange": "string",
"marketTimestamps": {
"close": "string",
"open": "string",
"pending": "string",
"proposed": "string"
},
"openingAuction": {
"duration": "string",
"volume": "string"
},
"positionDecimalPlaces": "string",
"priceMonitoringSettings": {
"parameters": {
"triggers": [
{
"auctionExtension": "string",
"horizon": "string",
"probability": "string"
}
]
}
},
"quadraticSlippageFactor": "string",
"state": "STATE_UNSPECIFIED",
"tradableInstrument": {
"instrument": {
"code": "string",
"future": {
"dataSourceSpecBinding": {
"settlementDataProperty": "string",
"tradingTerminationProperty": "string"
},
"dataSourceSpecForSettlementData": {
"createdAt": "string",
"data": {
"external": {
"oracle": {
"filters": [
{
"conditions": [
{
"operator": "OPERATOR_UNSPECIFIED",
"value": "string"
}
],
"key": {
"name": "string",
"numberDecimalPlaces": "string",
"type": "TYPE_UNSPECIFIED"
}
}
],
"signers": [
{
"ethAddress": {
"address": "string"
},
"pubKey": {
"key": "string"
}
}
]
}
},
"internal": {
"time": {
"conditions": [
{
"operator": "OPERATOR_UNSPECIFIED",
"value": "string"
}
]
}
}
},
"id": "string",
"status": "STATUS_UNSPECIFIED",
"updatedAt": "string"
},
"dataSourceSpecForTradingTermination": {
"createdAt": "string",
"data": {
"external": {
"oracle": {
"filters": [
{
"conditions": [
{
"operator": "OPERATOR_UNSPECIFIED",
"value": "string"
}
],
"key": {
"name": "string",
"numberDecimalPlaces": "string",
"type": "TYPE_UNSPECIFIED"
}
}
],
"signers": [
{
"ethAddress": {
"address": "string"
},
"pubKey": {
"key": "string"
}
}
]
}
},
"internal": {
"time": {
"conditions": [
{
"operator": "OPERATOR_UNSPECIFIED",
"value": "string"
}
]
}
}
},
"id": "string",
"status": "STATUS_UNSPECIFIED",
"updatedAt": "string"
},
"quoteName": "string",
"settlementAsset": "string"
},
"id": "string",
"metadata": {
"tags": [
"string"
]
},
"name": "string"
},
"logNormalRiskModel": {
"params": {
"mu": 0,
"r": 0,
"sigma": 0
},
"riskAversionParameter": 0,
"tau": 0
},
"marginCalculator": {
"scalingFactors": {
"collateralRelease": 0,
"initialMargin": 0,
"searchLevel": 0
}
},
"simpleRiskModel": {
"params": {
"factorLong": 0,
"factorShort": 0,
"maxMoveUp": 0,
"minMoveDown": 0,
"probabilityOfTrading": 0
}
}
},
"tradingMode": "TRADING_MODE_UNSPECIFIED"
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
}
}
}
An internal server error
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}