Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Adding Collateral to Shorts?  (Read 751 times)

0 Members and 1 Guest are viewing this topic.

clout

  • Guest
Adding Collateral to Shorts?
« 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
« Last Edit: August 29, 2014, 12:28:35 PM by clout »

Online alt

Re: Adding Collateral to Shorts?
« Reply #1 on: August 29, 2014, 03:10:32 PM »
can't work too

Offline HackFisher

  • Hero Member
  • *****
  • Posts: 883
    • View Profile
Re: Adding Collateral to Shorts?
« Reply #2 on: August 29, 2014, 03:32:12 PM »
for now, cover part of the old short, place new shorts
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline joele

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Re: Adding Collateral to Shorts?
« Reply #3 on: September 11, 2014, 09:25:35 AM »
Is there a new update to add collateral to short?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12242
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: Adding Collateral to Shorts?
« Reply #4 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
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline joele

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Re: Adding Collateral to Shorts?
« Reply #5 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?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12242
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: Adding Collateral to Shorts?
« Reply #6 on: September 11, 2014, 03:52:32 PM »
wallet_market_order_list USD BTSX
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline joele

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Re: Adding Collateral to Shorts?
« Reply #7 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

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12242
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: Adding Collateral to Shorts?
« Reply #8 on: September 11, 2014, 05:08:42 PM »
I have a feeling you are not using the most recent verison 0.4.14!
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline vikram

Re: Adding Collateral to Shorts?
« Reply #9 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.

Online alt

Re: Adding Collateral to Shorts?
« Reply #10 on: September 19, 2014, 08:01:09 AM »
I think this still not work at version 0.4.16-rc1?

clout

  • Guest
Re: Adding Collateral to Shorts?
« Reply #11 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.

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3309
    • View Profile
Re: Adding Collateral to Shorts?
« Reply #12 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.
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.


Offline vikram

Re: Adding Collateral to Shorts?
« Reply #14 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

 

Google+