Skip to content

Commit

Permalink
delete comment and run() method
Browse files Browse the repository at this point in the history
  • Loading branch information
hootnot committed Jan 22, 2016
1 parent 0e5cc73 commit 5d4fdd5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tests/rates_and_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,12 @@ class DisconnectException(Exception):


class MyStream(oandapy.Streamer):
"""
class to parse the OANDA stream
tick records are processed into candles of different timeframes
candles that are ready are processed by the plugin manager
"""

def __init__(self, count=10, *args, **kwargs):
super(MyStream, self).__init__(*args, **kwargs)
self.count = count
self.reccnt = 0

def run(self, endpoint, ignore_heartbeat=False, **params):
# We want the heartbeats
super(MyStream, self).run(endpoint, ignore_heartbeat, **params)

def on_success(self, data):
print data, "\n"
self.reccnt += 1
Expand Down

0 comments on commit 5d4fdd5

Please sign in to comment.