Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new CoinSpotClient(apiKey: string, apiSecret: string): CoinSpotClient

Properties

apiUrl

apiUrl: string

Methods

calculateSign

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

coinDeposit

  • coinDeposit(cointype: string): Promise<unknown>
  • Parameters

    • cointype: string

    Returns Promise<unknown>

getRequest

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

myBalance

  • myBalance(): Promise<unknown>

myBuy

  • myBuy(cointype: string, amount: number, rate: number): Promise<unknown>
  • Parameters

    • cointype: string
    • amount: number
    • rate: number

    Returns Promise<unknown>

myBuyCancel

  • myBuyCancel(id: number): Promise<unknown>
  • Parameters

    • id: number

    Returns Promise<unknown>

myOrders

  • myOrders(): Promise<unknown>

mySell

  • mySell(cointype: string, amount: number, rate: number): Promise<unknown>
  • Parameters

    • cointype: string
    • amount: number
    • rate: number

    Returns Promise<unknown>

mySellCancel

  • mySellCancel(id: number): Promise<unknown>
  • Parameters

    • id: number

    Returns Promise<unknown>

orders

  • orders(cointype: string): Promise<unknown>
  • Parameters

    • cointype: string

    Returns Promise<unknown>

ordersHistory

  • ordersHistory(cointype: string): Promise<unknown>
  • Parameters

    • cointype: string

    Returns Promise<unknown>

postRequest

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

quoteBuy

  • quoteBuy(cointype: string, amount: number): Promise<unknown>
  • Parameters

    • cointype: string
    • amount: number

    Returns Promise<unknown>

quoteSell

  • quoteSell(cointype: string, amount: number): Promise<unknown>
  • Parameters

    • cointype: string
    • amount: number

    Returns Promise<unknown>

Generated using TypeDoc