Skip to content

交易发生错误 #1

@chenpu85

Description

@chenpu85

File "D:\Program Files\Code\python2732\lib\urllib2.py", line 382, in _call_chain
result = func(*args)
File "D:\Program Files\Code\python2732\lib\urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 400: Bad Request

您好,用了您的API,查询账户什么的都没问题,交易就会出错,上面是错误信息,请问是什么原因呢?谢谢!
下面是代码:

markets = client.get(get_api_path('markets'))
print markets

sell 10 dogecoins at price 0.01

params = {'market': 'dogcny', 'side': 'sell', 'volume': 10, 'price': 0.01}
res = client.post(get_api_path('orders'), params)
print res

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions