diff --git a/indexer/packages/postgres/src/models/candle-model.ts b/indexer/packages/postgres/src/models/candle-model.ts index a77176f49a..43a2f52569 100644 --- a/indexer/packages/postgres/src/models/candle-model.ts +++ b/indexer/packages/postgres/src/models/candle-model.ts @@ -36,6 +36,8 @@ export default class CandleModel extends Model { 'trades', 'usdVolume', 'startingOpenInterest', + 'orderbookMidPriceOpen', + 'orderbookMidPriceClose', ], properties: { id: { type: 'string', format: 'uuid' }, @@ -50,6 +52,8 @@ export default class CandleModel extends Model { usdVolume: { type: 'string', pattern: NonNegativeNumericPattern }, trades: { type: 'integer' }, startingOpenInterest: { type: 'string', pattern: NonNegativeNumericPattern }, + orderbookMidPriceOpen: { type: ['string', 'null'], pattern: NonNegativeNumericPattern }, + orderbookMidPriceClose: { type: ['string', 'null'], pattern: NonNegativeNumericPattern }, }, }; }