chore: downgrade to 0.55 (#1406)

This commit is contained in:
Bartłomiej Głownia 2022-09-21 14:49:11 +02:00 committed by GitHub
parent ddbaea5e3f
commit cc7a4f2ddd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
62 changed files with 430 additions and 674 deletions

View File

@ -53,9 +53,6 @@ export interface Deposits_assetsConnection_edges_node {
export interface Deposits_assetsConnection_edges { export interface Deposits_assetsConnection_edges {
__typename: "AssetEdge"; __typename: "AssetEdge";
/**
* The asset information
*/
node: Deposits_assetsConnection_edges_node; node: Deposits_assetsConnection_edges_node;
} }

View File

@ -10,7 +10,7 @@
export interface MarketMarkPrice_market_data { export interface MarketMarkPrice_market_data {
__typename: "MarketData"; __typename: "MarketData";
/** /**
* The mark price (an unsigned integer) * the mark price (an unsigned integer)
*/ */
markPrice: string; markPrice: string;
} }
@ -18,7 +18,7 @@ export interface MarketMarkPrice_market_data {
export interface MarketMarkPrice_market { export interface MarketMarkPrice_market {
__typename: "Market"; __typename: "Market";
/** /**
* The number of decimal places that an integer must be shifted by in order to get a correct * decimalPlaces indicates the number of decimal places that an integer must be shifted by in order to get a correct
* number denominated in the currency of the market. (uint64) * number denominated in the currency of the market. (uint64)
* *
* Examples: * Examples:

View File

@ -60,19 +60,19 @@ export interface PartyMarketData_party_marginsConnection_edges_node_market {
export interface PartyMarketData_party_marginsConnection_edges_node { export interface PartyMarketData_party_marginsConnection_edges_node {
__typename: "MarginLevels"; __typename: "MarginLevels";
/** /**
* Market in which the margin is required for this party * market in which the margin is required for this party
*/ */
market: PartyMarketData_party_marginsConnection_edges_node_market; market: PartyMarketData_party_marginsConnection_edges_node_market;
/** /**
* This is the minimum margin required for a party to place a new order on the network (unsigned integer) * this is the minimum margin required for a party to place a new order on the network (unsigned integer)
*/ */
initialLevel: string; initialLevel: string;
/** /**
* Minimal margin for the position to be maintained in the network (unsigned integer) * minimal margin for the position to be maintained in the network (unsigned integer)
*/ */
maintenanceLevel: string; maintenanceLevel: string;
/** /**
* If the margin is between maintenance and search, the network will initiate a collateral search (unsigned integer) * if the margin is between maintenance and search, the network will initiate a collateral search (unsigned integer)
*/ */
searchLevel: string; searchLevel: string;
} }

View File

@ -28,7 +28,7 @@ export interface EstimateOrder_estimateOrder_fee {
export interface EstimateOrder_estimateOrder_marginLevels { export interface EstimateOrder_estimateOrder_marginLevels {
__typename: "MarginLevels"; __typename: "MarginLevels";
/** /**
* This is the minimum margin required for a party to place a new order on the network (unsigned integer) * this is the minimum margin required for a party to place a new order on the network (unsigned integer)
*/ */
initialLevel: string; initialLevel: string;
} }
@ -47,7 +47,7 @@ export interface EstimateOrder_estimateOrder {
export interface EstimateOrder { export interface EstimateOrder {
/** /**
* Return an estimation of the potential cost for a new order * return an estimation of the potential cost for a new order
*/ */
estimateOrder: EstimateOrder_estimateOrder; estimateOrder: EstimateOrder_estimateOrder;
} }

View File

@ -67,9 +67,6 @@ export interface MarketPositions_party_positionsConnection_edges_node {
export interface MarketPositions_party_positionsConnection_edges { export interface MarketPositions_party_positionsConnection_edges {
__typename: "PositionEdge"; __typename: "PositionEdge";
/**
* The position
*/
node: MarketPositions_party_positionsConnection_edges_node; node: MarketPositions_party_positionsConnection_edges_node;
} }

View File

@ -81,9 +81,6 @@ export interface AssetsQuery_assetsConnection_edges_node {
export interface AssetsQuery_assetsConnection_edges { export interface AssetsQuery_assetsConnection_edges {
__typename: "AssetEdge"; __typename: "AssetEdge";
/**
* The asset information
*/
node: AssetsQuery_assetsConnection_edges_node; node: AssetsQuery_assetsConnection_edges_node;
} }

View File

@ -265,7 +265,7 @@ export interface ProposalsQuery_proposalsConnection_edges_node {
*/ */
datetime: string; datetime: string;
/** /**
* Why the proposal was rejected by the core * Reason for the proposal to be rejected by the core
*/ */
rejectionReason: ProposalRejectionReason | null; rejectionReason: ProposalRejectionReason | null;
/** /**

View File

@ -104,15 +104,15 @@ export interface MarketsQuery_markets_tradableInstrument_instrument {
export interface MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRiskModel_params { export interface MarketsQuery_markets_tradableInstrument_riskModel_LogNormalRiskModel_params {
__typename: "LogNormalModelParams"; __typename: "LogNormalModelParams";
/** /**
* R parameter * r parameter
*/ */
r: number; r: number;
/** /**
* Sigma parameter, annualised volatility of the underlying asset, must be a strictly non-negative real number * sigma parameter, annualised volatility of the underlying asset, must be a strictly non-negative real number
*/ */
sigma: number; sigma: number;
/** /**
* Mu parameter, annualised growth rate of the underlying asset * mu parameter, annualised growth rate of the underlying asset
*/ */
mu: number; mu: number;
} }
@ -158,15 +158,15 @@ export type MarketsQuery_markets_tradableInstrument_riskModel = MarketsQuery_mar
export interface MarketsQuery_markets_tradableInstrument_marginCalculator_scalingFactors { export interface MarketsQuery_markets_tradableInstrument_marginCalculator_scalingFactors {
__typename: "ScalingFactors"; __typename: "ScalingFactors";
/** /**
* The scaling factor that determines the margin level at which Vega has to search for more money * the scaling factor that determines the margin level at which Vega has to search for more money
*/ */
searchLevel: number; searchLevel: number;
/** /**
* The scaling factor that determines the optimal margin level * the scaling factor that determines the optimal margin level
*/ */
initialMargin: number; initialMargin: number;
/** /**
* The scaling factor that determines the overflow margin level * the scaling factor that determines the overflow margin level
*/ */
collateralRelease: number; collateralRelease: number;
} }
@ -362,47 +362,47 @@ export interface MarketsQuery_markets_data_liquidityProviderFeeShare {
export interface MarketsQuery_markets_data { export interface MarketsQuery_markets_data {
__typename: "MarketData"; __typename: "MarketData";
/** /**
* The mark price (an unsigned integer) * the mark price (an unsigned integer)
*/ */
markPrice: string; markPrice: string;
/** /**
* The highest price level on an order book for buy orders. * the highest price level on an order book for buy orders.
*/ */
bestBidPrice: string; bestBidPrice: string;
/** /**
* The aggregated volume being bid at the best bid price. * the aggregated volume being bid at the best bid price.
*/ */
bestBidVolume: string; bestBidVolume: string;
/** /**
* The lowest price level on an order book for offer orders. * the lowest price level on an order book for offer orders.
*/ */
bestOfferPrice: string; bestOfferPrice: string;
/** /**
* The aggregated volume being offered at the best offer price. * the aggregated volume being offered at the best offer price.
*/ */
bestOfferVolume: string; bestOfferVolume: string;
/** /**
* The highest price level on an order book for buy orders not including pegged orders. * the highest price level on an order book for buy orders not including pegged orders.
*/ */
bestStaticBidPrice: string; bestStaticBidPrice: string;
/** /**
* The aggregated volume being offered at the best static bid price, excluding pegged orders * the aggregated volume being offered at the best static bid price, excluding pegged orders
*/ */
bestStaticBidVolume: string; bestStaticBidVolume: string;
/** /**
* The lowest price level on an order book for offer orders not including pegged orders. * the lowest price level on an order book for offer orders not including pegged orders.
*/ */
bestStaticOfferPrice: string; bestStaticOfferPrice: string;
/** /**
* The aggregated volume being offered at the best static offer price, excluding pegged orders. * the aggregated volume being offered at the best static offer price, excluding pegged orders.
*/ */
bestStaticOfferVolume: string; bestStaticOfferVolume: string;
/** /**
* The arithmetic average of the best bid price and best offer price. * the arithmetic average of the best bid price and best offer price.
*/ */
midPrice: string; midPrice: string;
/** /**
* The arithmetic average of the best static bid price and best static offer price * the arithmetic average of the best static bid price and best static offer price
*/ */
staticMidPrice: string; staticMidPrice: string;
/** /**
@ -410,7 +410,7 @@ export interface MarketsQuery_markets_data {
*/ */
timestamp: string; timestamp: string;
/** /**
* The sum of the size of all positions greater than 0. * the sum of the size of all positions greater than 0.
*/ */
openInterest: string; openInterest: string;
/** /**
@ -422,39 +422,39 @@ export interface MarketsQuery_markets_data {
*/ */
auctionStart: string | null; auctionStart: string | null;
/** /**
* Indicative price if the auction ended now, 0 if not in auction mode * indicative price if the auction ended now, 0 if not in auction mode
*/ */
indicativePrice: string; indicativePrice: string;
/** /**
* Indicative volume if the auction ended now, 0 if not in auction mode * indicative volume if the auction ended now, 0 if not in auction mode
*/ */
indicativeVolume: string; indicativeVolume: string;
/** /**
* What triggered an auction (if an auction was started) * what triggered an auction (if an auction was started)
*/ */
trigger: AuctionTrigger; trigger: AuctionTrigger;
/** /**
* What extended the ongoing auction (if an auction was extended) * what extended the ongoing auction (if an auction was extended)
*/ */
extensionTrigger: AuctionTrigger; extensionTrigger: AuctionTrigger;
/** /**
* The amount of stake targeted for this market * the amount of stake targeted for this market
*/ */
targetStake: string | null; targetStake: string | null;
/** /**
* The supplied stake for the market * the supplied stake for the market
*/ */
suppliedStake: string | null; suppliedStake: string | null;
/** /**
* A list of valid price ranges per associated trigger * a list of valid price ranges per associated trigger
*/ */
priceMonitoringBounds: MarketsQuery_markets_data_priceMonitoringBounds[] | null; priceMonitoringBounds: MarketsQuery_markets_data_priceMonitoringBounds[] | null;
/** /**
* The market value proxy * the market value proxy
*/ */
marketValueProxy: string; marketValueProxy: string;
/** /**
* The equity like share of liquidity fee for each liquidity provider * the equity like share of liquidity fee for each liquidity provider
*/ */
liquidityProviderFeeShare: MarketsQuery_markets_data_liquidityProviderFeeShare[] | null; liquidityProviderFeeShare: MarketsQuery_markets_data_liquidityProviderFeeShare[] | null;
} }
@ -474,7 +474,7 @@ export interface MarketsQuery_markets {
*/ */
tradableInstrument: MarketsQuery_markets_tradableInstrument; tradableInstrument: MarketsQuery_markets_tradableInstrument;
/** /**
* The number of decimal places that an integer must be shifted by in order to get a correct * decimalPlaces indicates the number of decimal places that an integer must be shifted by in order to get a correct
* number denominated in the currency of the market. (uint64) * number denominated in the currency of the market. (uint64)
* *
* Examples: * Examples:

View File

@ -21,7 +21,7 @@ export interface NetworkParametersQuery_networkParameters {
export interface NetworkParametersQuery { export interface NetworkParametersQuery {
/** /**
* Return the full list of network parameters * return the full list of network parameters
*/ */
networkParameters: NetworkParametersQuery_networkParameters[] | null; networkParameters: NetworkParametersQuery_networkParameters[] | null;
} }

View File

@ -12,11 +12,11 @@ import { OracleSpecStatus, PropertyKeyType, ConditionOperator } from "@vegaproto
export interface OracleSpecs_oracleSpecs_filters_key { export interface OracleSpecs_oracleSpecs_filters_key {
__typename: "PropertyKey"; __typename: "PropertyKey";
/** /**
* The name of the property. * name is the name of the property.
*/ */
name: string | null; name: string | null;
/** /**
* The type of the property. * type is the type of the property.
*/ */
type: PropertyKeyType; type: PropertyKeyType;
} }
@ -24,11 +24,11 @@ export interface OracleSpecs_oracleSpecs_filters_key {
export interface OracleSpecs_oracleSpecs_filters_conditions { export interface OracleSpecs_oracleSpecs_filters_conditions {
__typename: "Condition"; __typename: "Condition";
/** /**
* The value to compare against. * value is used by the comparator.
*/ */
value: string | null; value: string | null;
/** /**
* The type of comparison to make on the value. * comparator is the type of comparison to make on the value.
*/ */
operator: ConditionOperator; operator: ConditionOperator;
} }
@ -36,11 +36,11 @@ export interface OracleSpecs_oracleSpecs_filters_conditions {
export interface OracleSpecs_oracleSpecs_filters { export interface OracleSpecs_oracleSpecs_filters {
__typename: "Filter"; __typename: "Filter";
/** /**
* The oracle data property key targeted by the filter. * key is the oracle data property key targeted by the filter.
*/ */
key: OracleSpecs_oracleSpecs_filters_key; key: OracleSpecs_oracleSpecs_filters_key;
/** /**
* The conditions that should be matched by the data to be * conditions are the conditions that should be matched by the data to be
* considered of interest. * considered of interest.
*/ */
conditions: OracleSpecs_oracleSpecs_filters_conditions[] | null; conditions: OracleSpecs_oracleSpecs_filters_conditions[] | null;
@ -49,7 +49,7 @@ export interface OracleSpecs_oracleSpecs_filters {
export interface OracleSpecs_oracleSpecs_data { export interface OracleSpecs_oracleSpecs_data {
__typename: "OracleData"; __typename: "OracleData";
/** /**
* The list of public keys that signed the data * pubKeys is the list of public keys that signed the data
*/ */
pubKeys: string[] | null; pubKeys: string[] | null;
} }
@ -57,7 +57,7 @@ export interface OracleSpecs_oracleSpecs_data {
export interface OracleSpecs_oracleSpecs { export interface OracleSpecs_oracleSpecs {
__typename: "OracleSpec"; __typename: "OracleSpec";
/** /**
* Status describes the status of the oracle spec * status describes the status of the oracle spec
*/ */
status: OracleSpecStatus; status: OracleSpecStatus;
/** /**
@ -73,18 +73,18 @@ export interface OracleSpecs_oracleSpecs {
*/ */
updatedAt: string | null; updatedAt: string | null;
/** /**
* The list of authorized public keys that signed the data for this * pubKeys is the list of authorized public keys that signed the data for this
* oracle. All the public keys in the oracle data should be contained in these * oracle. All the public keys in the oracle data should be contained in these
* public keys. * public keys.
*/ */
pubKeys: string[] | null; pubKeys: string[] | null;
/** /**
* Filters describes which oracle data are considered of interest or not for * filters describes which oracle data are considered of interest or not for
* the product (or the risk model). * the product (or the risk model).
*/ */
filters: OracleSpecs_oracleSpecs_filters[] | null; filters: OracleSpecs_oracleSpecs_filters[] | null;
/** /**
* Data list all the oracle data broadcast to this spec * data list all the oracle data broadcast to this spec
*/ */
data: OracleSpecs_oracleSpecs_data[]; data: OracleSpecs_oracleSpecs_data[];
} }

View File

@ -69,19 +69,13 @@ export interface NodesQuery_nodes {
* Amount of stake on the next epoch * Amount of stake on the next epoch
*/ */
pendingStake: string; pendingStake: string;
/**
* Summary of epoch data across all nodes
*/
epochData: NodesQuery_nodes_epochData | null; epochData: NodesQuery_nodes_epochData | null;
/**
* Validator status of the node
*/
status: NodeStatus; status: NodeStatus;
} }
export interface NodesQuery { export interface NodesQuery {
/** /**
* All known network nodes * all known network nodes
*/ */
nodes: NodesQuery_nodes[] | null; nodes: NodesQuery_nodes[] | null;
} }

View File

@ -12,7 +12,7 @@ import { AccountType } from "@vegaprotocol/types";
export interface Delegations_epoch { export interface Delegations_epoch {
__typename: "Epoch"; __typename: "Epoch";
/** /**
* Numeric sequence number used to identify the epoch * Presumably this is an integer or something. If there's no such thing, disregard
*/ */
id: string; id: string;
} }
@ -131,7 +131,7 @@ export interface Delegations_party {
export interface Delegations { export interface Delegations {
/** /**
* Get data for a specific epoch, if ID omitted it gets the current epoch. If the string is 'next', fetch the next epoch * get data for a specific epoch, if ID omitted it gets the current epoch. If the string is 'next', fetch the next epoch
*/ */
epoch: Delegations_epoch; epoch: Delegations_epoch;
/** /**

View File

@ -293,7 +293,7 @@ export interface ProposalFields {
*/ */
datetime: string; datetime: string;
/** /**
* Why the proposal was rejected by the core * Reason for the proposal to be rejected by the core
*/ */
rejectionReason: ProposalRejectionReason | null; rejectionReason: ProposalRejectionReason | null;
/** /**

View File

@ -293,7 +293,7 @@ export interface Proposal_proposal {
*/ */
datetime: string; datetime: string;
/** /**
* Why the proposal was rejected by the core * Reason for the proposal to be rejected by the core
*/ */
rejectionReason: ProposalRejectionReason | null; rejectionReason: ProposalRejectionReason | null;
/** /**

View File

@ -293,7 +293,7 @@ export interface Proposals_proposalsConnection_edges_node {
*/ */
datetime: string; datetime: string;
/** /**
* Why the proposal was rejected by the core * Reason for the proposal to be rejected by the core
*/ */
rejectionReason: ProposalRejectionReason | null; rejectionReason: ProposalRejectionReason | null;
/** /**

View File

@ -21,7 +21,7 @@ export interface NodeData_nodeData {
export interface NodeData { export interface NodeData {
/** /**
* Returns information about nodes * returns information about nodes
*/ */
nodeData: NodeData_nodeData | null; nodeData: NodeData_nodeData | null;
} }

View File

@ -40,7 +40,7 @@ export interface Rewards_party_rewardDetails_rewards_party {
export interface Rewards_party_rewardDetails_rewards_epoch { export interface Rewards_party_rewardDetails_rewards_epoch {
__typename: "Epoch"; __typename: "Epoch";
/** /**
* Numeric sequence number used to identify the epoch * Presumably this is an integer or something. If there's no such thing, disregard
*/ */
id: string; id: string;
} }
@ -124,7 +124,7 @@ export interface Rewards_party {
*/ */
id: string; id: string;
/** /**
* Return reward information * return reward information
*/ */
rewardDetails: (Rewards_party_rewardDetails | null)[] | null; rewardDetails: (Rewards_party_rewardDetails | null)[] | null;
delegations: Rewards_party_delegations[] | null; delegations: Rewards_party_delegations[] | null;
@ -149,7 +149,7 @@ export interface Rewards_epoch_timestamps {
export interface Rewards_epoch { export interface Rewards_epoch {
__typename: "Epoch"; __typename: "Epoch";
/** /**
* Numeric sequence number used to identify the epoch * Presumably this is an integer or something. If there's no such thing, disregard
*/ */
id: string; id: string;
/** /**
@ -164,7 +164,7 @@ export interface Rewards {
*/ */
party: Rewards_party | null; party: Rewards_party | null;
/** /**
* Get data for a specific epoch, if ID omitted it gets the current epoch. If the string is 'next', fetch the next epoch * get data for a specific epoch, if ID omitted it gets the current epoch. If the string is 'next', fetch the next epoch
*/ */
epoch: Rewards_epoch; epoch: Rewards_epoch;
} }

View File

@ -81,11 +81,11 @@ export interface Nodes_nodeData {
export interface Nodes { export interface Nodes {
/** /**
* All known network nodes * all known network nodes
*/ */
nodes: Nodes_nodes[] | null; nodes: Nodes_nodes[] | null;
/** /**
* Returns information about nodes * returns information about nodes
*/ */
nodeData: Nodes_nodeData | null; nodeData: Nodes_nodeData | null;
} }

View File

@ -47,7 +47,7 @@ export interface PartyDelegations_party {
export interface PartyDelegations_epoch { export interface PartyDelegations_epoch {
__typename: "Epoch"; __typename: "Epoch";
/** /**
* Numeric sequence number used to identify the epoch * Presumably this is an integer or something. If there's no such thing, disregard
*/ */
id: string; id: string;
} }
@ -58,7 +58,7 @@ export interface PartyDelegations {
*/ */
party: PartyDelegations_party | null; party: PartyDelegations_party | null;
/** /**
* Get data for a specific epoch, if ID omitted it gets the current epoch. If the string is 'next', fetch the next epoch * get data for a specific epoch, if ID omitted it gets the current epoch. If the string is 'next', fetch the next epoch
*/ */
epoch: PartyDelegations_epoch; epoch: PartyDelegations_epoch;
} }

View File

@ -81,7 +81,7 @@ export interface Staking_epoch_timestamps {
export interface Staking_epoch { export interface Staking_epoch {
__typename: "Epoch"; __typename: "Epoch";
/** /**
* Numeric sequence number used to identify the epoch * Presumably this is an integer or something. If there's no such thing, disregard
*/ */
id: string; id: string;
/** /**
@ -181,13 +181,7 @@ export interface Staking_nodes {
* The pending staked field formatted by the client * The pending staked field formatted by the client
*/ */
pendingStakeFormatted: string; pendingStakeFormatted: string;
/**
* Summary of epoch data across all nodes
*/
epochData: Staking_nodes_epochData | null; epochData: Staking_nodes_epochData | null;
/**
* Validator status of the node
*/
status: NodeStatus; status: NodeStatus;
/** /**
* Ranking scores and status for the validator for the current epoch * Ranking scores and status for the validator for the current epoch
@ -229,15 +223,15 @@ export interface Staking {
*/ */
party: Staking_party | null; party: Staking_party | null;
/** /**
* Get data for a specific epoch, if ID omitted it gets the current epoch. If the string is 'next', fetch the next epoch * get data for a specific epoch, if ID omitted it gets the current epoch. If the string is 'next', fetch the next epoch
*/ */
epoch: Staking_epoch; epoch: Staking_epoch;
/** /**
* All known network nodes * all known network nodes
*/ */
nodes: Staking_nodes[] | null; nodes: Staking_nodes[] | null;
/** /**
* Returns information about nodes * returns information about nodes
*/ */
nodeData: Staking_nodeData | null; nodeData: Staking_nodeData | null;
} }

View File

@ -10,7 +10,7 @@ export const generateCandles = (
): CandlesQuery => { ): CandlesQuery => {
const candles: CandleFieldsFragment[] = [ const candles: CandleFieldsFragment[] = [
{ {
periodStart: '1661515200000000000', timestamp: '1661515200000000000',
high: '17481092', high: '17481092',
low: '17403651', low: '17403651',
open: '17458833', open: '17458833',
@ -19,7 +19,7 @@ export const generateCandles = (
__typename: 'Candle', __typename: 'Candle',
}, },
{ {
periodStart: '1661516100000000000', timestamp: '1661516100000000000',
high: '17491202', high: '17491202',
low: '17361138', low: '17361138',
open: '17446470', open: '17446470',
@ -28,7 +28,7 @@ export const generateCandles = (
__typename: 'Candle', __typename: 'Candle',
}, },
{ {
periodStart: '1661517000000000000', timestamp: '1661517000000000000',
high: '17424522', high: '17424522',
low: '17337719', low: '17337719',
open: '17367174', open: '17367174',
@ -50,11 +50,7 @@ export const generateCandles = (
}, },
__typename: 'TradableInstrument', __typename: 'TradableInstrument',
}, },
candlesConnection: { candles,
edges: candles.map((node) => ({
node,
})),
},
__typename: 'Market', __typename: 'Market',
}, },
}; };

View File

@ -84,7 +84,7 @@ export const generateMarket = (override?: PartialDeep<Market>): Market => {
open: '2095312844', open: '2095312844',
close: '2090090607', close: '2090090607',
volume: '4847', volume: '4847',
__typename: 'Candle', __typename: 'CandleNode',
}, },
}, },
{ {
@ -93,7 +93,7 @@ export const generateMarket = (override?: PartialDeep<Market>): Market => {
open: '2090090000', open: '2090090000',
close: '2090090607', close: '2090090607',
volume: '4847', volume: '4847',
__typename: 'Candle', __typename: 'CandleNode',
}, },
}, },
], ],

View File

@ -319,7 +319,7 @@ export const generateMarketsCandles = (
{ {
__typename: 'CandleEdge', __typename: 'CandleEdge',
node: { node: {
__typename: 'Candle', __typename: 'CandleNode',
open: '100', open: '100',
close: '100', close: '100',
high: '110', high: '110',
@ -339,7 +339,7 @@ export const generateMarketsCandles = (
{ {
__typename: 'CandleEdge', __typename: 'CandleEdge',
node: { node: {
__typename: 'Candle', __typename: 'CandleNode',
open: '100', open: '100',
close: '100', close: '100',
high: '110', high: '110',
@ -359,7 +359,7 @@ export const generateMarketsCandles = (
{ {
__typename: 'CandleEdge', __typename: 'CandleEdge',
node: { node: {
__typename: 'Candle', __typename: 'CandleNode',
open: '100', open: '100',
close: '100', close: '100',
high: '110', high: '110',
@ -379,7 +379,7 @@ export const generateMarketsCandles = (
{ {
__typename: 'CandleEdge', __typename: 'CandleEdge',
node: { node: {
__typename: 'Candle', __typename: 'CandleNode',
open: '100', open: '100',
close: '100', close: '100',
high: '110', high: '110',

View File

@ -20,7 +20,7 @@ export interface Market_market_data_market {
export interface Market_market_data { export interface Market_market_data {
__typename: "MarketData"; __typename: "MarketData";
/** /**
* Market of the associated mark price * market of the associated mark price
*/ */
market: Market_market_data_market; market: Market_market_data_market;
/** /**
@ -32,43 +32,43 @@ export interface Market_market_data {
*/ */
auctionEnd: string | null; auctionEnd: string | null;
/** /**
* The mark price (an unsigned integer) * the mark price (an unsigned integer)
*/ */
markPrice: string; markPrice: string;
/** /**
* Indicative volume if the auction ended now, 0 if not in auction mode * indicative volume if the auction ended now, 0 if not in auction mode
*/ */
indicativeVolume: string; indicativeVolume: string;
/** /**
* Indicative price if the auction ended now, 0 if not in auction mode * indicative price if the auction ended now, 0 if not in auction mode
*/ */
indicativePrice: string; indicativePrice: string;
/** /**
* The supplied stake for the market * the supplied stake for the market
*/ */
suppliedStake: string | null; suppliedStake: string | null;
/** /**
* The amount of stake targeted for this market * the amount of stake targeted for this market
*/ */
targetStake: string | null; targetStake: string | null;
/** /**
* The aggregated volume being bid at the best bid price. * the aggregated volume being bid at the best bid price.
*/ */
bestBidVolume: string; bestBidVolume: string;
/** /**
* The aggregated volume being offered at the best offer price. * the aggregated volume being offered at the best offer price.
*/ */
bestOfferVolume: string; bestOfferVolume: string;
/** /**
* The aggregated volume being offered at the best static bid price, excluding pegged orders * the aggregated volume being offered at the best static bid price, excluding pegged orders
*/ */
bestStaticBidVolume: string; bestStaticBidVolume: string;
/** /**
* The aggregated volume being offered at the best static offer price, excluding pegged orders. * the aggregated volume being offered at the best static offer price, excluding pegged orders.
*/ */
bestStaticOfferVolume: string; bestStaticOfferVolume: string;
/** /**
* What triggered an auction (if an auction was started) * what triggered an auction (if an auction was started)
*/ */
trigger: AuctionTrigger; trigger: AuctionTrigger;
} }
@ -170,7 +170,7 @@ export interface Market_market_marketTimestamps {
} }
export interface Market_market_candlesConnection_edges_node { export interface Market_market_candlesConnection_edges_node {
__typename: "Candle"; __typename: "CandleNode";
/** /**
* Open price (uint64) * Open price (uint64)
*/ */
@ -187,9 +187,6 @@ export interface Market_market_candlesConnection_edges_node {
export interface Market_market_candlesConnection_edges { export interface Market_market_candlesConnection_edges {
__typename: "CandleEdge"; __typename: "CandleEdge";
/**
* The candle
*/
node: Market_market_candlesConnection_edges_node; node: Market_market_candlesConnection_edges_node;
} }
@ -216,7 +213,7 @@ export interface Market_market {
*/ */
state: MarketState; state: MarketState;
/** /**
* The number of decimal places that an integer must be shifted by in order to get a correct * decimalPlaces indicates the number of decimal places that an integer must be shifted by in order to get a correct
* number denominated in the currency of the market. (uint64) * number denominated in the currency of the market. (uint64)
* *
* Examples: * Examples:
@ -233,7 +230,7 @@ export interface Market_market {
*/ */
decimalPlaces: number; decimalPlaces: number;
/** /**
* The number of decimal places that an integer must be shifted in order to get a correct size (uint64). * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64).
* i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes.
* 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market.
* This sets how big the smallest order / position on the market can be. * This sets how big the smallest order / position on the market can be.
@ -248,7 +245,7 @@ export interface Market_market {
*/ */
tradableInstrument: Market_market_tradableInstrument; tradableInstrument: Market_market_tradableInstrument;
/** /**
* Timestamps for state changes in the market * timestamps for state changes in the market
*/ */
marketTimestamps: Market_market_marketTimestamps; marketTimestamps: Market_market_marketTimestamps;
/** /**

View File

@ -10,7 +10,7 @@ export type MarketQueryVariables = Types.Exact<{
}>; }>;
export type MarketQuery = { __typename?: 'Query', market?: { __typename?: 'Market', id: string, tradingMode: Types.MarketTradingMode, state: Types.MarketState, decimalPlaces: number, positionDecimalPlaces: number, data?: { __typename?: 'MarketData', auctionStart?: string | null, auctionEnd?: string | null, markPrice: string, indicativeVolume: string, indicativePrice: string, suppliedStake?: string | null, targetStake?: string | null, bestBidVolume: string, bestOfferVolume: string, bestStaticBidVolume: string, bestStaticOfferVolume: string, trigger: Types.AuctionTrigger, market: { __typename?: 'Market', id: string } } | null, tradableInstrument: { __typename?: 'TradableInstrument', instrument: { __typename?: 'Instrument', id: string, name: string, code: string, metadata: { __typename?: 'InstrumentMetadata', tags?: Array<string> | null }, product: { __typename?: 'Future', quoteName: string, oracleSpecForTradingTermination: { __typename?: 'OracleSpec', id: string }, settlementAsset: { __typename?: 'Asset', id: string, symbol: string, name: string, decimals: number } } } }, marketTimestamps: { __typename?: 'MarketTimestamps', open?: string | null, close?: string | null }, candlesConnection?: { __typename?: 'CandleDataConnection', edges?: Array<{ __typename?: 'CandleEdge', node: { __typename?: 'Candle', open: string, close: string, volume: string } } | null> | null } | null } | null }; export type MarketQuery = { __typename?: 'Query', market?: { __typename?: 'Market', id: string, tradingMode: Types.MarketTradingMode, state: Types.MarketState, decimalPlaces: number, positionDecimalPlaces: number, data?: { __typename?: 'MarketData', auctionStart?: string | null, auctionEnd?: string | null, markPrice: string, indicativeVolume: string, indicativePrice: string, suppliedStake?: string | null, targetStake?: string | null, bestBidVolume: string, bestOfferVolume: string, bestStaticBidVolume: string, bestStaticOfferVolume: string, trigger: Types.AuctionTrigger, market: { __typename?: 'Market', id: string } } | null, tradableInstrument: { __typename?: 'TradableInstrument', instrument: { __typename?: 'Instrument', id: string, name: string, code: string, metadata: { __typename?: 'InstrumentMetadata', tags?: Array<string> | null }, product: { __typename?: 'Future', quoteName: string, oracleSpecForTradingTermination: { __typename?: 'OracleSpec', id: string }, settlementAsset: { __typename?: 'Asset', id: string, symbol: string, name: string, decimals: number } } } }, marketTimestamps: { __typename?: 'MarketTimestamps', open?: string | null, close?: string | null }, candlesConnection?: { __typename?: 'CandleDataConnection', edges?: Array<{ __typename?: 'CandleEdge', node: { __typename?: 'CandleNode', open: string, close: string, volume: string } } | null> | null } | null } | null };
export const MarketDocument = gql` export const MarketDocument = gql`

View File

@ -53,9 +53,6 @@ export interface DepositPage_assetsConnection_edges_node {
export interface DepositPage_assetsConnection_edges { export interface DepositPage_assetsConnection_edges {
__typename: "AssetEdge"; __typename: "AssetEdge";
/**
* The asset information
*/
node: DepositPage_assetsConnection_edges_node; node: DepositPage_assetsConnection_edges_node;
} }

View File

@ -1,5 +1,5 @@
fragment CandleFields on Candle { fragment CandleFields on Candle {
periodStart timestamp
high high
low low
open open
@ -18,12 +18,8 @@ query Candles($marketId: ID!, $interval: Interval!, $since: String!) {
code code
} }
} }
candlesConnection(interval: $interval, since: $since) { candles(interval: $interval, since: $since) {
edges { ...CandleFields
node {
...CandleFields
}
}
} }
} }
} }

View File

@ -3,7 +3,7 @@ import { Schema as Types } from '@vegaprotocol/types';
import { gql } from '@apollo/client'; import { gql } from '@apollo/client';
import * as Apollo from '@apollo/client'; import * as Apollo from '@apollo/client';
const defaultOptions = {} as const; const defaultOptions = {} as const;
export type CandleFieldsFragment = { __typename?: 'Candle', periodStart: string, high: string, low: string, open: string, close: string, volume: string }; export type CandleFieldsFragment = { __typename?: 'Candle', timestamp: string, high: string, low: string, open: string, close: string, volume: string };
export type CandlesQueryVariables = Types.Exact<{ export type CandlesQueryVariables = Types.Exact<{
marketId: Types.Scalars['ID']; marketId: Types.Scalars['ID'];
@ -12,7 +12,7 @@ export type CandlesQueryVariables = Types.Exact<{
}>; }>;
export type CandlesQuery = { __typename?: 'Query', market?: { __typename?: 'Market', id: string, decimalPlaces: number, tradableInstrument: { __typename?: 'TradableInstrument', instrument: { __typename?: 'Instrument', id: string, name: string, code: string } }, candlesConnection?: { __typename?: 'CandleDataConnection', edges?: Array<{ __typename?: 'CandleEdge', node: { __typename?: 'Candle', periodStart: string, high: string, low: string, open: string, close: string, volume: string } } | null> | null } | null } | null }; export type CandlesQuery = { __typename?: 'Query', market?: { __typename?: 'Market', id: string, decimalPlaces: number, tradableInstrument: { __typename?: 'TradableInstrument', instrument: { __typename?: 'Instrument', id: string, name: string, code: string } }, candles?: Array<{ __typename?: 'Candle', timestamp: string, high: string, low: string, open: string, close: string, volume: string } | null> | null } | null };
export type CandlesEventsSubscriptionVariables = Types.Exact<{ export type CandlesEventsSubscriptionVariables = Types.Exact<{
marketId: Types.Scalars['ID']; marketId: Types.Scalars['ID'];
@ -20,11 +20,11 @@ export type CandlesEventsSubscriptionVariables = Types.Exact<{
}>; }>;
export type CandlesEventsSubscription = { __typename?: 'Subscription', candles: { __typename?: 'Candle', periodStart: string, high: string, low: string, open: string, close: string, volume: string } }; export type CandlesEventsSubscription = { __typename?: 'Subscription', candles: { __typename?: 'Candle', timestamp: string, high: string, low: string, open: string, close: string, volume: string } };
export const CandleFieldsFragmentDoc = gql` export const CandleFieldsFragmentDoc = gql`
fragment CandleFields on Candle { fragment CandleFields on Candle {
periodStart timestamp
high high
low low
open open
@ -44,12 +44,8 @@ export const CandlesDocument = gql`
code code
} }
} }
candlesConnection(interval: $interval, since: $since) { candles(interval: $interval, since: $since) {
edges { ...CandleFields
node {
...CandleFields
}
}
} }
} }
} }

View File

@ -143,13 +143,12 @@ export class VegaDataSource implements DataSource {
fetchPolicy: 'no-cache', fetchPolicy: 'no-cache',
}); });
if (data?.market?.candlesConnection?.edges) { if (data && data.market && data.market.candles) {
const decimalPlaces = data.market.decimalPlaces; const decimalPlaces = data.market.decimalPlaces;
const candles = data.market.candlesConnection.edges const candles = data.market.candles
.map((edge) => edge?.node) .filter((d): d is CandleFieldsFragment => d !== null)
.filter((node): node is CandleFieldsFragment => !!node) .map((d) => parseCandle(d, decimalPlaces));
.map((node) => parseCandle(node, decimalPlaces));
return candles; return candles;
} else { } else {
@ -200,7 +199,7 @@ function parseCandle(
decimalPlaces: number decimalPlaces: number
): Candle { ): Candle {
return { return {
date: new Date(Number(candle.periodStart) / 1_000_000), date: new Date(Number(candle.timestamp) / 1_000_000),
high: Number(addDecimal(candle.high, decimalPlaces)), high: Number(addDecimal(candle.high, decimalPlaces)),
low: Number(addDecimal(candle.low, decimalPlaces)), low: Number(addDecimal(candle.low, decimalPlaces)),
open: Number(addDecimal(candle.open, decimalPlaces)), open: Number(addDecimal(candle.open, decimalPlaces)),

View File

@ -84,7 +84,7 @@ export interface DealTicketQuery_market {
*/ */
id: string; id: string;
/** /**
* The number of decimal places that an integer must be shifted by in order to get a correct * decimalPlaces indicates the number of decimal places that an integer must be shifted by in order to get a correct
* number denominated in the currency of the market. (uint64) * number denominated in the currency of the market. (uint64)
* *
* Examples: * Examples:
@ -101,7 +101,7 @@ export interface DealTicketQuery_market {
*/ */
decimalPlaces: number; decimalPlaces: number;
/** /**
* The number of decimal places that an integer must be shifted in order to get a correct size (uint64). * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64).
* i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes.
* 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market.
* This sets how big the smallest order / position on the market can be. * This sets how big the smallest order / position on the market can be.

View File

@ -34,7 +34,7 @@ export type DepositEvent_busEvents_event = DepositEvent_busEvents_event_TimeUpda
export interface DepositEvent_busEvents { export interface DepositEvent_busEvents {
__typename: "BusEvent"; __typename: "BusEvent";
/** /**
* The payload - the wrapped event * the payload - the wrapped event
*/ */
event: DepositEvent_busEvents_event; event: DepositEvent_busEvents_event;
} }

View File

@ -66,7 +66,7 @@ export type DepositEventSub_busEvents_event = DepositEventSub_busEvents_event_Ti
export interface DepositEventSub_busEvents { export interface DepositEventSub_busEvents {
__typename: "BusEvent"; __typename: "BusEvent";
/** /**
* The payload - the wrapped event * the payload - the wrapped event
*/ */
event: DepositEventSub_busEvents_event; event: DepositEventSub_busEvents_event;
} }

View File

@ -10,7 +10,7 @@
export interface BlockTime_busEvents { export interface BlockTime_busEvents {
__typename: "BusEvent"; __typename: "BusEvent";
/** /**
* The ID for this event * the ID for this event
*/ */
id: string; id: string;
} }

View File

@ -21,7 +21,7 @@ export interface Statistics_statistics {
export interface Statistics { export interface Statistics {
/** /**
* Get statistics about the Vega node * get statistics about the Vega node
*/ */
statistics: Statistics_statistics; statistics: Statistics_statistics;
} }

View File

@ -84,7 +84,7 @@ export interface Fills_party_tradesConnection_edges_node {
*/ */
price: string; price: string;
/** /**
* The number of units traded, will always be <= the remaining size of both orders immediately before the trade (uint64) * The number of contracts trades, will always be <= the remaining size of both orders immediately before the trade (uint64)
*/ */
size: string; size: string;
/** /**
@ -119,33 +119,15 @@ export interface Fills_party_tradesConnection_edges_node {
export interface Fills_party_tradesConnection_edges { export interface Fills_party_tradesConnection_edges {
__typename: "TradeEdge"; __typename: "TradeEdge";
/**
* The trade
*/
node: Fills_party_tradesConnection_edges_node; node: Fills_party_tradesConnection_edges_node;
/**
* The cursor for this trade
*/
cursor: string; cursor: string;
} }
export interface Fills_party_tradesConnection_pageInfo { export interface Fills_party_tradesConnection_pageInfo {
__typename: "PageInfo"; __typename: "PageInfo";
/**
* The first cursor in the current page
*/
startCursor: string; startCursor: string;
/**
* The last cursor in the current page
*/
endCursor: string; endCursor: string;
/**
* The connection has more pages to fetch when traversing forward through the connection
*/
hasNextPage: boolean; hasNextPage: boolean;
/**
* The connection has more pages to fetch when traversing backward through the connection
*/
hasPreviousPage: boolean; hasPreviousPage: boolean;
} }

View File

@ -28,7 +28,7 @@ export interface ProposalEvent_busEvents_event_Proposal {
*/ */
state: ProposalState; state: ProposalState;
/** /**
* Why the proposal was rejected by the core * Reason for the proposal to be rejected by the core
*/ */
rejectionReason: ProposalRejectionReason | null; rejectionReason: ProposalRejectionReason | null;
/** /**
@ -42,11 +42,11 @@ export type ProposalEvent_busEvents_event = ProposalEvent_busEvents_event_TimeUp
export interface ProposalEvent_busEvents { export interface ProposalEvent_busEvents {
__typename: "BusEvent"; __typename: "BusEvent";
/** /**
* The type of event * the type of event
*/ */
type: BusEventType; type: BusEventType;
/** /**
* The payload - the wrapped event * the payload - the wrapped event
*/ */
event: ProposalEvent_busEvents_event; event: ProposalEvent_busEvents_event;
} }

View File

@ -174,27 +174,27 @@ export interface MarketLiquidity_market_data_liquidityProviderFeeShare {
export interface MarketLiquidity_market_data { export interface MarketLiquidity_market_data {
__typename: "MarketData"; __typename: "MarketData";
/** /**
* Market of the associated mark price * market of the associated mark price
*/ */
market: MarketLiquidity_market_data_market; market: MarketLiquidity_market_data_market;
/** /**
* The supplied stake for the market * the supplied stake for the market
*/ */
suppliedStake: string | null; suppliedStake: string | null;
/** /**
* The sum of the size of all positions greater than 0. * the sum of the size of all positions greater than 0.
*/ */
openInterest: string; openInterest: string;
/** /**
* The amount of stake targeted for this market * the amount of stake targeted for this market
*/ */
targetStake: string | null; targetStake: string | null;
/** /**
* The market value proxy * the market value proxy
*/ */
marketValueProxy: string; marketValueProxy: string;
/** /**
* The equity like share of liquidity fee for each liquidity provider * the equity like share of liquidity fee for each liquidity provider
*/ */
liquidityProviderFeeShare: MarketLiquidity_market_data_liquidityProviderFeeShare[] | null; liquidityProviderFeeShare: MarketLiquidity_market_data_liquidityProviderFeeShare[] | null;
} }
@ -206,7 +206,7 @@ export interface MarketLiquidity_market {
*/ */
id: string; id: string;
/** /**
* The number of decimal places that an integer must be shifted by in order to get a correct * decimalPlaces indicates the number of decimal places that an integer must be shifted by in order to get a correct
* number denominated in the currency of the market. (uint64) * number denominated in the currency of the market. (uint64)
* *
* Examples: * Examples:
@ -223,7 +223,7 @@ export interface MarketLiquidity_market {
*/ */
decimalPlaces: number; decimalPlaces: number;
/** /**
* The number of decimal places that an integer must be shifted in order to get a correct size (uint64). * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64).
* i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes.
* 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market.
* This sets how big the smallest order / position on the market can be. * This sets how big the smallest order / position on the market can be.

View File

@ -10,7 +10,7 @@ export type MarketInfoQueryQueryVariables = Types.Exact<{
}>; }>;
export type MarketInfoQueryQuery = { __typename?: 'Query', market?: { __typename?: 'Market', id: string, decimalPlaces: number, positionDecimalPlaces: number, state: Types.MarketState, tradingMode: Types.MarketTradingMode, accounts?: Array<{ __typename?: 'Account', type: Types.AccountType, balance: string, asset: { __typename?: 'Asset', id: string } }> | null, fees: { __typename?: 'Fees', factors: { __typename?: 'FeeFactors', makerFee: string, infrastructureFee: string, liquidityFee: string } }, priceMonitoringSettings: { __typename?: 'PriceMonitoringSettings', parameters?: { __typename?: 'PriceMonitoringParameters', triggers?: Array<{ __typename?: 'PriceMonitoringTrigger', horizonSecs: number, probability: number, auctionExtensionSecs: number }> | null } | null }, riskFactors?: { __typename?: 'RiskFactor', market: string, short: string, long: string } | null, data?: { __typename?: 'MarketData', markPrice: string, indicativeVolume: string, bestBidVolume: string, bestOfferVolume: string, bestStaticBidVolume: string, bestStaticOfferVolume: string, openInterest: string, bestBidPrice: string, bestOfferPrice: string, trigger: Types.AuctionTrigger, market: { __typename?: 'Market', id: string }, priceMonitoringBounds?: Array<{ __typename?: 'PriceMonitoringBounds', minValidPrice: string, maxValidPrice: string, referencePrice: string, trigger: { __typename?: 'PriceMonitoringTrigger', horizonSecs: number, probability: number, auctionExtensionSecs: number } }> | null } | null, liquidityMonitoringParameters: { __typename?: 'LiquidityMonitoringParameters', triggeringRatio: number, targetStakeParameters: { __typename?: 'TargetStakeParameters', timeWindow: number, scalingFactor: number } }, candlesConnection?: { __typename?: 'CandleDataConnection', edges?: Array<{ __typename?: 'CandleEdge', node: { __typename?: 'Candle', volume: string } } | null> | null } | null, tradableInstrument: { __typename?: 'TradableInstrument', instrument: { __typename?: 'Instrument', id: string, name: string, code: string, metadata: { __typename?: 'InstrumentMetadata', tags?: Array<string> | null }, product: { __typename?: 'Future', quoteName: string, settlementAsset: { __typename?: 'Asset', id: string, symbol: string, name: string }, oracleSpecForSettlementPrice: { __typename?: 'OracleSpec', id: string }, oracleSpecForTradingTermination: { __typename?: 'OracleSpec', id: string }, oracleSpecBinding: { __typename?: 'OracleSpecToFutureBinding', settlementPriceProperty: string, tradingTerminationProperty: string } } }, riskModel: { __typename?: 'LogNormalRiskModel', tau: number, riskAversionParameter: number, params: { __typename?: 'LogNormalModelParams', r: number, sigma: number, mu: number } } | { __typename?: 'SimpleRiskModel', params: { __typename?: 'SimpleRiskModelParams', factorLong: number, factorShort: number } } }, depth: { __typename?: 'MarketDepth', lastTrade?: { __typename?: 'Trade', price: string } | null } } | null }; export type MarketInfoQueryQuery = { __typename?: 'Query', market?: { __typename?: 'Market', id: string, decimalPlaces: number, positionDecimalPlaces: number, state: Types.MarketState, tradingMode: Types.MarketTradingMode, accounts?: Array<{ __typename?: 'Account', type: Types.AccountType, balance: string, asset: { __typename?: 'Asset', id: string } }> | null, fees: { __typename?: 'Fees', factors: { __typename?: 'FeeFactors', makerFee: string, infrastructureFee: string, liquidityFee: string } }, priceMonitoringSettings: { __typename?: 'PriceMonitoringSettings', parameters?: { __typename?: 'PriceMonitoringParameters', triggers?: Array<{ __typename?: 'PriceMonitoringTrigger', horizonSecs: number, probability: number, auctionExtensionSecs: number }> | null } | null }, riskFactors?: { __typename?: 'RiskFactor', market: string, short: string, long: string } | null, data?: { __typename?: 'MarketData', markPrice: string, indicativeVolume: string, bestBidVolume: string, bestOfferVolume: string, bestStaticBidVolume: string, bestStaticOfferVolume: string, openInterest: string, bestBidPrice: string, bestOfferPrice: string, trigger: Types.AuctionTrigger, market: { __typename?: 'Market', id: string }, priceMonitoringBounds?: Array<{ __typename?: 'PriceMonitoringBounds', minValidPrice: string, maxValidPrice: string, referencePrice: string, trigger: { __typename?: 'PriceMonitoringTrigger', horizonSecs: number, probability: number, auctionExtensionSecs: number } }> | null } | null, liquidityMonitoringParameters: { __typename?: 'LiquidityMonitoringParameters', triggeringRatio: number, targetStakeParameters: { __typename?: 'TargetStakeParameters', timeWindow: number, scalingFactor: number } }, candlesConnection?: { __typename?: 'CandleDataConnection', edges?: Array<{ __typename?: 'CandleEdge', node: { __typename?: 'CandleNode', volume: string } } | null> | null } | null, tradableInstrument: { __typename?: 'TradableInstrument', instrument: { __typename?: 'Instrument', id: string, name: string, code: string, metadata: { __typename?: 'InstrumentMetadata', tags?: Array<string> | null }, product: { __typename?: 'Future', quoteName: string, settlementAsset: { __typename?: 'Asset', id: string, symbol: string, name: string }, oracleSpecForSettlementPrice: { __typename?: 'OracleSpec', id: string }, oracleSpecForTradingTermination: { __typename?: 'OracleSpec', id: string }, oracleSpecBinding: { __typename?: 'OracleSpecToFutureBinding', settlementPriceProperty: string, tradingTerminationProperty: string } } }, riskModel: { __typename?: 'LogNormalRiskModel', tau: number, riskAversionParameter: number, params: { __typename?: 'LogNormalModelParams', r: number, sigma: number, mu: number } } | { __typename?: 'SimpleRiskModel', params: { __typename?: 'SimpleRiskModelParams', factorLong: number, factorShort: number } } }, depth: { __typename?: 'MarketDepth', lastTrade?: { __typename?: 'Trade', price: string } | null } } | null };
export const MarketInfoQueryDocument = gql` export const MarketInfoQueryDocument = gql`

View File

@ -168,59 +168,59 @@ export interface MarketInfoQuery_market_data_priceMonitoringBounds {
export interface MarketInfoQuery_market_data { export interface MarketInfoQuery_market_data {
__typename: "MarketData"; __typename: "MarketData";
/** /**
* Market of the associated mark price * market of the associated mark price
*/ */
market: MarketInfoQuery_market_data_market; market: MarketInfoQuery_market_data_market;
/** /**
* The mark price (an unsigned integer) * the mark price (an unsigned integer)
*/ */
markPrice: string; markPrice: string;
/** /**
* The aggregated volume being bid at the best bid price. * the aggregated volume being bid at the best bid price.
*/ */
bestBidVolume: string; bestBidVolume: string;
/** /**
* The aggregated volume being offered at the best offer price. * the aggregated volume being offered at the best offer price.
*/ */
bestOfferVolume: string; bestOfferVolume: string;
/** /**
* The aggregated volume being offered at the best static bid price, excluding pegged orders * the aggregated volume being offered at the best static bid price, excluding pegged orders
*/ */
bestStaticBidVolume: string; bestStaticBidVolume: string;
/** /**
* The aggregated volume being offered at the best static offer price, excluding pegged orders. * the aggregated volume being offered at the best static offer price, excluding pegged orders.
*/ */
bestStaticOfferVolume: string; bestStaticOfferVolume: string;
/** /**
* The highest price level on an order book for buy orders. * the highest price level on an order book for buy orders.
*/ */
bestBidPrice: string; bestBidPrice: string;
/** /**
* The lowest price level on an order book for offer orders. * the lowest price level on an order book for offer orders.
*/ */
bestOfferPrice: string; bestOfferPrice: string;
/** /**
* What triggered an auction (if an auction was started) * what triggered an auction (if an auction was started)
*/ */
trigger: AuctionTrigger; trigger: AuctionTrigger;
/** /**
* The sum of the size of all positions greater than 0. * the sum of the size of all positions greater than 0.
*/ */
openInterest: string; openInterest: string;
/** /**
* The supplied stake for the market * the supplied stake for the market
*/ */
suppliedStake: string | null; suppliedStake: string | null;
/** /**
* The amount of stake targeted for this market * the amount of stake targeted for this market
*/ */
targetStake: string | null; targetStake: string | null;
/** /**
* The market value proxy * the market value proxy
*/ */
marketValueProxy: string; marketValueProxy: string;
/** /**
* A list of valid price ranges per associated trigger * a list of valid price ranges per associated trigger
*/ */
priceMonitoringBounds: MarketInfoQuery_market_data_priceMonitoringBounds[] | null; priceMonitoringBounds: MarketInfoQuery_market_data_priceMonitoringBounds[] | null;
} }
@ -250,7 +250,7 @@ export interface MarketInfoQuery_market_liquidityMonitoringParameters {
} }
export interface MarketInfoQuery_market_candlesConnection_edges_node { export interface MarketInfoQuery_market_candlesConnection_edges_node {
__typename: "Candle"; __typename: "CandleNode";
/** /**
* Volume price (uint64) * Volume price (uint64)
*/ */
@ -259,9 +259,6 @@ export interface MarketInfoQuery_market_candlesConnection_edges_node {
export interface MarketInfoQuery_market_candlesConnection_edges { export interface MarketInfoQuery_market_candlesConnection_edges {
__typename: "CandleEdge"; __typename: "CandleEdge";
/**
* The candle
*/
node: MarketInfoQuery_market_candlesConnection_edges_node; node: MarketInfoQuery_market_candlesConnection_edges_node;
} }
@ -374,15 +371,15 @@ export interface MarketInfoQuery_market_tradableInstrument_instrument {
export interface MarketInfoQuery_market_tradableInstrument_riskModel_LogNormalRiskModel_params { export interface MarketInfoQuery_market_tradableInstrument_riskModel_LogNormalRiskModel_params {
__typename: "LogNormalModelParams"; __typename: "LogNormalModelParams";
/** /**
* R parameter * r parameter
*/ */
r: number; r: number;
/** /**
* Sigma parameter, annualised volatility of the underlying asset, must be a strictly non-negative real number * sigma parameter, annualised volatility of the underlying asset, must be a strictly non-negative real number
*/ */
sigma: number; sigma: number;
/** /**
* Mu parameter, annualised growth rate of the underlying asset * mu parameter, annualised growth rate of the underlying asset
*/ */
mu: number; mu: number;
} }
@ -460,7 +457,7 @@ export interface MarketInfoQuery_market {
*/ */
id: string; id: string;
/** /**
* The number of decimal places that an integer must be shifted by in order to get a correct * decimalPlaces indicates the number of decimal places that an integer must be shifted by in order to get a correct
* number denominated in the currency of the market. (uint64) * number denominated in the currency of the market. (uint64)
* *
* Examples: * Examples:
@ -477,7 +474,7 @@ export interface MarketInfoQuery_market {
*/ */
decimalPlaces: number; decimalPlaces: number;
/** /**
* The number of decimal places that an integer must be shifted in order to get a correct size (uint64). * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64).
* i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes.
* 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market.
* This sets how big the smallest order / position on the market can be. * This sets how big the smallest order / position on the market can be.

View File

@ -10,7 +10,7 @@ import { Interval } from "@vegaprotocol/types";
// ==================================================== // ====================================================
export interface MarketCandlesQuery_marketsConnection_edges_node_candlesConnection_edges_node { export interface MarketCandlesQuery_marketsConnection_edges_node_candlesConnection_edges_node {
__typename: "Candle"; __typename: "CandleNode";
/** /**
* High price (uint64) * High price (uint64)
*/ */
@ -35,9 +35,6 @@ export interface MarketCandlesQuery_marketsConnection_edges_node_candlesConnecti
export interface MarketCandlesQuery_marketsConnection_edges_node_candlesConnection_edges { export interface MarketCandlesQuery_marketsConnection_edges_node_candlesConnection_edges {
__typename: "CandleEdge"; __typename: "CandleEdge";
/**
* The candle
*/
node: MarketCandlesQuery_marketsConnection_edges_node_candlesConnection_edges_node; node: MarketCandlesQuery_marketsConnection_edges_node_candlesConnection_edges_node;
} }
@ -59,9 +56,6 @@ export interface MarketCandlesQuery_marketsConnection_edges_node {
export interface MarketCandlesQuery_marketsConnection_edges { export interface MarketCandlesQuery_marketsConnection_edges {
__typename: "MarketEdge"; __typename: "MarketEdge";
/**
* The market
*/
node: MarketCandlesQuery_marketsConnection_edges_node; node: MarketCandlesQuery_marketsConnection_edges_node;
} }
@ -74,9 +68,6 @@ export interface MarketCandlesQuery_marketsConnection {
} }
export interface MarketCandlesQuery { export interface MarketCandlesQuery {
/**
* One or more instruments that are trading on the Vega network
*/
marketsConnection: MarketCandlesQuery_marketsConnection | null; marketsConnection: MarketCandlesQuery_marketsConnection | null;
} }

View File

@ -20,47 +20,47 @@ export interface MarketDataQuery_marketsConnection_edges_node_data_market {
export interface MarketDataQuery_marketsConnection_edges_node_data { export interface MarketDataQuery_marketsConnection_edges_node_data {
__typename: "MarketData"; __typename: "MarketData";
/** /**
* Market of the associated mark price * market of the associated mark price
*/ */
market: MarketDataQuery_marketsConnection_edges_node_data_market; market: MarketDataQuery_marketsConnection_edges_node_data_market;
/** /**
* The highest price level on an order book for buy orders. * the highest price level on an order book for buy orders.
*/ */
bestBidPrice: string; bestBidPrice: string;
/** /**
* The lowest price level on an order book for offer orders. * the lowest price level on an order book for offer orders.
*/ */
bestOfferPrice: string; bestOfferPrice: string;
/** /**
* The mark price (an unsigned integer) * the mark price (an unsigned integer)
*/ */
markPrice: string; markPrice: string;
/** /**
* What triggered an auction (if an auction was started) * what triggered an auction (if an auction was started)
*/ */
trigger: AuctionTrigger; trigger: AuctionTrigger;
/** /**
* The arithmetic average of the best static bid price and best static offer price * the arithmetic average of the best static bid price and best static offer price
*/ */
staticMidPrice: string; staticMidPrice: string;
/** /**
* What mode the market is in (auction, continuous, etc) * what mode the market is in (auction, continuous, etc)
*/ */
marketTradingMode: MarketTradingMode; marketTradingMode: MarketTradingMode;
/** /**
* Indicative volume if the auction ended now, 0 if not in auction mode * indicative volume if the auction ended now, 0 if not in auction mode
*/ */
indicativeVolume: string; indicativeVolume: string;
/** /**
* Indicative price if the auction ended now, 0 if not in auction mode * indicative price if the auction ended now, 0 if not in auction mode
*/ */
indicativePrice: string; indicativePrice: string;
/** /**
* The highest price level on an order book for buy orders not including pegged orders. * the highest price level on an order book for buy orders not including pegged orders.
*/ */
bestStaticBidPrice: string; bestStaticBidPrice: string;
/** /**
* The lowest price level on an order book for offer orders not including pegged orders. * the lowest price level on an order book for offer orders not including pegged orders.
*/ */
bestStaticOfferPrice: string; bestStaticOfferPrice: string;
} }
@ -75,9 +75,6 @@ export interface MarketDataQuery_marketsConnection_edges_node {
export interface MarketDataQuery_marketsConnection_edges { export interface MarketDataQuery_marketsConnection_edges {
__typename: "MarketEdge"; __typename: "MarketEdge";
/**
* The market
*/
node: MarketDataQuery_marketsConnection_edges_node; node: MarketDataQuery_marketsConnection_edges_node;
} }
@ -90,9 +87,6 @@ export interface MarketDataQuery_marketsConnection {
} }
export interface MarketDataQuery { export interface MarketDataQuery {
/**
* One or more instruments that are trading on the Vega network
*/
marketsConnection: MarketDataQuery_marketsConnection | null; marketsConnection: MarketDataQuery_marketsConnection | null;
} }

View File

@ -12,47 +12,47 @@ import { AuctionTrigger, MarketTradingMode } from "@vegaprotocol/types";
export interface MarketDataSub_marketsData { export interface MarketDataSub_marketsData {
__typename: "ObservableMarketData"; __typename: "ObservableMarketData";
/** /**
* Market ID of the associated mark price * market ID of the associated mark price
*/ */
marketId: string; marketId: string;
/** /**
* The highest price level on an order book for buy orders. * the highest price level on an order book for buy orders.
*/ */
bestBidPrice: string; bestBidPrice: string;
/** /**
* The lowest price level on an order book for offer orders. * the lowest price level on an order book for offer orders.
*/ */
bestOfferPrice: string; bestOfferPrice: string;
/** /**
* The mark price (an unsigned integer) * the mark price (an unsigned integer)
*/ */
markPrice: string; markPrice: string;
/** /**
* What triggered an auction (if an auction was started) * what triggered an auction (if an auction was started)
*/ */
trigger: AuctionTrigger; trigger: AuctionTrigger;
/** /**
* The arithmetic average of the best static bid price and best static offer price * the arithmetic average of the best static bid price and best static offer price
*/ */
staticMidPrice: string; staticMidPrice: string;
/** /**
* What mode the market is in (auction, continuous etc) * what mode the market is in (auction, continuous etc)
*/ */
marketTradingMode: MarketTradingMode; marketTradingMode: MarketTradingMode;
/** /**
* Indicative volume if the auction ended now, 0 if not in auction mode * indicative volume if the auction ended now, 0 if not in auction mode
*/ */
indicativeVolume: string; indicativeVolume: string;
/** /**
* Indicative price if the auction ended now, 0 if not in auction mode * indicative price if the auction ended now, 0 if not in auction mode
*/ */
indicativePrice: string; indicativePrice: string;
/** /**
* The highest price level on an order book for buy orders not including pegged orders. * the highest price level on an order book for buy orders not including pegged orders.
*/ */
bestStaticBidPrice: string; bestStaticBidPrice: string;
/** /**
* The lowest price level on an order book for offer orders not including pegged orders * the lowest price level on an order book for offer orders not including pegged orders
*/ */
bestStaticOfferPrice: string; bestStaticOfferPrice: string;
} }

View File

@ -116,7 +116,7 @@ export interface MarketFields {
*/ */
id: string; id: string;
/** /**
* The number of decimal places that an integer must be shifted by in order to get a correct * decimalPlaces indicates the number of decimal places that an integer must be shifted by in order to get a correct
* number denominated in the currency of the market. (uint64) * number denominated in the currency of the market. (uint64)
* *
* Examples: * Examples:
@ -133,7 +133,7 @@ export interface MarketFields {
*/ */
decimalPlaces: number; decimalPlaces: number;
/** /**
* The number of decimal places that an integer must be shifted in order to get a correct size (uint64). * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64).
* i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes.
* 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market.
* This sets how big the smallest order / position on the market can be. * This sets how big the smallest order / position on the market can be.
@ -156,7 +156,7 @@ export interface MarketFields {
*/ */
tradableInstrument: MarketFields_tradableInstrument; tradableInstrument: MarketFields_tradableInstrument;
/** /**
* Timestamps for state changes in the market * timestamps for state changes in the market
*/ */
marketTimestamps: MarketFields_marketTimestamps; marketTimestamps: MarketFields_marketTimestamps;
} }

View File

@ -116,7 +116,7 @@ export interface Markets_marketsConnection_edges_node {
*/ */
id: string; id: string;
/** /**
* The number of decimal places that an integer must be shifted by in order to get a correct * decimalPlaces indicates the number of decimal places that an integer must be shifted by in order to get a correct
* number denominated in the currency of the market. (uint64) * number denominated in the currency of the market. (uint64)
* *
* Examples: * Examples:
@ -133,7 +133,7 @@ export interface Markets_marketsConnection_edges_node {
*/ */
decimalPlaces: number; decimalPlaces: number;
/** /**
* The number of decimal places that an integer must be shifted in order to get a correct size (uint64). * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64).
* i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes.
* 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market.
* This sets how big the smallest order / position on the market can be. * This sets how big the smallest order / position on the market can be.
@ -156,16 +156,13 @@ export interface Markets_marketsConnection_edges_node {
*/ */
tradableInstrument: Markets_marketsConnection_edges_node_tradableInstrument; tradableInstrument: Markets_marketsConnection_edges_node_tradableInstrument;
/** /**
* Timestamps for state changes in the market * timestamps for state changes in the market
*/ */
marketTimestamps: Markets_marketsConnection_edges_node_marketTimestamps; marketTimestamps: Markets_marketsConnection_edges_node_marketTimestamps;
} }
export interface Markets_marketsConnection_edges { export interface Markets_marketsConnection_edges {
__typename: "MarketEdge"; __typename: "MarketEdge";
/**
* The market
*/
node: Markets_marketsConnection_edges_node; node: Markets_marketsConnection_edges_node;
} }
@ -178,8 +175,5 @@ export interface Markets_marketsConnection {
} }
export interface Markets { export interface Markets {
/**
* One or more instruments that are trading on the Vega network
*/
marketsConnection: Markets_marketsConnection | null; marketsConnection: Markets_marketsConnection | null;
} }

View File

@ -10,7 +10,7 @@ import { Interval } from "@vegaprotocol/types";
// ==================================================== // ====================================================
export interface MarketsCandlesQuery_marketsConnection_edges_node_candlesConnection_edges_node { export interface MarketsCandlesQuery_marketsConnection_edges_node_candlesConnection_edges_node {
__typename: "Candle"; __typename: "CandleNode";
/** /**
* High price (uint64) * High price (uint64)
*/ */
@ -35,9 +35,6 @@ export interface MarketsCandlesQuery_marketsConnection_edges_node_candlesConnect
export interface MarketsCandlesQuery_marketsConnection_edges_node_candlesConnection_edges { export interface MarketsCandlesQuery_marketsConnection_edges_node_candlesConnection_edges {
__typename: "CandleEdge"; __typename: "CandleEdge";
/**
* The candle
*/
node: MarketsCandlesQuery_marketsConnection_edges_node_candlesConnection_edges_node; node: MarketsCandlesQuery_marketsConnection_edges_node_candlesConnection_edges_node;
} }
@ -63,9 +60,6 @@ export interface MarketsCandlesQuery_marketsConnection_edges_node {
export interface MarketsCandlesQuery_marketsConnection_edges { export interface MarketsCandlesQuery_marketsConnection_edges {
__typename: "MarketEdge"; __typename: "MarketEdge";
/**
* The market
*/
node: MarketsCandlesQuery_marketsConnection_edges_node; node: MarketsCandlesQuery_marketsConnection_edges_node;
} }
@ -78,9 +72,6 @@ export interface MarketsCandlesQuery_marketsConnection {
} }
export interface MarketsCandlesQuery { export interface MarketsCandlesQuery {
/**
* One or more instruments that are trading on the Vega network
*/
marketsConnection: MarketsCandlesQuery_marketsConnection | null; marketsConnection: MarketsCandlesQuery_marketsConnection | null;
} }

View File

@ -20,47 +20,47 @@ export interface MarketsDataQuery_marketsConnection_edges_node_data_market {
export interface MarketsDataQuery_marketsConnection_edges_node_data { export interface MarketsDataQuery_marketsConnection_edges_node_data {
__typename: "MarketData"; __typename: "MarketData";
/** /**
* Market of the associated mark price * market of the associated mark price
*/ */
market: MarketsDataQuery_marketsConnection_edges_node_data_market; market: MarketsDataQuery_marketsConnection_edges_node_data_market;
/** /**
* The highest price level on an order book for buy orders. * the highest price level on an order book for buy orders.
*/ */
bestBidPrice: string; bestBidPrice: string;
/** /**
* The lowest price level on an order book for offer orders. * the lowest price level on an order book for offer orders.
*/ */
bestOfferPrice: string; bestOfferPrice: string;
/** /**
* The mark price (an unsigned integer) * the mark price (an unsigned integer)
*/ */
markPrice: string; markPrice: string;
/** /**
* What triggered an auction (if an auction was started) * what triggered an auction (if an auction was started)
*/ */
trigger: AuctionTrigger; trigger: AuctionTrigger;
/** /**
* The arithmetic average of the best static bid price and best static offer price * the arithmetic average of the best static bid price and best static offer price
*/ */
staticMidPrice: string; staticMidPrice: string;
/** /**
* What mode the market is in (auction, continuous, etc) * what mode the market is in (auction, continuous, etc)
*/ */
marketTradingMode: MarketTradingMode; marketTradingMode: MarketTradingMode;
/** /**
* Indicative volume if the auction ended now, 0 if not in auction mode * indicative volume if the auction ended now, 0 if not in auction mode
*/ */
indicativeVolume: string; indicativeVolume: string;
/** /**
* Indicative price if the auction ended now, 0 if not in auction mode * indicative price if the auction ended now, 0 if not in auction mode
*/ */
indicativePrice: string; indicativePrice: string;
/** /**
* The highest price level on an order book for buy orders not including pegged orders. * the highest price level on an order book for buy orders not including pegged orders.
*/ */
bestStaticBidPrice: string; bestStaticBidPrice: string;
/** /**
* The lowest price level on an order book for offer orders not including pegged orders. * the lowest price level on an order book for offer orders not including pegged orders.
*/ */
bestStaticOfferPrice: string; bestStaticOfferPrice: string;
} }
@ -75,9 +75,6 @@ export interface MarketsDataQuery_marketsConnection_edges_node {
export interface MarketsDataQuery_marketsConnection_edges { export interface MarketsDataQuery_marketsConnection_edges {
__typename: "MarketEdge"; __typename: "MarketEdge";
/**
* The market
*/
node: MarketsDataQuery_marketsConnection_edges_node; node: MarketsDataQuery_marketsConnection_edges_node;
} }
@ -90,8 +87,5 @@ export interface MarketsDataQuery_marketsConnection {
} }
export interface MarketsDataQuery { export interface MarketsDataQuery {
/**
* One or more instruments that are trading on the Vega network
*/
marketsConnection: MarketsDataQuery_marketsConnection | null; marketsConnection: MarketsDataQuery_marketsConnection | null;
} }

View File

@ -54,7 +54,7 @@ const update = (data: Candle[], delta: MarketCandlesSub_candles) => {
...data, ...data,
{ {
...delta, ...delta,
__typename: 'Candle', __typename: 'CandleNode',
} as Candle, } as Candle,
] ]
: data; : data;

View File

@ -85,11 +85,11 @@ export interface NetworkStats_statistics {
export interface NetworkStats { export interface NetworkStats {
/** /**
* Returns information about nodes * returns information about nodes
*/ */
nodeData: NetworkStats_nodeData | null; nodeData: NetworkStats_nodeData | null;
/** /**
* Get statistics about the Vega node * get statistics about the Vega node
*/ */
statistics: NetworkStats_statistics; statistics: NetworkStats_statistics;
} }

View File

@ -75,33 +75,15 @@ export interface Orders_party_ordersConnection_edges_node {
export interface Orders_party_ordersConnection_edges { export interface Orders_party_ordersConnection_edges {
__typename: "OrderEdge"; __typename: "OrderEdge";
/**
* The order
*/
node: Orders_party_ordersConnection_edges_node; node: Orders_party_ordersConnection_edges_node;
/**
* The cursor for this order
*/
cursor: string | null; cursor: string | null;
} }
export interface Orders_party_ordersConnection_pageInfo { export interface Orders_party_ordersConnection_pageInfo {
__typename: "PageInfo"; __typename: "PageInfo";
/**
* The first cursor in the current page
*/
startCursor: string; startCursor: string;
/**
* The last cursor in the current page
*/
endCursor: string; endCursor: string;
/**
* The connection has more pages to fetch when traversing forward through the connection
*/
hasNextPage: boolean; hasNextPage: boolean;
/**
* The connection has more pages to fetch when traversing backward through the connection
*/
hasPreviousPage: boolean; hasPreviousPage: boolean;
} }

View File

@ -40,7 +40,7 @@ export interface OrderEvent_busEvents_event_Order_market {
*/ */
tradableInstrument: OrderEvent_busEvents_event_Order_market_tradableInstrument; tradableInstrument: OrderEvent_busEvents_event_Order_market_tradableInstrument;
/** /**
* The number of decimal places that an integer must be shifted by in order to get a correct * decimalPlaces indicates the number of decimal places that an integer must be shifted by in order to get a correct
* number denominated in the currency of the market. (uint64) * number denominated in the currency of the market. (uint64)
* *
* Examples: * Examples:
@ -57,7 +57,7 @@ export interface OrderEvent_busEvents_event_Order_market {
*/ */
decimalPlaces: number; decimalPlaces: number;
/** /**
* The number of decimal places that an integer must be shifted in order to get a correct size (uint64). * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64).
* i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes.
* 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market.
* This sets how big the smallest order / position on the market can be. * This sets how big the smallest order / position on the market can be.
@ -118,11 +118,11 @@ export type OrderEvent_busEvents_event = OrderEvent_busEvents_event_TimeUpdate |
export interface OrderEvent_busEvents { export interface OrderEvent_busEvents {
__typename: "BusEvent"; __typename: "BusEvent";
/** /**
* The type of event * the type of event
*/ */
type: BusEventType; type: BusEventType;
/** /**
* The payload - the wrapped event * the payload - the wrapped event
*/ */
event: OrderEvent_busEvents_event; event: OrderEvent_busEvents_event;
} }

View File

@ -28,19 +28,19 @@ export interface PositionFields_marginsConnection_edges_node_asset {
export interface PositionFields_marginsConnection_edges_node { export interface PositionFields_marginsConnection_edges_node {
__typename: "MarginLevels"; __typename: "MarginLevels";
/** /**
* Market in which the margin is required for this party * market in which the margin is required for this party
*/ */
market: PositionFields_marginsConnection_edges_node_market; market: PositionFields_marginsConnection_edges_node_market;
/** /**
* Minimal margin for the position to be maintained in the network (unsigned integer) * minimal margin for the position to be maintained in the network (unsigned integer)
*/ */
maintenanceLevel: string; maintenanceLevel: string;
/** /**
* If the margin is between maintenance and search, the network will initiate a collateral search (unsigned integer) * if the margin is between maintenance and search, the network will initiate a collateral search (unsigned integer)
*/ */
searchLevel: string; searchLevel: string;
/** /**
* This is the minimum margin required for a party to place a new order on the network (unsigned integer) * this is the minimum margin required for a party to place a new order on the network (unsigned integer)
*/ */
initialLevel: string; initialLevel: string;
/** /**
@ -49,7 +49,7 @@ export interface PositionFields_marginsConnection_edges_node {
*/ */
collateralReleaseLevel: string; collateralReleaseLevel: string;
/** /**
* Asset for the current margins * asset for the current margins
*/ */
asset: PositionFields_marginsConnection_edges_node_asset; asset: PositionFields_marginsConnection_edges_node_asset;
} }
@ -94,11 +94,11 @@ export interface PositionFields_market_data_market {
export interface PositionFields_market_data { export interface PositionFields_market_data {
__typename: "MarketData"; __typename: "MarketData";
/** /**
* The mark price (an unsigned integer) * the mark price (an unsigned integer)
*/ */
markPrice: string; markPrice: string;
/** /**
* Market of the associated mark price * market of the associated mark price
*/ */
market: PositionFields_market_data_market; market: PositionFields_market_data_market;
} }
@ -110,7 +110,7 @@ export interface PositionFields_market {
*/ */
id: string; id: string;
/** /**
* The number of decimal places that an integer must be shifted by in order to get a correct * decimalPlaces indicates the number of decimal places that an integer must be shifted by in order to get a correct
* number denominated in the currency of the market. (uint64) * number denominated in the currency of the market. (uint64)
* *
* Examples: * Examples:
@ -127,7 +127,7 @@ export interface PositionFields_market {
*/ */
decimalPlaces: number; decimalPlaces: number;
/** /**
* The number of decimal places that an integer must be shifted in order to get a correct size (uint64). * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64).
* i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes.
* 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market.
* This sets how big the smallest order / position on the market can be. * This sets how big the smallest order / position on the market can be.

View File

@ -28,19 +28,19 @@ export interface Positions_party_positionsConnection_edges_node_marginsConnectio
export interface Positions_party_positionsConnection_edges_node_marginsConnection_edges_node { export interface Positions_party_positionsConnection_edges_node_marginsConnection_edges_node {
__typename: "MarginLevels"; __typename: "MarginLevels";
/** /**
* Market in which the margin is required for this party * market in which the margin is required for this party
*/ */
market: Positions_party_positionsConnection_edges_node_marginsConnection_edges_node_market; market: Positions_party_positionsConnection_edges_node_marginsConnection_edges_node_market;
/** /**
* Minimal margin for the position to be maintained in the network (unsigned integer) * minimal margin for the position to be maintained in the network (unsigned integer)
*/ */
maintenanceLevel: string; maintenanceLevel: string;
/** /**
* If the margin is between maintenance and search, the network will initiate a collateral search (unsigned integer) * if the margin is between maintenance and search, the network will initiate a collateral search (unsigned integer)
*/ */
searchLevel: string; searchLevel: string;
/** /**
* This is the minimum margin required for a party to place a new order on the network (unsigned integer) * this is the minimum margin required for a party to place a new order on the network (unsigned integer)
*/ */
initialLevel: string; initialLevel: string;
/** /**
@ -49,7 +49,7 @@ export interface Positions_party_positionsConnection_edges_node_marginsConnectio
*/ */
collateralReleaseLevel: string; collateralReleaseLevel: string;
/** /**
* Asset for the current margins * asset for the current margins
*/ */
asset: Positions_party_positionsConnection_edges_node_marginsConnection_edges_node_asset; asset: Positions_party_positionsConnection_edges_node_marginsConnection_edges_node_asset;
} }
@ -94,11 +94,11 @@ export interface Positions_party_positionsConnection_edges_node_market_data_mark
export interface Positions_party_positionsConnection_edges_node_market_data { export interface Positions_party_positionsConnection_edges_node_market_data {
__typename: "MarketData"; __typename: "MarketData";
/** /**
* The mark price (an unsigned integer) * the mark price (an unsigned integer)
*/ */
markPrice: string; markPrice: string;
/** /**
* Market of the associated mark price * market of the associated mark price
*/ */
market: Positions_party_positionsConnection_edges_node_market_data_market; market: Positions_party_positionsConnection_edges_node_market_data_market;
} }
@ -110,7 +110,7 @@ export interface Positions_party_positionsConnection_edges_node_market {
*/ */
id: string; id: string;
/** /**
* The number of decimal places that an integer must be shifted by in order to get a correct * decimalPlaces indicates the number of decimal places that an integer must be shifted by in order to get a correct
* number denominated in the currency of the market. (uint64) * number denominated in the currency of the market. (uint64)
* *
* Examples: * Examples:
@ -127,7 +127,7 @@ export interface Positions_party_positionsConnection_edges_node_market {
*/ */
decimalPlaces: number; decimalPlaces: number;
/** /**
* The number of decimal places that an integer must be shifted in order to get a correct size (uint64). * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64).
* i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes.
* 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market.
* This sets how big the smallest order / position on the market can be. * This sets how big the smallest order / position on the market can be.
@ -181,9 +181,6 @@ export interface Positions_party_positionsConnection_edges_node {
export interface Positions_party_positionsConnection_edges { export interface Positions_party_positionsConnection_edges {
__typename: "PositionEdge"; __typename: "PositionEdge";
/**
* The position
*/
node: Positions_party_positionsConnection_edges_node; node: Positions_party_positionsConnection_edges_node;
} }

View File

@ -28,19 +28,19 @@ export interface PositionsSubscription_positions_marginsConnection_edges_node_as
export interface PositionsSubscription_positions_marginsConnection_edges_node { export interface PositionsSubscription_positions_marginsConnection_edges_node {
__typename: "MarginLevels"; __typename: "MarginLevels";
/** /**
* Market in which the margin is required for this party * market in which the margin is required for this party
*/ */
market: PositionsSubscription_positions_marginsConnection_edges_node_market; market: PositionsSubscription_positions_marginsConnection_edges_node_market;
/** /**
* Minimal margin for the position to be maintained in the network (unsigned integer) * minimal margin for the position to be maintained in the network (unsigned integer)
*/ */
maintenanceLevel: string; maintenanceLevel: string;
/** /**
* If the margin is between maintenance and search, the network will initiate a collateral search (unsigned integer) * if the margin is between maintenance and search, the network will initiate a collateral search (unsigned integer)
*/ */
searchLevel: string; searchLevel: string;
/** /**
* This is the minimum margin required for a party to place a new order on the network (unsigned integer) * this is the minimum margin required for a party to place a new order on the network (unsigned integer)
*/ */
initialLevel: string; initialLevel: string;
/** /**
@ -49,7 +49,7 @@ export interface PositionsSubscription_positions_marginsConnection_edges_node {
*/ */
collateralReleaseLevel: string; collateralReleaseLevel: string;
/** /**
* Asset for the current margins * asset for the current margins
*/ */
asset: PositionsSubscription_positions_marginsConnection_edges_node_asset; asset: PositionsSubscription_positions_marginsConnection_edges_node_asset;
} }
@ -94,11 +94,11 @@ export interface PositionsSubscription_positions_market_data_market {
export interface PositionsSubscription_positions_market_data { export interface PositionsSubscription_positions_market_data {
__typename: "MarketData"; __typename: "MarketData";
/** /**
* The mark price (an unsigned integer) * the mark price (an unsigned integer)
*/ */
markPrice: string; markPrice: string;
/** /**
* Market of the associated mark price * market of the associated mark price
*/ */
market: PositionsSubscription_positions_market_data_market; market: PositionsSubscription_positions_market_data_market;
} }
@ -110,7 +110,7 @@ export interface PositionsSubscription_positions_market {
*/ */
id: string; id: string;
/** /**
* The number of decimal places that an integer must be shifted by in order to get a correct * decimalPlaces indicates the number of decimal places that an integer must be shifted by in order to get a correct
* number denominated in the currency of the market. (uint64) * number denominated in the currency of the market. (uint64)
* *
* Examples: * Examples:
@ -127,7 +127,7 @@ export interface PositionsSubscription_positions_market {
*/ */
decimalPlaces: number; decimalPlaces: number;
/** /**
* The number of decimal places that an integer must be shifted in order to get a correct size (uint64). * positionDecimalPlaces indicates the number of decimal places that an integer must be shifted in order to get a correct size (uint64).
* i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes. * i.e. 0 means there are no fractional orders for the market, and order sizes are always whole sizes.
* 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market. * 2 means sizes given as 10^2 * desired size, e.g. a desired size of 1.23 is represented as 123 in this market.
* This sets how big the smallest order / position on the market can be. * This sets how big the smallest order / position on the market can be.

View File

@ -21,7 +21,7 @@ export interface NetworkParams_networkParameters {
export interface NetworkParams { export interface NetworkParams {
/** /**
* Return the full list of network parameters * return the full list of network parameters
*/ */
networkParameters: NetworkParams_networkParameters[] | null; networkParameters: NetworkParams_networkParameters[] | null;
} }

View File

@ -28,7 +28,7 @@ export interface Trades_market_tradesConnection_edges_node {
*/ */
price: string; price: string;
/** /**
* The number of units traded, will always be <= the remaining size of both orders immediately before the trade (uint64) * The number of contracts trades, will always be <= the remaining size of both orders immediately before the trade (uint64)
*/ */
size: string; size: string;
/** /**
@ -43,33 +43,15 @@ export interface Trades_market_tradesConnection_edges_node {
export interface Trades_market_tradesConnection_edges { export interface Trades_market_tradesConnection_edges {
__typename: "TradeEdge"; __typename: "TradeEdge";
/**
* The trade
*/
node: Trades_market_tradesConnection_edges_node; node: Trades_market_tradesConnection_edges_node;
/**
* The cursor for this trade
*/
cursor: string; cursor: string;
} }
export interface Trades_market_tradesConnection_pageInfo { export interface Trades_market_tradesConnection_pageInfo {
__typename: "PageInfo"; __typename: "PageInfo";
/**
* The first cursor in the current page
*/
startCursor: string; startCursor: string;
/**
* The last cursor in the current page
*/
endCursor: string; endCursor: string;
/**
* The connection has more pages to fetch when traversing forward through the connection
*/
hasNextPage: boolean; hasNextPage: boolean;
/**
* The connection has more pages to fetch when traversing backward through the connection
*/
hasPreviousPage: boolean; hasPreviousPage: boolean;
} }

View File

@ -143,9 +143,6 @@ export enum MarketTradingMode {
TRADING_MODE_OPENING_AUCTION = "TRADING_MODE_OPENING_AUCTION", TRADING_MODE_OPENING_AUCTION = "TRADING_MODE_OPENING_AUCTION",
} }
/**
* Validating status of a node, i.e. validator or non-validator
*/
export enum NodeStatus { export enum NodeStatus {
NODE_STATUS_NON_VALIDATOR = "NODE_STATUS_NON_VALIDATOR", NODE_STATUS_NON_VALIDATOR = "NODE_STATUS_NON_VALIDATOR",
NODE_STATUS_VALIDATOR = "NODE_STATUS_VALIDATOR", NODE_STATUS_VALIDATOR = "NODE_STATUS_VALIDATOR",
@ -160,7 +157,7 @@ export enum OracleSpecStatus {
} }
/** /**
* Why the order was rejected by the core node * Reason for the order being rejected by the core node
*/ */
export enum OrderRejectionReason { export enum OrderRejectionReason {
ORDER_ERROR_AMEND_FAILURE = "ORDER_ERROR_AMEND_FAILURE", ORDER_ERROR_AMEND_FAILURE = "ORDER_ERROR_AMEND_FAILURE",
@ -255,7 +252,7 @@ export enum PropertyKeyType {
} }
/** /**
* Why the proposal was rejected by the core node * Reason for the proposal being rejected by the core node
*/ */
export enum ProposalRejectionReason { export enum ProposalRejectionReason {
PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE = "PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE", PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE = "PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE",

File diff suppressed because it is too large Load Diff

View File

@ -21,7 +21,7 @@ export interface NetworkParamsQuery_networkParameters {
export interface NetworkParamsQuery { export interface NetworkParamsQuery {
/** /**
* Return the full list of network parameters * return the full list of network parameters
*/ */
networkParameters: NetworkParamsQuery_networkParameters[] | null; networkParameters: NetworkParamsQuery_networkParameters[] | null;
} }

View File

@ -42,7 +42,7 @@ export interface Erc20Approval_erc20WithdrawalApproval {
export interface Erc20Approval { export interface Erc20Approval {
/** /**
* Find an erc20 withdrawal approval using its withdrawal ID * find an erc20 withdrawal approval using its withdrawal ID
*/ */
erc20WithdrawalApproval: Erc20Approval_erc20WithdrawalApproval | null; erc20WithdrawalApproval: Erc20Approval_erc20WithdrawalApproval | null;
} }

View File

@ -109,9 +109,6 @@ export interface WithdrawFormQuery_assetsConnection_edges_node {
export interface WithdrawFormQuery_assetsConnection_edges { export interface WithdrawFormQuery_assetsConnection_edges {
__typename: "AssetEdge"; __typename: "AssetEdge";
/**
* The asset information
*/
node: WithdrawFormQuery_assetsConnection_edges_node; node: WithdrawFormQuery_assetsConnection_edges_node;
} }

View File

@ -108,7 +108,7 @@ export type WithdrawalEvent_busEvents_event = WithdrawalEvent_busEvents_event_Ti
export interface WithdrawalEvent_busEvents { export interface WithdrawalEvent_busEvents {
__typename: "BusEvent"; __typename: "BusEvent";
/** /**
* The payload - the wrapped event * the payload - the wrapped event
*/ */
event: WithdrawalEvent_busEvents_event; event: WithdrawalEvent_busEvents_event;
} }

View File

@ -101,9 +101,6 @@ export interface Withdrawals_party_withdrawalsConnection_edges_node {
export interface Withdrawals_party_withdrawalsConnection_edges { export interface Withdrawals_party_withdrawalsConnection_edges {
__typename: "WithdrawalEdge"; __typename: "WithdrawalEdge";
/**
* The withdrawal
*/
node: Withdrawals_party_withdrawalsConnection_edges_node; node: Withdrawals_party_withdrawalsConnection_edges_node;
} }