API REFERENCE

StockTradeInput

The StockTradeInput type declaration and related types. Optional fields are marked with ?.

Type declaration

typescript
export interface StockTradeInput {
  readonly time: number | string | Date;
  readonly side: TradeSide;
  readonly price: number;
  readonly quantity?: number;
  readonly id?: string;
  readonly label?: string;
}