BitShares Forum

Main => 中文 (Chinese) => Topic started by: sudo on August 28, 2014, 03:09:33 pm

Title: 教你如何手动部分平仓(cover)
Post by: sudo on August 28, 2014, 03:09:33 pm
GUI有问题,cover里的数量只能全额,修改后不到1s会跳回去,特别有小数点的更加来不及,点错就全部平仓了。
cover 平仓,就是用id里的USD还给系统,解冻抵押的bts,必须全部归还才会解冻抵押的bts。
部分平仓相当于,提高保证金比例,降低爆仓风险。

先找我们单子的操作id
>> wallet_market_order_list  USD BTSX 10 你下空单的id
列表最右侧的就是了
Code: [Select]
>> help wallet_market_order_list

Usage:
wallet_market_order_list <base_symbol> <quote_symbol> [limit] [account_name]                          List an order list of a specific market
List an order list of a specific market

Parameters:
  base_symbol (asset_symbol, required): the base symbol of the market
  quote_symbol (asset_symbol, required): the quote symbol of the market
  limit (int64_t, optional, defaults to -1): the maximum number of items to return
  account_name (account_name, optional, defaults to "ALL"): the account for which to get the orders, or 'ALL' to get them all

Returns:
  market_order_array

aliases: list_orders

下一步 平仓
wallet_market_cover  你下单的id  平仓数量比如200  USD 上一步你找到的id
wallet_market_cover  id  200 USD BTSX………………
Code: [Select]
>> help wallet_market_cover

Usage:
wallet_market_cover <from_account_name> <quantity> <quantity_symbol> <order_id>                       Used to place a request to cover an existing short position
Used to place a request to cover an existing short position

Parameters:
  from_account_name (account_name, required): the account that will provide funds for the ask
  quantity (real_amount, required): the quantity of items you would like to cover
  quantity_symbol (asset_symbol, required): the type of asset you are covering (ie: USD)
  order_id (address, required): the order ID you would like to cover

Returns:
  signed_transaction

aliases: cover
Title: Re: 教你如果手动部分平仓(cover)
Post by: ssjpts on August 28, 2014, 04:53:26 pm
最好用界面形式演示,命令行对我们来说太高端了。
Title: Re: 教你如何手动部分平仓(cover)
Post by: ripplexiaoshan on August 28, 2014, 06:52:36 pm
这个用图形界面也完全可以实现啊,没必要用命令行
Title: Re: 教你如何手动部分平仓(cover)
Post by: sudo on August 28, 2014, 07:35:27 pm
这个用图形界面也完全可以实现啊,没必要用命令行

你试试看 0.4.8b  改cover里的数字,马上回跳原来的数字。没法部分平仓。
除非在跳回去前提交。我就被坑了。

ps 还有个问题 不知道你们遇到过没有。

我部分平仓后,强平价格似乎变化了 比例从1.5变成了1.33333
不是说抵押物=USD*150%就是强制平仓价么

部分cover平仓后,USD减少,但是BTS不变的,降低了风险。

比例=   xts数÷强平价格(单位是比如25btsx/usd)÷抵押的USD
short单 原始比例=1.5
部分平仓后 比例=1.3333

Title: Re: 教你如何手动部分平仓(cover)
Post by: sudo on August 29, 2014, 12:50:24 am
0.4.9a已修复bug
http://www.dacsunlimited.com/binaries/wallet/0.4.9/BitSharesX-0.4.9-a.exe
Title: Re: 教你如何手动部分平仓(cover)
Post by: suzhu01 on August 29, 2014, 01:53:20 am
很好啊,谢谢j神分享经验