MCPcopy Create free account
hub / github.com/Gunthersuper/Binance-Futures-Python-Examples / check_orders

Function check_orders

main1.py:172–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170 )
171
172def check_orders():
173 try:
174 response = client.get_orders(recvWindow=6000)
175 sym = []
176 for elem in response:
177 sym.append(elem['symbol'])
178 return sym
179 except ClientError as error:
180 print(
181 "Found error. status: {}, error code: {}, error message: {}".format(
182 error.status_code, error.error_code, error.error_message
183 )
184 )
185
186# Close open orders for the needed symbol. If one stop order is executed and another one is still there
187def close_open_orders(symbol):

Callers 1

main1.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected