@volare.finance/schemas.js
Version:
42 lines • 2.33 kB
JavaScript
;
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.VolareSwapTradeSchema = exports.VolareSwapTrade = void 0;
const mongoose_1 = require("@nestjs/mongoose");
const swagger_1 = require("@nestjs/swagger");
let VolareSwapTrade = class VolareSwapTrade {
};
exports.VolareSwapTrade = VolareSwapTrade;
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The timestamp at which the event is emitted.', example: 1655309831 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], VolareSwapTrade.prototype, "timestamp", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The asset symbol.', example: 'WETH-07DEC22-1000-C' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], VolareSwapTrade.prototype, "asset", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The price of an option.', example: 45 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], VolareSwapTrade.prototype, "price", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The number of filled options.', example: 0.8 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], VolareSwapTrade.prototype, "size", void 0);
exports.VolareSwapTrade = VolareSwapTrade = __decorate([
(0, mongoose_1.Schema)({ collection: 'volare_swap_trade' })
], VolareSwapTrade);
exports.VolareSwapTradeSchema = mongoose_1.SchemaFactory.createForClass(VolareSwapTrade);
//# sourceMappingURL=volare.swap.trade.js.map