module Gemini::V1::AccountInfoClient
Public Instance Methods
account_info()
click to toggle source
Get account information
@return [Hash] your account information @example:
client.account_info
# File lib/gemini/v1/account_info.rb, line 9 def account_info resp = authenticated_post("account_infos") resp.body end
fees()
click to toggle source
See the fees applied to your withdrawals
@return [Hash] @example:
client.fees
# File lib/gemini/v1/account_info.rb, line 32 def fees resp = authenticated_post("fees") resp.body end
listen_account(&block)
click to toggle source
Call block passing all account related specific messages sent via websocket
@param block [Block] The code to be executed when new message is received @example:
client.listen_account do |message| puts message.inspect end
# File lib/gemini/v1/account_info.rb, line 22 def listen_account(&block) raise BlockMissingError unless block_given? ws_auth(&block) end