关注 class tpqoa(object):
def stream_data(self,instrument,stop=None,ret=False,callback=None)
response = self.ctx_stream.pricing.steam(self.account_id,snapshot=True,instruments=instruments)
......self.on_success(msg.instruments,msg.time,float(msg.bids[0].dict()['price']),float(msg.asks[0].dict()['price']))
下面来看 self.on_success()
只能交易机器人 继承了 tpqoa类 这里主要关注 oanda_agent.on_success()
后续继续写