Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Modify Order #108

Closed
rahulpoptani opened this issue Jun 3, 2023 · 2 comments
Closed

Unable to Modify Order #108

rahulpoptani opened this issue Jun 3, 2023 · 2 comments

Comments

@rahulpoptani
Copy link

Unable to modify SL open order, Got exception:
Found error. status: 400, error code: -1102, error message: Mandatory parameter 'price' was not sent, was empty/null, or malformed.

client = UMFutures(key=API_KEY,secret=API_SECRET)
try:
    response = client.modify_order(symbol='BTCUSDT',side='SELL',quantity=0.001,price=27010.00,orderId=123412341234)
    print(response)
except ClientError as error:
    print("Found error. status: {}, error code: {}, error message: {}".format(error.status_code, error.error_code, error.error_message))
@rahulpoptani
Copy link
Author

price is missing while building params. After fixing this I was able to modify LIMIT orders as mentioned in the documentation.

@2pd
Copy link
Contributor

2pd commented Jul 3, 2023

Fixed in #116

@2pd 2pd closed this as completed Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants