UNPKG

@volare.finance/schemas.js

Version:
57 lines 3.05 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.VolareLongPnLSchema = exports.VolareLongPnL = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); let VolareLongPnL = class VolareLongPnL { }; exports.VolareLongPnL = VolareLongPnL; __decorate([ (0, swagger_1.ApiProperty)({ description: 'The updated timestamp.', example: 1655289127 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], VolareLongPnL.prototype, "timestamp", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The owner address.', example: '0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], VolareLongPnL.prototype, "owner", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The vToken address.', example: '0x495d33cf1bd948158bce0ac2393e09b213f3abe7' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], VolareLongPnL.prototype, "vTokenAddress", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The amount of options held by the owner.', example: 4 }), (0, mongoose_1.Prop)(), __metadata("design:type", Number) ], VolareLongPnL.prototype, "amount", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The expiry price (denominated in strike asset).', example: 1600 }), (0, mongoose_1.Prop)(), __metadata("design:type", Number) ], VolareLongPnL.prototype, "expiryPrice", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The payout (denominated in collateral asset).', example: 1.5 }), (0, mongoose_1.Prop)(), __metadata("design:type", Number) ], VolareLongPnL.prototype, "payout", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'Return on equity (n per thousand).', example: 375 }), (0, mongoose_1.Prop)(), __metadata("design:type", Number) ], VolareLongPnL.prototype, "roe", void 0); exports.VolareLongPnL = VolareLongPnL = __decorate([ (0, mongoose_1.Schema)({ collection: 'volare_long_pnl' }) ], VolareLongPnL); exports.VolareLongPnLSchema = mongoose_1.SchemaFactory.createForClass(VolareLongPnL); //# sourceMappingURL=volare.long.pnl.js.map