Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AuthenticatedClient

Hierarchy

Index

Constructors

Properties

#key: string
#nonce: (() => number)

Type declaration

    • (): number
    • Returns number

#private: any
#secret: string
apiUri: string
symbol: string

Accessors

  • get fetchOptions(): RequestInit
  • set fetchOptions(options: RequestInit): void
  • Returns RequestInit

  • Parameters

    • options: RequestInit

    Returns void

  • get nonce(): (() => number)
  • set nonce(nonce: (() => number)): void
  • Returns (() => number)

      • (): number
      • Returns number

  • Parameters

    • nonce: (() => number)
        • (): number
        • Returns number

    Returns void

Methods

  • The add bank API allows for banking information to be sent in via API. However, for the bank to be verified, you must still send in a wire for any amount from the bank account.

    Parameters

    Returns Promise<AddBankResponse>

  • delete(path?: string, _fetchOptions?: RequestInit): Promise<unknown>
  • Parameters

    • Optional path: string
    • Optional _fetchOptions: RequestInit

    Returns Promise<unknown>

  • fetch(path?: string, options?: RequestInit): Promise<unknown>
  • Parameters

    • Optional path: string
    • Optional options: RequestInit

    Returns Promise<unknown>

  • get<T>(path: string): Promise<T>
  • getSymbol(__namedParameters: { symbol: string }): Promise<ISymbol>
  • getSymbols(): Promise<string[]>
  • getTicker(options: { symbol?: string; v: "v2" }): Promise<TickerV2>
  • getTicker(options?: { symbol?: string; v?: "v1" }): Promise<TickerV1>
  • head(path?: string, _fetchOptions?: RequestInit): Promise<unknown>
  • Parameters

    • Optional path: string
    • Optional _fetchOptions: RequestInit

    Returns Promise<unknown>

  • Prevent a session from timing out and canceling orders if the require heartbeat flag has been set.

    Returns Promise<Heartbeat>

  • options(path?: string, _fetchOptions?: RequestInit): Promise<unknown>
  • Parameters

    • Optional path: string
    • Optional _fetchOptions: RequestInit

    Returns Promise<unknown>

  • patch(path?: string, _fetchOptions?: RequestInit): Promise<unknown>
  • Parameters

    • Optional path: string
    • Optional _fetchOptions: RequestInit

    Returns Promise<unknown>

  • post<T>(path: undefined | string, _options: undefined | RequestInit, body?: { request: string } & Record<string, unknown>): Promise<T>
  • Type Parameters

    • T = unknown

    Parameters

    • path: undefined | string
    • _options: undefined | RequestInit
    • body: { request: string } & Record<string, unknown> = ...

    Returns Promise<T>

  • put(path?: string, _fetchOptions?: RequestInit): Promise<unknown>
  • Parameters

    • Optional path: string
    • Optional _fetchOptions: RequestInit

    Returns Promise<unknown>

  • trace(path?: string, _fetchOptions?: RequestInit): Promise<unknown>
  • Parameters

    • Optional path: string
    • Optional _fetchOptions: RequestInit

    Returns Promise<unknown>