Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Place_Order Issue #51

Description

Python Installation: 3.6.0

Error message when attempting to submit an order.

`

created_order = client.place_order(
... market=consts.PAIR_PBTC_USDC,
... side=consts.SIDE_BUY,
... amount=utils.btc_to_sats(.1),
... price=Decimal('72.34'),
... fillOrKill=False,
... postOnly=False)
Traceback (most recent call last):
File "", line 7, in
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\dydx\client.py", line 658, in place_order
'order': order_api_request
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\dydx\client.py", line 57, in _post
return self._request('post', *args, **kwargs)
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\dydx\client.py", line 50, in _request
raise DydxAPIError(response)
dydx.exceptions.DydxAPIError: DydxAPIError(status_code=400)(response={'errors': [{'param': '_error', 'msg': 'Invalid value(s)', 'nestedErrors': [{'location': 'body', 'param': 'order.baseMarket', 'msg': 'Invalid value'}, {'location': 'body', 'param': 'order.quoteMarket', 'msg': 'Invalid value'}, {'location': 'body', 'param': 'order.amount', 'value': '10000000.0', 'msg': 'Invalid value'}, {'location': 'body', 'param': 'order.makerAccountNumber', 'msg': 'Invalid value'}, {'location': 'body', 'param': 'order.makerAccountOwner', 'msg': 'Invalid value'}, {'location': 'body', 'param': 'order.makerAccountOwner', 'msg': 'Invalid value'}, {'location': 'body', 'param': 'order.amount', 'value': '10000000.0', 'msg': 'Invalid value'}]}]})

`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions