BitShares Forum

Main => General Discussion => Topic started by: clout on August 29, 2014, 12:08:40 pm

Title: Adding Collateral to Shorts?
Post by: clout on August 29, 2014, 12:08:40 pm
I'm trying to add collateral to my short but I can't get it to work. What am I doing wrong?

Code: [Select]
wallet_market_add_collateral the-ae BTSXFWa7xJhsXyAhoFf4b4daREPRWkER6H3VC 7000

37002 unknown_market_order: unknown market order

    {"cover_index":{"order_price":{"ratio":"0.004166666666666666","quote_asset_id":22,"base_asset_id":0},"owner":"BTSXFWa7xJhsXyAhoFf4b4daREPRWkER6H3VC"}}
    bitshares  market_operations.cpp:276 evaluate

    {"op":{"type":"add_collateral_op_type","data":{"amount":7000,"cover_index":{"order_price":{"ratio":"0.004166666666666666","quote_asset_id":22,"base_asset_id":0},"owner":"BTSXFWa7xJhsXyAhoFf4b4daREPRWkER6H3VC"}}}}
    bitshares  operation_factory.hpp:52 evaluate

    {"trx":{"expiration":"20140829T130255","delegate_slate_id":null,"operations":[{"type":"add_collateral_op_type","data":{"amount":7000,"cover_index":{"order_price":{"ratio":"0.004166666666666666","quote_asset_id":22,"base_asset_id":0},"owner":"BTSXFWa7xJhsXyAhoFf4b4daREPRWkER6H3VC"}}},{"type":"withdraw_op_type","data":{"balance_id":"BTSXKdRTPR3akmRZAYb7yBZ4cRPir15a5M65x","amount":17000,"claim_input_data":""}}],"signatures":["1ff19d69a72741bc45eddf59ed1f2e6c78df222fe77bc5a597f86a275084559d3199db4de8e10993fb842e0ce64984ea134358a8c85270846e9b7084e941d8d221","1f7ec22babad9e8ecf7e28e097c94116feebaae7a72809fe7ddfeb7566725346469525f025651aa28d689ba463757babb5d6f67da0d2327a76a541d9ebf8cb4335"]}}
    bitshares  transaction_evaluation_state.cpp:181 evaluate

    {"trx":{"expiration":"20140829T130255","delegate_slate_id":null,"operations":[{"type":"add_collateral_op_type","data":{"amount":7000,"cover_index":{"order_price":{"ratio":"0.004166666666666666","quote_asset_id":22,"base_asset_id":0},"owner":"BTSXFWa7xJhsXyAhoFf4b4daREPRWkER6H3VC"}}},{"type":"withdraw_op_type","data":{"balance_id":"BTSXKdRTPR3akmRZAYb7yBZ4cRPir15a5M65x","amount":17000,"claim_input_data":""}}],"signatures":["1ff19d69a72741bc45eddf59ed1f2e6c78df222fe77bc5a597f86a275084559d3199db4de8e10993fb842e0ce64984ea134358a8c85270846e9b7084e941d8d221","1f7ec22babad9e8ecf7e28e097c94116feebaae7a72809fe7ddfeb7566725346469525f025651aa28d689ba463757babb5d6f67da0d2327a76a541d9ebf8cb4335"]}}
    bitshares  chain_database.cpp:1220 evaluate_transaction

    {"trx":{"expiration":"20140829T130255","delegate_slate_id":null,"operations":[{"type":"add_collateral_op_type","data":{"amount":7000,"cover_index":{"order_price":{"ratio":"0.004166666666666666","quote_asset_id":22,"base_asset_id":0},"owner":"BTSXFWa7xJhsXyAhoFf4b4daREPRWkER6H3VC"}}},{"type":"withdraw_op_type","data":{"balance_id":"BTSXKdRTPR3akmRZAYb7yBZ4cRPir15a5M65x","amount":17000,"claim_input_data":""}}],"signatures":["1ff19d69a72741bc45eddf59ed1f2e6c78df222fe77bc5a597f86a275084559d3199db4de8e10993fb842e0ce64984ea134358a8c85270846e9b7084e941d8d221","1f7ec22babad9e8ecf7e28e097c94116feebaae7a72809fe7ddfeb7566725346469525f025651aa28d689ba463757babb5d6f67da0d2327a76a541d9ebf8cb4335"]}}
    bitshares  chain_database.cpp:1651 store_pending_transaction

    {}
    bitshares  wallet.cpp:2450 sign_and_cache_transaction

    {"from_account_name":"the-ae","short_id":"BTSXFWa7xJhsXyAhoFf4b4daREPRWkER6H3VC","collateral_to_add":7000,"sign":true}
    bitshares  wallet.cpp:4460 add_collateral

    {}
    bitshares  common_api_client.cpp:1443 wallet_market_add_collateral

    {"command":"wallet_market_add_collateral"}
    bitshares  cli.cpp:471 execute_command
