Skip to content

@livefolio/sdk / Fill

Type Alias: Fill

Fill = object

Defined in: orders/types.ts:175

Execution confirmation returned by Executor.submit. Each fill corresponds to one order and records the exact price, quantity, and fees that were transacted.

Example

ts
import type { Fill } from '@livefolio/sdk';

const fill: Fill = {
  orderRef: 'ord_001',
  t:        new Date('2024-06-04T13:30:00Z'),
  quantity: 100,
  price:    152.75,
  fees:     0.50,
};

Properties

fees

fees: number

Defined in: orders/types.ts:185

Total transaction fees in the portfolio's base currency.


orderRef

orderRef: string

Defined in: orders/types.ts:177

References the id of the originating Order.


price

price: number

Defined in: orders/types.ts:183

Per-share execution price after slippage.


quantity

quantity: number

Defined in: orders/types.ts:181

Shares (or units) actually transacted. May be less than the ordered quantity for partial fills.


t

t: Date

Defined in: orders/types.ts:179

Timestamp at which the fill was executed (>= the order submission time).

Released under the MIT License.