get_kucoin_balances: Get user's balance(s) list

Description Usage Arguments Value Examples

View source: R/user-info.R

Description

Get user's balance(s) list

Usage

1

Arguments

currency

A character vector of one currency symbol (optional).

type

A character vector of one indicating the "main" or "trade" account type (optional).

Value

A tibble containing balance details

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
## Not run: 

# to run this example, make sure
# you already setup the API key
# in a proper .Renviron file

# import library
library(rucoin)

# get user's balance details
balances <- get_kucoin_balances()

# quick check
balances

# get user's balance details for BTC only
balances <- get_kucoin_balances(
  currency = "BTC"
)

# quick check
balances

# get user's balance details for trade account only
balances <- get_kucoin_balances(
  type = "trade"
)

# quick check
balances


## End(Not run)

bagasbgy/rucoin documentation built on Jan. 1, 2020, 8:34 p.m.