Module: Kucoin::Rest::Private::User

Included in:
Client
Defined in:
lib/kucoin/rest/private/user.rb

Instance Method Summary collapse

Instance Method Details

#user_info(options: {}) ⇒ Object



6
7
8
9
10
# File 'lib/kucoin/rest/private/user.rb', line 6

def (options: {})
  options.merge!(authenticate: true)
  response = parse(get("/user/info", options: options))&.fetch("data", {})
  ::Kucoin::Models::User.new(response) if response
end