Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • API

Indexable

[key: string]: any

Index

Constructors

constructor

  • new API(options: object): API
  • API class for Bitkub API

    Parameters

    • options: object

      An options for Bitkub API authentication

      • api_key: string

        An api key generated from Bitkub

      • api_secret: string

        A api secret generated from Bitkub

      • Optional server_url?: undefined | string

        Bitkub API server url

    Returns API

Properties

Private _server_url

_server_url: string = DEFAULT_SERVER_URL

Methods

Private _build_non_secure_endpoint_function

  • _build_non_secure_endpoint_function(data: endPointData): (Anonymous function)

Private _build_parameters_validator

  • _build_parameters_validator(parameters: object): (Anonymous function)
  • Build parameter validator function

    Parameters

    • parameters: object
      • [key: string]: boolean

    Returns (Anonymous function)

Private _build_secure_endpoint_function

  • _build_secure_endpoint_function(data: endPointData): (Anonymous function)

Private _generate_signature

  • _generate_signature(json: any): string
  • Generate HMAC signature from json parameters

    Parameters

    • json: any

    Returns string

Object literals

Private _credentials

_credentials: object

api_key

api_key: string = ""

api_secret

api_secret: string = ""

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc