bitx.py 文件源码

python
阅读 41 收藏 0 点赞 0 评论 0

项目:bitrader 作者: jr-minnaar 项目源码 文件源码
def create_limit_order(self, order_type, volume, price):
        """
        Create a new limit order
        :param order_type: 'buy' or 'sell'
        :param volume: the volume, in BTC
        :param price: the ZAR price per bitcoin
        :return: the order id
        """
        data = {
            'pair': self.pair,
            'type': 'BID' if order_type == 'buy' else 'ASK',
            'volume': str(volume),
            'price': str(price)

        }
        result = self.api_request('postorder', params=data, http_call='post')
        return result
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号