Skip to content

Instantly share code, notes, and snippets.

@jsgaston
Created February 3, 2022 22:45
Show Gist options
  • Save jsgaston/df819487b00c60eef9f3b1b9345853dc to your computer and use it in GitHub Desktop.
Save jsgaston/df819487b00c60eef9f3b1b9345853dc 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