def __call__(self):
df = ts.get_realtime_quotes(self._symbol)
order = {
'action': 'SELL',
'symbol': self._symbol,
'type': 'LIMIT',
'price': float(df['bid'][0]),
'amountProportion': 'ALL'
}
for client_alias in self._client_aliases:
try:
client = self._client_aliases[client_alias]
self._client.execute(client, **order)
except:
self._logger.exception('???[%s]?????', client_alias)
评论列表
文章目录