Skip to content

cancel order bug #1

@threewave-hun

Description

@threewave-hun

def cancel_order(self, symbol: str, orderId: int = None, origClientOrderId: str = None, **kwargs):
check_required_parameter(symbol, "symbol")
params = {"symbol": symbol, **kwargs}
url_path = "/fapi/v1/order"
return self.sign_request("DELETE", url_path, params)

old edition not working
change to

def cancel_order(self, symbol: str, orderId: int = None, origClientOrderId: str = None, **kwargs):
check_required_parameter(symbol, "symbol")
params = {"symbol": symbol, **kwargs}
if orderId:
params['orderId'] = orderId
if origClientOrderId:
params['origClientOrderId'] = origClientOrderId
url_path = "/fapi/v1/order"
return self.sign_request("DELETE", url_path, params)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions