def _buy(self, amount, price):
"""Create a buy limit order"""
params = {"amount": amount, "price": price}
response = self._send_request(self.buy_url, params)
if "error" in response:
raise TradeException(response["error"])
评论列表
文章目录