fix: volume charts position dp (#2756)
This commit is contained in:
parent
ae6ccdfb52
commit
cfb75fcf8f
@ -1,6 +1,7 @@
|
|||||||
query Chart($marketId: ID!) {
|
query Chart($marketId: ID!) {
|
||||||
market(id: $marketId) {
|
market(id: $marketId) {
|
||||||
decimalPlaces
|
decimalPlaces
|
||||||
|
positionDecimalPlaces
|
||||||
data {
|
data {
|
||||||
priceMonitoringBounds {
|
priceMonitoringBounds {
|
||||||
minValidPrice
|
minValidPrice
|
||||||
|
@ -8,13 +8,14 @@ export type ChartQueryVariables = Types.Exact<{
|
|||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type ChartQuery = { __typename?: 'Query', market?: { __typename?: 'Market', decimalPlaces: number, data?: { __typename?: 'MarketData', priceMonitoringBounds?: Array<{ __typename?: 'PriceMonitoringBounds', minValidPrice: string, maxValidPrice: string, referencePrice: string }> | null } | null } | null };
|
export type ChartQuery = { __typename?: 'Query', market?: { __typename?: 'Market', decimalPlaces: number, positionDecimalPlaces: number, data?: { __typename?: 'MarketData', priceMonitoringBounds?: Array<{ __typename?: 'PriceMonitoringBounds', minValidPrice: string, maxValidPrice: string, referencePrice: string }> | null } | null } | null };
|
||||||
|
|
||||||
|
|
||||||
export const ChartDocument = gql`
|
export const ChartDocument = gql`
|
||||||
query Chart($marketId: ID!) {
|
query Chart($marketId: ID!) {
|
||||||
market(id: $marketId) {
|
market(id: $marketId) {
|
||||||
decimalPlaces
|
decimalPlaces
|
||||||
|
positionDecimalPlaces
|
||||||
data {
|
data {
|
||||||
priceMonitoringBounds {
|
priceMonitoringBounds {
|
||||||
minValidPrice
|
minValidPrice
|
||||||
|
@ -20,6 +20,7 @@ export const chartQuery = (override?: PartialDeep<ChartQuery>): ChartQuery => {
|
|||||||
const defaultResult: ChartQuery = {
|
const defaultResult: ChartQuery = {
|
||||||
market: {
|
market: {
|
||||||
decimalPlaces: 5,
|
decimalPlaces: 5,
|
||||||
|
positionDecimalPlaces: 0,
|
||||||
data: {
|
data: {
|
||||||
priceMonitoringBounds: [priceMonitoringBound],
|
priceMonitoringBounds: [priceMonitoringBound],
|
||||||
__typename: 'MarketData',
|
__typename: 'MarketData',
|
||||||
|
@ -102,9 +102,11 @@ export class VegaDataSource implements DataSource {
|
|||||||
|
|
||||||
if (data && data.market && data.market.data) {
|
if (data && data.market && data.market.data) {
|
||||||
this._decimalPlaces = data.market.decimalPlaces;
|
this._decimalPlaces = data.market.decimalPlaces;
|
||||||
|
this._positionDecimalPlaces = data.market.positionDecimalPlaces;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
decimalPlaces: this._decimalPlaces,
|
decimalPlaces: this._decimalPlaces,
|
||||||
|
positionDecimalPlaces: this._positionDecimalPlaces,
|
||||||
supportedIntervals: [
|
supportedIntervals: [
|
||||||
PennantInterval.I1D,
|
PennantInterval.I1D,
|
||||||
PennantInterval.I6H,
|
PennantInterval.I6H,
|
||||||
|
Loading…
Reference in New Issue
Block a user