Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - crazybit

Pages: 1 ... 20 21 22 23 24 25 26 [27] 28 29
391
中文 (Chinese) / Re: 请教强制平仓的算法
« on: February 10, 2014, 12:55:28 pm »
强制平仓只发生在做空的情况下,这时保证金就是BTS啊,如果你的BTS不够,也就是说保证金不够,那么你就不能做空大单子。这其实就是为什么BTS价格会涨的原因,因为你想做空多大的单子,就得准备两倍价值的BTS来抵押。
你假设的极端情况其实不存在,既然价格那么高,那总会有人忍不住来卖掉的

是卖空单已经成交之后,倘若交易引擎在撮合普通的买卖单之后,BTA价格已经远远高于平仓价格,会可能出现抵押的BTS用完都无法平仓的情况。

392
中文 (Chinese) / Re: 请教强制平仓的算法
« on: February 10, 2014, 12:49:47 pm »
你的这个问题我这两天也在想,没有usd卖单的情况现有算法可以handle,但是保障金用完还不能平仓的问题似乎现有算法没有顾及到。

393
General Discussion / Re: BitShares X Status Update
« on: February 10, 2014, 12:43:58 pm »
According to the exiting margin call algorithm,if the bid price is much lower than the highest call price after matching the normal market order,is it possible that even the collateral BTS has been used up, but still can not cover the short position?
Quote
                       {
                           // consume the full call, leave change in the bid
                            auto cover_amount = payoff * call_price;
                            working_call.amount -= cover_amount; // is it possible the working_call.amount<=0
                            loan_amount         += payoff;
                            collateral_amount   += cover_amount + cover_amount;
                            working_bid.amount  -= cover_amount;

                            market_trx.inputs.push_back( call_itr->location );
                            if( working_call.amount.get_rounded_amount() > 0 )
                            {
                               // TODO.. charge a 5% fee
                               market_trx.outputs.push_back(
                                                   trx_output( claim_by_signature_output( cover_claim.owner ), working_call.amount ) );
                            }
                            ++call_itr;
                            if( call_itr != margin_positions.end() )
                            {
                               working_call = get_output( call_itr->location );
                               cover_claim  = working_call.as<claim_by_cover_output>();
                            }
                         }

394
想钱想疯了!不会这都有人投吧


Sent from my iPhone using Tapatalk

395
General Discussion / Re: BitShares X Status Update
« on: February 02, 2014, 07:31:08 am »
Today I made more progress on the block generation and validation algorithm.   The wallet has successfully mined a few blocks and the difficulty goes up when there is not enough Proof of Stake. 

Tomorrow I will do the following:
1) Select inputs from your wallet oldest-first so that your transactions can be validated as quickly as possible and contribute the most to securing the chain.
2) Automatically generate transactions to yourself if it will generate enough CDD to reduce the difficulty to the minimum amount.

In response to the question about eliminating mining, I have concluded that ripple-style consensus would have more downsides than straight up POS mining.  Namely, even with 100 nodes people would call it centralized.   I will probably work on a consensus based system in the future, but the POS mining is easier now.

Unlike NXT most of the transactions fees are paid as dividends and only a small portion paid to miners.   Also unlike NXT, everyone is contributing to the security of the network when they make a transaction.
the update bts wallet client unable to connect to bitshares network now, need any special setting?

396
中文 (Chinese) / Re: 讨论下2.28的BTS X测试链
« on: January 30, 2014, 01:59:15 am »
28号测试链不可能成为正式链,对安全最核心的pos+consensus代码还没完成,现在只是单点生成block,这样的链条作为正式版是很危险的。
快去github,Dan刚提交了部分共识代码  :D

效率太高了,我得多换点AGS.

397
中文 (Chinese) / Re: 讨论下2.28的BTS X测试链
« on: January 30, 2014, 12:45:09 am »
28号测试链不可能成为正式链,对安全最核心的pos+consensus代码还没完成,现在只是单点生成block,这样的链条作为正式版是很危险的。

398
General Discussion / Re: any document for the maching algorithm?
« on: January 28, 2014, 01:13:33 pm »
I test agian, yes, you are right. C will buy from B
I should make it more clear:
1.  short 1000 usd with price 100usd/bts
2.  short  1000 usd with price 100.1usd/bts
3.  short 1000 usd with price 100.2 usd/bts
   ......
10.  short 1000 usd with price 100.9 usd/bts
   
     If someone want to buy 10000 usd, how should he give the order?
     For the algorithm now, he had to give 10 orders with price 100, 100.1, 100.2, 100.3 ......
     It's not good
no, according to the existing market order matching algorithm, C will buy 1000 usd from B with price 1 usd/bts.

btw, why C place the order with the price 1 usd/bts if market has already offerred price 100 usd/bts :-X

i agree with you that this is a problem. the market order was always executed at the ask price if the ask price is lower than the bid price.

399
General Discussion / Re: any document for the maching algorithm?
« on: January 28, 2014, 12:10:57 pm »
no, according to the existing market order matching algorithm, C will buy 1000 usd from B with price 1 usd/bts.

btw, why C place the order with the price 1 usd/bts if market has already offerred price 100 usd/bts :-X

400
General Discussion / Re: BitShares X Status Update
« on: January 28, 2014, 01:17:34 am »

Your change output has not been confirmed yet. 


Sent from my iPhone using Tapatalk

Hi Daniel. Thank you for your reply. Usually how long does it take to confirm a tx? Around one day has passed, but until now my banlance is still 9bts+11usd, 1bts+89usd still missing. what is strange is that,  I offered 1 usd to buy 1 bts, why 1bts is also deducted from my account?
1usd can not buy 1bts now,your order should be pending and not executed yet,pls check in the section "open bid" of your balance.


Sent from my iPhone using Tapatalk

401
Technical Support / Re: how to setup the development workspace
« on: January 25, 2014, 01:13:10 pm »
anyone can debug the workspace? i tried to debug on win platform, but failed.

402
Technical Support / Re: how to setup the development workspace
« on: January 25, 2014, 01:10:14 pm »
I did... but I have the same issue :(
install the Berkeley db and include the required header file and library in the bshare project.

403
中文 (Chinese) / Re: 讨论下bts成交撮合算法
« on: January 24, 2014, 08:52:10 am »

这个例子里A以0.01bts的价格发行了usd,而b以0.1bts的价格买入,此时usd以0.1bts的价格成交,倘若此时b在以1bts的价格微量买入use会不会导致a瞬间暴仓呢?


Sent from my iPhone using Tapatalk
自己的问题刚刚想明白了,刚开始没有市场深度的时候这情况有可能发生的,市场深度跟量出来了就不太可能发生以上情况了。


Sent from my iPhone using Tapatalk

404
中文 (Chinese) / Re: 讨论下bts成交撮合算法
« on: January 24, 2014, 08:12:28 am »
这个例子里A以0.01bts的价格发行了usd,而b以0.1bts的价格买入,此时usd以0.1bts的价格成交,倘若此时b在以1bts的价格微量买入use会不会导致a瞬间暴仓呢?


Sent from my iPhone using Tapatalk

405
Technical Support / how to setup the development workspace
« on: January 23, 2014, 03:37:55 pm »
seems hackfisher has fix the issue,pull the update code and retry.


Sent from my iPhone using Tapatalk

Pages: 1 ... 20 21 22 23 24 25 26 [27] 28 29