Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AuthenticatedClient

Hierarchy

Index

Constructors

Properties

#api_url: URL
#key: string
#passphrase: string
#private: any
#product_id: string
#secret: string

Accessors

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

  • Parameters

    • options: RequestInit

    Returns void

  • get product_id(): string

Methods

  • cancelAll(qs?: ProductID): Promise<string[]>
  • delete(path?: string, _fetchOptions?: RequestInit): Promise<unknown>
  • Parameters

    • Optional path: string
    • Optional _fetchOptions: RequestInit

    Returns Promise<unknown>

  • fetch(path: string, __namedParameters: { body?: string; method: string }): Promise<unknown>
  • Parameters

    • path: string
    • __namedParameters: { body?: string; method: string }
      • Optional body?: string
      • method: string

    Returns Promise<unknown>

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

    • Optional path: string
    • Optional _fetchOptions: RequestInit

    Returns Promise<unknown>

  • getAccounts(): Promise<Account[]>
  • Get a list of trading accounts from the profile of the API key.

    Returns Promise<Account[]>

  • getCurrency(__namedParameters: { id: string }): Promise<CurrencyInfo>
  • getFees(): Promise<Fees>
  • getProfile(__namedParameters: { id: string }): Promise<Profile>
  • Get a single profile by profile id.

    Parameters

    • __namedParameters: { id: string }
      • id: string

    Returns Promise<Profile>

  • getProfiles(): Promise<Profile[]>
  • getReport(__namedParameters: { id: string }): Promise<ReportStatus>
  • getTime(): Promise<Time>
  • head(path?: string, _fetchOptions?: RequestInit): Promise<unknown>
  • Parameters

    • Optional path: string
    • Optional _fetchOptions: RequestInit

    Returns Promise<unknown>

  • 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(path?: string, _fetchOptions?: RequestInit): Promise<unknown>
  • Parameters

    • Optional path: string
    • Optional _fetchOptions: RequestInit

    Returns Promise<unknown>

  • 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>

  • Transfer funds from API key’s profile to another user owned profile.

    Parameters

    Returns Promise<"OK">