Skip to content

@livefolio/sdk / Session

Type Alias: Session

Session = object

Defined in: interfaces/calendar.ts:34

The open and close instants for a single trading session.

date is midnight of the session day (used as a stable key). open and close are the exact UTC instants the exchange accepts orders.

Example

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

// A normal NYSE session
const session: Session = {
  date:  new Date('2024-06-03'),
  open:  new Date('2024-06-03T13:30:00Z'), // 09:30 ET in UTC
  close: new Date('2024-06-03T20:00:00Z'), // 16:00 ET in UTC
};

Properties

close

close: Date

Defined in: interfaces/calendar.ts:34


date

date: Date

Defined in: interfaces/calendar.ts:34


open

open: Date

Defined in: interfaces/calendar.ts:34

Released under the MIT License.