Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | 8x 8x 9x 8x 8x 8x 8x 8x 8x 8x 8x 8x | import {model, property} from "@waytrade/microservice-core"; /** * A position on an IBKR account. */ @model("An positions on an IBKR account") export class Position { constructor(contract: Position) { Object.assign(this, contract); } /** The position id. */ @property("The position id.") id!: string; /** The account id. */ @property("The account id.") account?: string; /** The position's contract id. */ @property("The position's contract id.") conId?: number; /** The number of positions held. */ @property("The number of positions held.") pos?: number; /** The daily PnL. */ @property("The daily PnL.") dailyPnL?: number; /** The daily unrealized PnL. */ @property("The daily unrealized PnL.") unrealizedPnL?: number; /** The daily realized PnL. */ @property("The daily realized PnL.") realizedPnL?: number; /** The average cost of the position. */ @property("The average cost of the position.") avgCost?: number; /** The current market value of the position. */ @property("The current market value of the position.") marketValue?: number; } |