Title: Re: Adding Collateral to Shorts?
Post by: alt on August 29, 2014, 03:10:32 pm
can't work too
Title: Re: Adding Collateral to Shorts?
Post by: HackFisher on August 29, 2014, 03:32:12 pm
for now, cover part of the old short, place new shorts
Title: Re: Adding Collateral to Shorts?
Post by: joele on September 11, 2014, 09:25:35 am
Is there a new update to add collateral to short?
Title: Re: Adding Collateral to Shorts?
Post by: xeroc on September 11, 2014, 09:49:08 am
Is there a new update to add collateral to short?
wallet_market_add_collateral
Code: [Select]
wallet_market_add_collateral <from_account_name> <short_id> <collateral_to_add>                       Add collateral to a short position

console-only atm
Title: Re: Adding Collateral to Shorts?
Post by: joele on September 11, 2014, 03:41:37 pm
Is there a new update to add collateral to short?
wallet_market_add_collateral
Code: [Select]
wallet_market_add_collateral <from_account_name> <short_id> <collateral_to_add>                       Add collateral to a short position

console-only atm

Thanks xeroc,
Is there an easy way to find the <short_id> without digging the transaction history?
Title: Re: Adding Collateral to Shorts?
Post by: xeroc on September 11, 2014, 03:52:32 pm
wallet_market_order_list USD BTSX
Title: Re: Adding Collateral to Shorts?
Post by: joele on September 11, 2014, 05:05:13 pm
wallet_market_order_list USD BTSX

After the command "wallet_market_order_list USD BTSX" copied and pasted the Order Id, I'm getting this error with command
wallet_market_add_collateral bytes 2ca7bd713ce246fe27c9f591fc5ecf945574e6f3 10


20011 unknown_market_order: unknown market order
Cannot find that market order!
    {}
    bitshares  wallet.cpp:4839 bts::wallet::wallet::add_collateral

    {"from_account_name":"bytes","short_id":"2ca7bd713ce246fe27c9f591fc5ecf945574e6f3","collateral_to_add":10,"sign":true}
    bitshares  wallet.cpp:4876 bts::wallet::wallet::add_collateral

    {}
    bitshares  common_api_client.cpp:1491 bts::rpc_stubs::common_api_client::wallet_market_add_collateral

    {"command":"wallet_market_add_collateral"}
    bitshares  cli.cpp:537 bts::cli::detail::cli_impl::execute_command
Title: Re: Adding Collateral to Shorts?
Post by: xeroc on September 11, 2014, 05:08:42 pm
I have a feeling you are not using the most recent verison 0.4.14!
Title: Re: Adding Collateral to Shorts?
Post by: vikram on September 11, 2014, 05:22:05 pm
Adding collateral is not officially supported yet (thus not exposed in the GUI). I will try to get this working for 0.4.15.
Title: Re: Adding Collateral to Shorts?
Post by: alt on September 19, 2014, 08:01:09 am
I think this still not work at version 0.4.16-rc1?
Title: Re: Adding Collateral to Shorts?
Post by: clout on September 19, 2014, 03:07:06 pm
You're not supposed to add collateral to cover orders you are supposed to buy the bitasset and cover your position. This effectively reduces your margin requirement, which is what your trying to do by adding collateral in btsx. I didn't get it at first but I think its better if short positions have to pay off their debt as opposed to adding more btsx as collateral.
Title: Re: Adding Collateral to Shorts?
Post by: tonyk on September 19, 2014, 03:18:05 pm
You're not supposed to add collateral to cover orders you are supposed to buy the bitasset and cover your position. This effectively reduces your margin requirement, which is what your trying to do by adding collateral in btsx. I didn't get it at first but I think its better if short positions have to pay off their debt as opposed to adding more btsx as collateral.

Hmm...
Where have you been as of late,btw? We miss you around here.
Title: Re: Adding Collateral to Shorts?
Post by: CLains on September 19, 2014, 03:59:29 pm
We miss you indeed! How are your Delegates doing?
Title: Re: Adding Collateral to Shorts?
Post by: vikram on September 19, 2014, 04:00:51 pm
I think this still not work at version 0.4.16-rc1?

Yes it has not been tested yet; I will post back in this thread when it is fixed.

https://github.com/BitShares/bitshares_toolkit/issues/768
Title: Re: Adding Collateral to Shorts?
Post by: clout on September 20, 2014, 02:53:59 pm
We miss you indeed! How are your Delegates doing?

I went on vacation and there were way too many updates so my delegates went on vacation also. I'm waiting till the next major update to get my delegates running again.
Title: Re: Adding Collateral to Shorts?
Post by: Methodise on November 16, 2014, 12:22:09 am
Every bull should volunteer additional capital to their shorts. They're ridiculously cheap, after all.

I reckon deleveraging results in them being harder systemic meal for whale sharks. Suggest that there are some GUI-defaults dictating too much in the way of market dynamics atm.

Title: Re: Adding Collateral to Shorts?
Post by: Methodise on November 17, 2014, 12:55:00 am
I might be wrong, according to everything I don't understand about this:

"The Second attempt (prior to 0.4.20) has shorts bid up collateral, but
this provides less and less benefit to the network as prices go higher... i.e.:
10x collateral only provides 5% more downward protection than 5x collateral."

Is that right? I'm thinking in terms of forced cover cascades of manipulative origin.

http://wiki.bitshares.org/index.php/BitShares/Short