UNPKG

@volare.finance/schemas.js

Version:
62 lines 3.27 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.VolareVolSurfaceSchema = exports.VolareVolSurface = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); let VolareVolSurface = class VolareVolSurface { }; exports.VolareVolSurface = VolareVolSurface; __decorate([ (0, swagger_1.ApiProperty)({ description: `The underlying symbol.`, example: 'WETH' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], VolareVolSurface.prototype, "underlyingSymbol", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: `The expiry date.`, example: '30/9/2022' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], VolareVolSurface.prototype, "expiry", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: `The strike price.`, example: 1400 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], VolareVolSurface.prototype, "strikePrice", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The put when true, or call when false.', example: false }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Boolean) ], VolareVolSurface.prototype, "isPut", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The ask vol.', example: 1.030620797 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], VolareVolSurface.prototype, "askVol", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The bid vol.', example: 1.030621063 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], VolareVolSurface.prototype, "bidVol", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The created date.', example: '30/9/2022' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], VolareVolSurface.prototype, "created", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The timestamp.', example: 1664524800 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], VolareVolSurface.prototype, "timestamp", void 0); exports.VolareVolSurface = VolareVolSurface = __decorate([ (0, mongoose_1.Schema)({ collection: 'volare_vol_surface' }) ], VolareVolSurface); exports.VolareVolSurfaceSchema = mongoose_1.SchemaFactory.createForClass(VolareVolSurface); //# sourceMappingURL=volare.vol.surface.js.map