@@ -416,7 +416,7 @@ def on_message(self, ws, msg):
416416
417417 if 'error' in msg :
418418 if msg ['errorCode' ] == 105 :
419- ws .bitvavo .updateRateLimit (msg )
419+ self .bitvavo .updateRateLimit (msg )
420420 if 'error' in callbacks :
421421 callbacks ['error' ](msg )
422422 else :
@@ -471,13 +471,14 @@ def on_message(self, ws, msg):
471471 market = msg ['response' ]['market' ]
472472 if ('book' in callbacks ):
473473 callbacks ['book' ](msg ['response' ])
474- if (ws .keepBookCopy ):
474+ if (self .keepBookCopy ):
475475 if (market in callbacks ['subscriptionBook' ]):
476476 callbacks ['subscriptionBook' ][market ](ws , msg )
477477
478478 elif ('event' in msg ):
479479 if (msg ['event' ] == 'authenticate' ):
480- ws .authenticated = True
480+ self .authenticated = True
481+ debugToConsole ('Authenticated Websocket.' )
481482 elif (msg ['event' ] == 'fill' ):
482483 market = msg ['market' ]
483484 callbacks ['subscriptionAccount' ][market ](msg )
@@ -499,7 +500,7 @@ def on_message(self, ws, msg):
499500 if ('subscriptionBookUpdate' in callbacks ):
500501 if (market in callbacks ['subscriptionBookUpdate' ]):
501502 callbacks ['subscriptionBookUpdate' ][market ](msg )
502- if (ws .keepBookCopy ):
503+ if (self .keepBookCopy ):
503504 if (market in callbacks ['subscriptionBook' ]):
504505 callbacks ['subscriptionBook' ][market ](ws , msg )
505506 elif (msg ['event' ] == 'trade' ):
0 commit comments