Skip to content

Commit

Permalink
Update candle model jsonSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
adamfraser committed Jul 25, 2024
1 parent 33d678f commit 6652e22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions indexer/packages/postgres/src/models/candle-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export default class CandleModel extends Model {
'trades',
'usdVolume',
'startingOpenInterest',
'orderbookMidPriceOpen',
'orderbookMidPriceClose',
],
properties: {
id: { type: 'string', format: 'uuid' },
Expand All @@ -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 },
},
};
}
Expand Down

0 comments on commit 6652e22

Please sign in to comment.