Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a single trade.

Hierarchy

  • Trade

Index

Constructors

constructor

  • new Trade(json: any): Trade

Properties

Private _fillType

_fillType: FillType.FILL | FillType.PARTIAL_FILL

Private _id

_id: number

Private _orderType

_orderType: OrderType.BUY | OrderType.SELL | OrderType.LIMIT_BUY | OrderType.LIMIT_SELL

Private _quantity

_quantity: number

Private _timestamp

_timestamp: Date

Private _totalPrice

_totalPrice: number

Private _unitPrice

_unitPrice: number

Accessors

fillType

  • get fillType(): FillType.FILL | FillType.PARTIAL_FILL
  • set fillType(value: FillType.FILL | FillType.PARTIAL_FILL): void
  • Returns FillType.FILL | FillType.PARTIAL_FILL

  • Parameters

    • value: FillType.FILL | FillType.PARTIAL_FILL

    Returns void

id

  • get id(): number
  • set id(value: number): void

orderType

  • get orderType(): OrderType.BUY | OrderType.SELL | OrderType.LIMIT_BUY | OrderType.LIMIT_SELL
  • set orderType(value: OrderType.BUY | OrderType.SELL | OrderType.LIMIT_BUY | OrderType.LIMIT_SELL): void
  • Returns OrderType.BUY | OrderType.SELL | OrderType.LIMIT_BUY | OrderType.LIMIT_SELL

  • Parameters

    • value: OrderType.BUY | OrderType.SELL | OrderType.LIMIT_BUY | OrderType.LIMIT_SELL

    Returns void

quantity

  • get quantity(): number
  • set quantity(value: number): void

timestamp

  • get timestamp(): Date
  • set timestamp(value: Date): void

totalPrice

  • get totalPrice(): number
  • set totalPrice(value: number): void

unitPrice

  • get unitPrice(): number
  • set unitPrice(value: number): void

Generated using TypeDoc