Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a single order.

Hierarchy

  • Order

Index

Constructors

constructor

  • new Order(json: any): Order

Properties

Private _accountId

_accountId: string

Private _cancelInitiated

_cancelInitiated: boolean

Private _closed

_closed: Date

Private _condition

_condition: string

Private _conditionTarget

_conditionTarget: number

Private _conditional

_conditional: boolean

Private _immediateOrCancel

_immediateOrCancel: boolean

Private _isOpen

_isOpen: boolean

Private _limit

_limit: number

Private _market

_market: string

Private _opened

_opened: Date

Private _orderId

_orderId: string

Private _paidCommission

_paidCommission: number

Private _price

_price: number

Private _pricePerUnit

_pricePerUnit: number

Private _quantity

_quantity: number

Private _remainingCommissionReserve

_remainingCommissionReserve: number

Private _remainingQuantity

_remainingQuantity: number

Private _remainingReserve

_remainingReserve: number

Private _reserved

_reserved: number

Private _reservedCommission

_reservedCommission: number

Private _sentinel

_sentinel: string

Private _type

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

Accessors

accountId

  • get accountId(): string
  • set accountId(value: string): void

cancelInitiated

  • get cancelInitiated(): boolean
  • set cancelInitiated(value: boolean): void

closed

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

condition

  • get condition(): string
  • set condition(value: string): void

conditionTarget

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

conditional

  • get conditional(): boolean
  • set conditional(value: boolean): void

immediateOrCancel

  • get immediateOrCancel(): boolean
  • set immediateOrCancel(value: boolean): void

isOpen

  • get isOpen(): boolean
  • set isOpen(value: boolean): void

limit

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

market

  • get market(): string
  • set market(value: string): void

opened

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

orderId

  • get orderId(): string
  • set orderId(value: string): void

paidCommission

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

price

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

pricePerUnit

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

quantity

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

remainingCommissionReserve

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

remainingQuantity

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

remainingReserve

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

reserved

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

reservedCommission

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

sentinel

  • get sentinel(): string
  • set sentinel(value: string): void

type

  • get type(): OrderType.BUY | OrderType.SELL | OrderType.LIMIT_BUY | OrderType.LIMIT_SELL
  • set type(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

Generated using TypeDoc