RE: Cancel Order's Stuck
You are viewing a single comment's thread:
If you print:
order_id = sell_orders[0].get('_id') # Get the first order in the list
print(sell_orders[0]) does it actually belong to the account that is trying to cancel it.
The rest looks okay, but I think maybe your query to get the list of open orders is returning everyone's and not just yours, so you may be trying to cancel the first order in the list, even if it's not the one you want.
        0
      
        0
      
    0.000 
  
 
So it's the entire sellbook?
I'll have to read it over. I was getting null returns when I was using orders and open orders...
The issue I was having was it wants the order id... but is the sellbook ID different? They appear different.
Can you cancel orders with a TX ID or would I need to find the correlatting order for that TX ID?
I may not be asking correctly, because you know I'm learning on my own. Not trying to be difficult.
Yes, if you look a the docs: https://github.com/hive-engine/hivesmartcontracts-wiki/blob/main/Market-Smart-Contract.md
'll check it out. If I have any other questions I'll be back.