Skip to content

Instantly share code, notes, and snippets.

@jsgaston
Created February 3, 2022 22:45
Show Gist options
  • Save jsgaston/44d26277b18f20ec2972bad055e69524 to your computer and use it in GitHub Desktop.
Save jsgaston/44d26277b18f20ec2972bad055e69524 to your computer and use it in GitHub Desktop.
if client.futures_position_information(symbol=symbolo)[-1]['positionAmt'] == '0.00000':
time.sleep(2)
client.futures_cancel_all_open_orders(symbol=symbolo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment