Class TradeAccount

A trade account instance. The instance is connected to a specific equity token, and will only have access to LPs with that same underlying token.

Hierarchy

  • TradeAccount

Implements

  • ITradeAccount

Constructors

Properties

adapter: TradeAdapter
equityTokenAddress: string
id: number
isProcessingSubscriptionRequest: boolean = false
onUpdate?: (() => void)

Type declaration

    • (): void
    • Returns void

positions: Position[]
protocol: TradeProtocol
reader: TradeReader
realizedEquity: BigNumber
remoteTimestamp: number
subsriptionId: null | string = null

Methods

  • Returns the available equity for the account.

    Returns BigNumber

  • Returns the available equity for the account.

    Returns BigNumber

  • Returns BigNumber

    The total value of all positions in the liquidity token currency (currently USD).

  • Returns the unrealised equity for the account.

    Returns BigNumber

Generated using TypeDoc