You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/cryptomarket/websocket/accountClient.rb
+42-2Lines changed: 42 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
moduleCryptomarket
5
5
moduleWebsocket
6
-
6
+
7
7
# AccountClient connects via websocket to cryptomarket to get account information of the user. uses SHA256 as auth method and authenticates automatically.
8
8
#
9
9
# +string+ +apiKey+:: the user api key
@@ -12,9 +12,24 @@ module Websocket
12
12
13
13
classAccountClient < AuthClient
14
14
includeUtils
15
+
15
16
# Creates a new client and authenticates it to the server
# +Proc+ +callback+:: A +Proc+ to call with the result data. It takes one argument. a feed of balances
133
+
# +Proc+ +resultCallback+:: Optional. A +Proc+ to call with the result data. It takes two arguments, err and result. err is None for successful calls, result is None for calls with error: Proc.new {|err, result| ...}
# +Proc+ +callback+:: Optional. A +Proc+ to call with the result data. It takes two arguments, err and result. err is None for successful calls, result is None for calls with error: Proc.new {|err, result| ...}
0 commit comments