Skip to content

Python V2 client does not place orders correctly #333

@somaito

Description

@somaito

Hi there, I've been following the examples provided in the repo but the behaviours are not exactly what I expect - potentially issues.

  1. [stop market order] It places a limit order and it gets triggered/filled immediately even when the triggger condition is not met - e.g. cur price > trigger price for sell (not acting stop loss). The same behaviour has been observed by dYdX Foundation team as well: Discord link .
  2. [market order] It places a limit order instead of a market order. On dYdX web UI, you can place a market order so it seems to be an issue on the client. It works, but is a bit misleading.
  3. [price param] The function signature says it's int but it takes float as well e.g. for DOGE. It might not be a mandatory parameter for market orders.

I wonder how the order function tells apart (limit) price and trigger price. e.g. How we set STOP LIMIT order? The param conditional_order_trigger_subticks might play the role...but it's not provided in the example.

Image

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