@@ -328,6 +328,13 @@ def trades(self, market, options=None):
328328 def account (self ):
329329 return self .privateRequest ('/account' , '' , {}, 'GET' )
330330
331+ def fees (self , market = None ):
332+ options = {}
333+ if market is not None :
334+ options ['market' ] = market
335+ postfix = createPostfix (options )
336+ return self .privateRequest ('/account/fees' , postfix , {}, 'GET' )
337+
331338 # options: symbol
332339 def balance (self , options = None ):
333340 postfix = createPostfix (options )
@@ -455,6 +462,8 @@ def on_message(self, ws, msg):
455462 callbacks ['trades' ](msg ['response' ])
456463 elif (msg ['action' ] == 'privateGetAccount' ):
457464 callbacks ['account' ](msg ['response' ])
465+ elif (msg ['action' ] == 'privateGetFees' ):
466+ callbacks ['fees' ](msg ['response' ])
458467 elif (msg ['action' ] == 'privateGetBalance' ):
459468 callbacks ['balance' ](msg ['response' ])
460469 elif (msg ['action' ] == 'privateDepositAssets' ):
@@ -674,6 +683,13 @@ def account(self, callback):
674683 self .callbacks ['account' ] = callback
675684 self .doSend (self .ws , json .dumps ({ 'action' : 'privateGetAccount' }), True )
676685
686+ def fees (self , market , callback = None ):
687+ if callable (market ):
688+ callback = market
689+ market = None
690+ self .callbacks ['fees' ] = callback
691+ self .doSend (self .ws , json .dumps ({ 'action' : 'privateGetFees' , 'market' : market }), True )
692+
677693 # options: symbol
678694 def balance (self , options , callback ):
679695 options ['action' ] = 'privateGetBalance'
0 commit comments