Skip to content

Bug: error with modifying orders in Binance Python Derivatives Trading (USDS-M Futures) SDK #519

@mhszeto2019

Description

@mhszeto2019

Bug: modify_order WS API SDK — price is required but conflicts with price_match
The bug is in the method websocket_api.modify_order(). According to the API documentation, price and price_match "can't be passed together." This creates an impossible situation: when using price_match=QUEUE, we must omit price per the API docs, but the SDK requires price and raises an error if it's None or omitted. Passing price="" or price=None alongside price_match either fails validation or gets rejected by the server.
Expected behavior: price should be Optional (defaulting to None) so that price_match can be used independently, matching the REST API behavior where price='' with price_match="QUEUE" works correctly.

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