Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new BaseClient(apiKey: string, apiSecret: string, apiUrl: string): BaseClient

Properties

apiUrl

apiUrl: string

Methods

calculateSign

  • calculateSign<T>(data: T): { postdata: string; sign: string }
  • Type parameters

    • T

    Parameters

    • data: T

    Returns { postdata: string; sign: string }

    • postdata: string
    • sign: string

getRequest

  • getRequest<T>(apiPath: string): Promise<T>
  • Type parameters

    • T

    Parameters

    • apiPath: string

    Returns Promise<T>

postRequest

  • postRequest<T>(url: string, data?: {}): Promise<T>
  • Type parameters

    • T

    Parameters

    • url: string
    • data: {} = ...
      • [key: string]: any

    Returns Promise<T>

Generated using TypeDoc