BitShares Forum

Main => Technical Support => Topic started by: erick on August 23, 2014, 08:17:51 pm

Title: RPC Error- when cancelling orders (resolved)
Post by: erick on August 23, 2014, 08:17:51 pm
RPC Server Error: In method 'wallet_market_cancel_order': unknown market order (20011)

this is the error i get when i try to cancel an order that has been around for several days. Any ideas on what i should do?
Title: Re: RPC Error- when cancelling orders
Post by: bytemaster on August 24, 2014, 02:56:59 am
RPC Server Error: In method 'wallet_market_cancel_order': unknown market order (20011)

this is the error i get when i try to cancel an order that has been around for several days. Any ideas on what i should do?

Yes... we are looking into this.   Can you provide the output of
Code: [Select]
wallet_market_order_list USD BTSX
Then try the console command

Code: [Select]
wallet_market_cancel_order XXXXXXXXX


Title: Re: RPC Error- when cancelling orders
Post by: erick on August 24, 2014, 11:04:56 pm
this is what it says when i try canceling through the console
===========================================================================

>> wallet_market_cancel_order  BTSXdYHj8w3A5qtFHnmJUgMpmZ2UcHxWsq6K

20011 unknown_market_order: unknown market order

    {"owner_address":"BTSXdYHj8w3A5qtFHnmJUgMpmZ2UcHxWsq6K"}
    bitshares  wallet.cpp:3982 bts::wallet::wallet::cancel_market_order

    {"owner_address":"BTSXdYHj8w3A5qtFHnmJUgMpmZ2UcHxWsq6K"}
    bitshares  wallet.cpp:4062 bts::wallet::wallet::cancel_market_order

    {}
    bitshares  common_api_client.cpp:1459 bts::rpc_stubs::common_api_client::wallet_market_cancel_order

    {"command":"wallet_market_cancel_order"}
    bitshares  cli.cpp:471 bts::cli::detail::cli_impl::execute_command
Title: Re: RPC Error- when cancelling orders
Post by: erick on August 24, 2014, 11:15:06 pm
I also listed the orders per your instruction , these are the ones i need to cancel.

>> wallet_market_order_list STAR BTSX

TYPE        QUANTITY            PRICE                         BALANCE             COST                COLLATERAL          ID                                 
================================================================================================================================
ask_order   97.00000 BTSX       103.0927835051546 STAR / BTSX 97.00000 BTSX       9,999. STAR         N/A                 BTSXdYHj8w3A5qtFHnmJUgMpmZ2UcHxWsq6K
ask_order   14.28570 BTSX       105.000105000105 STAR / BTSX  14.28570 BTSX       1,499. STAR         N/A                 BTSXCVpemYDK4tXkkC8rm3QM9bzWamUoDNGXR
ask_order   200.00000 BTSX      500. STAR / BTSX              200.00000 BTSX      100,000. STAR       N/A                 BTSXMFvisi2qbBYmpFfwMreNTF8aDevrZtnSK
Title: Re: RPC Error- when cancelling orders
Post by: erick on August 26, 2014, 04:06:48 am
I cannot seem to cancel these orders still.

Please tell me my btsx are going to come back to me. :-[
Title: Re: RPC Error- when cancelling orders
Post by: bytemaster on August 26, 2014, 04:13:22 am
I cannot seem to cancel these orders still.

Please tell me my btsx are going to come back to me. :-[


Very odd.. I'll look into it now.
Title: Re: RPC Error- when cancelling orders
Post by: erick on August 27, 2014, 04:53:03 am
this is crazy none of my old orders will cancel, it is a market wide problem for me. If I place an order and after several days it is not filled , it just won't let me cancel them. doesn't matter what im buying or anything. :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'(
WWWWWWWWWWWWWWWAAAAAAAAAAAAAAAAAAAAAAAAAA!!!!!!!!!!!!!!!!!!!!
Title: Re: RPC Error- when cancelling orders
Post by: erick on August 27, 2014, 05:02:02 pm
 :D :D :D :D
OMG ok I am finding if i rescan each transaction manually then try to manually cancel them , they will cancel finally. However I still have some vanishing orders. but if anyone else has this problem do this

wallet_transaction_scan <blocknum> <transactionID>

wallet_market_cancel_order <OrderID>

Order ID is different from transaction ID, you can get the order id by running

wallet_market_order_list USD BTSX
Title: Re: RPC Error- when cancelling orders (resolved)
Post by: vikram on September 10, 2014, 03:31:59 am
Are you able to successfully cancel in 0.4.13 (https://github.com/dacsunlimited/bitsharesx/releases/tag/v0.4.13) using the console commands "wallet_market_order_list" and "wallet_market_cancel_order" ?