Module: Coinigy::Client::AccountData
- Included in:
- Coinigy::Client
- Defined in:
- lib/coinigy/client/account_data.rb
Overview
Gather information about your Coinigy account
Instance Method Summary collapse
-
#accounts ⇒ Object
Returns a list of your attached exchange accounts and wallets, each with a unique auth_id.
-
#activity ⇒ Object
Returns a list of your recent account activity.
-
#alerts ⇒ Object
Returns a list of all open alerts and recent alert history.
-
#balance_history(date = Date.today.to_s) ⇒ Object
Returns balances for your entire account on given date (eg '2018-02-23').
-
#balances(ids = '', show_nils = 0) ⇒ Object
Returns a combined list of balances for all accounts, or specificied auth_ids.
-
#news_feed ⇒ Object
Returns a list of the latest items from Coinigy's newsfeed sources.
-
#notifications ⇒ Object
List any unshown alerts or trade notifications.
-
#orders ⇒ Object
Returns a list of all open orders and recent order history.
-
#user_info ⇒ Object
Returns your account information and preferences.
-
#watch_list ⇒ Object
Returns ticker data on your favorite markets (as selected on Coinigy.com).
Instance Method Details
#accounts ⇒ Object
Returns a list of your attached exchange accounts and wallets, each with a unique auth_id.
23 24 25 |
# File 'lib/coinigy/client/account_data.rb', line 23 def accounts request('accounts') end |
#activity ⇒ Object
Returns a list of your recent account activity
13 14 15 |
# File 'lib/coinigy/client/account_data.rb', line 13 def activity request('activity') end |
#alerts ⇒ Object
Returns a list of all open alerts and recent alert history
43 44 45 |
# File 'lib/coinigy/client/account_data.rb', line 43 def alerts request('alerts') end |
#balance_history(date = Date.today.to_s) ⇒ Object
Returns balances for your entire account on given date (eg '2018-02-23')
33 34 35 |
# File 'lib/coinigy/client/account_data.rb', line 33 def balance_history(date = Date.today.to_s) request('balanceHistory', { date: date }) end |
#balances(ids = '', show_nils = 0) ⇒ Object
Returns a combined list of balances for all accounts, or specificied auth_ids
28 29 30 |
# File 'lib/coinigy/client/account_data.rb', line 28 def balances(ids = '', show_nils = 0) request('balances', { auth_ids: ids, show_nils: show_nils }) end |
#news_feed ⇒ Object
Returns a list of the latest items from Coinigy's newsfeed sources
53 54 55 |
# File 'lib/coinigy/client/account_data.rb', line 53 def news_feed request('newsFeed') end |
#notifications ⇒ Object
List any unshown alerts or trade notifications
18 19 20 |
# File 'lib/coinigy/client/account_data.rb', line 18 def notifications request('pushNotifications') end |
#orders ⇒ Object
Returns a list of all open orders and recent order history
38 39 40 |
# File 'lib/coinigy/client/account_data.rb', line 38 def orders request('orders') end |
#user_info ⇒ Object
Returns your account information and preferences
NOTE: For security purposes, the “userInfo” method is only available by request. Please contact support to request access.
8 9 10 |
# File 'lib/coinigy/client/account_data.rb', line 8 def user_info request('userInfo') end |
#watch_list ⇒ Object
Returns ticker data on your favorite markets (as selected on Coinigy.com)
48 49 50 |
# File 'lib/coinigy/client/account_data.rb', line 48 def watch_list request('userWatchList') end |