BitShares Forum

Main => Technical Support => Topic started by: pendragon3 on September 13, 2014, 08:58:43 pm

Title: Problem buying BitUSD: "insufficient funds"
Post by: pendragon3 on September 13, 2014, 08:58:43 pm
In 0.4.14 windows GUI version, I tried buying a small amount of BitUSD, and the BTSX balance is certainly more than enough for the purchase. However, the order doesn't go through.

I get the following message: "Order failed: insufficient funds (200101)". What could be causing this?
Title: Re: Problem buying BitUSD: "insufficient funds"
Post by: Xeldal on September 13, 2014, 11:19:33 pm
I get the same error when trying to sell bitUSD, also more than enough balance. No idea.
Title: Re: Problem buying BitUSD: "insufficient funds"
Post by: bytemaster on September 14, 2014, 12:04:23 am
Do you also have btsx in same account?
Title: Re: Problem buying BitUSD: "insufficient funds"
Post by: Xeldal on September 14, 2014, 12:11:09 am
I do.
I did a rescan as well. Same issue.

Edit:
I just noticed the transaction balance was set to zero after my initial bitUSD purchase.
There was much more than necessary to make the purchase and should not be zero after.

This is obviously causing the insufficient funds error.

I can continue to purchase more bitUSD though.  I just can't sell it.  strange.
Title: Re: Problem buying BitUSD: "insufficient funds"
Post by: Xeldal on September 14, 2014, 01:59:12 pm
0.4.14
Everything is wrong in the transaction balance section both BTSX and bitUSD keep getting set to zero.
I can't sell my bitUSD as a result, though i can buy bitUSD no problem.  Pretty inconvenient.

(https://i.imgur.com/xNtX2Bh.jpg)
Title: Re: Problem buying BitUSD: "insufficient funds"
Post by: lafona on September 14, 2014, 04:42:09 pm
Hi,

I am also having this problem with my account. It also is an issue when I go to send a transaction. The balance was 164.3762 USD and I get an insufficient funds error when I try send 10 USD. It appears like an amount from my account was locked when I placed a market order and the transaction expired. I only say this because  a small portion of my account ~6 USD was useable and the expired transaction was for ~157. I also have a small amount of BTSX ~90 in the acccount. Hope this helps. Thanks
Title: Re: Problem buying BitUSD: "insufficient funds"
Post by: bytemaster on September 14, 2014, 06:03:41 pm
This is a very interesting problem... can you send me the result of:

wallet_acount_transaction_history ACCOUNT_NAME
Title: Re: Problem buying BitUSD: "insufficient funds"
Post by: bytemaster on September 14, 2014, 06:05:28 pm
In 0.4.14 windows GUI version, I tried buying a small amount of BitUSD, and the BTSX balance is certainly more than enough for the purchase. However, the order doesn't go through.

I get the following message: "Order failed: insufficient funds (200101)". What could be causing this?

Can you run the transfer/order from the console and give me the full exception trace?
Title: Re: Problem buying BitUSD: "insufficient funds"
Post by: Xeldal on September 14, 2014, 06:34:14 pm
This is a very interesting problem... can you send me the result of:

wallet_acount_transaction_history ACCOUNT_NAME

I don't know if you were talking to me or not, but I've sent you a PM with the results anyway.
Title: Re: Problem buying BitUSD: "insufficient funds"
Post by: pendragon3 on September 14, 2014, 08:25:08 pm
In 0.4.14 windows GUI version, I tried buying a small amount of BitUSD, and the BTSX balance is certainly more than enough for the purchase. However, the order doesn't go through.

I get the following message: "Order failed: insufficient funds (200101)". What could be causing this?

Can you run the transfer/order from the console and give me the full exception trace?



PM sent.
Title: Re: Problem buying BitUSD: "insufficient funds"
Post by: lafona on September 14, 2014, 08:55:44 pm
Also sent PM. Thanks
Title: Re: Problem buying BitUSD: "insufficient funds"
Post by: lafona on September 14, 2014, 09:52:31 pm
Ok so I saw a suggestion somewhere else to rescan the whole blockchain and this seemed to work for me. The command was "rescan" and it took a little while but you can check the progress using "getinfo". You can find both commands in the consol section. Hope this helps
Title: Re: Problem buying BitUSD: "insufficient funds"
Post by: Xeldal on September 15, 2014, 02:01:04 am
Code: [Select]
>> wallet_market_submit_ask xeldal 8000 bitUSD 27 BTSX 0

10 assert_exception: Assert Exception
arec.valid():
    {}
    bitshares  chain_database.cpp:1500 bts::blockchain::chain_database::get_asset_id

    {"symbol":"bitUSD"}
    bitshares  chain_database.cpp:1502 bts::blockchain::chain_database::get_asset_id

    {"quote_symbol":"BTSX","base_symbol":"bitUSD","limit":1}
    bitshares  chain_database.cpp:2562 bts::blockchain::chain_database::get_market_bids

    {}
    bitshares  common_api_client.cpp:1475 bts::rpc_stubs::common_api_client::wallet_market_submit_ask

    {"command":"wallet_market_submit_ask"}
    bitshares  cli.cpp:555 bts::cli::detail::cli_impl::execute_command
Title: Re: Problem buying BitUSD: "insufficient funds"
Post by: xeroc on September 15, 2014, 06:33:02 am
try with "USD" instead of "bitUSD"!
Title: Re: Problem buying BitUSD: "insufficient funds"
Post by: tonyk on September 15, 2014, 06:40:31 am
try with "USD" instead of "bitUSD"!

Fuck...
Nice catch xeroc...
Title: Re: Problem buying BitUSD: "insufficient funds"
Post by: Xeldal on September 15, 2014, 03:11:39 pm
Yeah I actually had a dream last night about that very thing.  Ran down and tried USD instead.  got a different error message.

Code: [Select]
>> wallet_market_submit_ask xeldal 8000 USD 27.4 BTSX 0

37001 invalid_market: invalid market

    {"quote_asset_id":0,"base_asset_id":22}
    bitshares  chain_database.cpp:2541 bts::blockchain::chain_database::get_market_bids

    {"quote_symbol":"BTSX","base_symbol":"USD","limit":1}
    bitshares  chain_database.cpp:2562 bts::blockchain::chain_database::get_market_bids

    {}
    bitshares  common_api_client.cpp:1475 bts::rpc_stubs::common_api_client::wallet_market_submit_ask

    {"command":"wallet_market_submit_ask"}
    bitshares  cli.cpp:555 bts::cli::detail::cli_impl::execute_command