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: 测试BTS钱包集合竞价服务  (Read 446 times)

Offline alt

测试BTS钱包集合竞价服务
« on: February 04, 2015, 03:08:25 PM »

关于集合竞价交易制度可以参考这个链接,我的算法就是按照这个写的
http://wiki.mbalib.com/wiki/%E9%9B%86%E5%90%88%E7%AB%9E%E4%BB%B7

使用方法是发送 BTS、USD、CNY、EUR、GOLD、SILVER、BOTSCNY 中的一种资产到 auction.btsbots 帐号,
memo 注明期望的成交价,单位是 CNY/BTS。
如果你发送的是BTS,就会被作为BTS卖单,其它任何资产都作为BTS买单。比如我要卖BTS
Code: [Select]
wallet_transfer 10 BTS baozi auction.btsbots 0.064
要买 BTS
Code: [Select]
wallet_transfer 1 CNY baozi auction.btsbots 0.065

过一段时间之后我会启动交易引擎集中成交。
注意为了简化程序,卖BTS统一获得的是 BOTSCNY
« Last Edit: February 05, 2015, 12:04:12 AM by alt »

Offline Musewhale

  • Hero Member
  • *****
  • Posts: 2711
  • 丑,实在是太丑了 !
    • View Profile
Re: 测试BTS钱包集合竞价服务
« Reply #1 on: February 04, 2015, 04:19:20 PM »
太只能
当初你说炒币不烧钱,现在我全家都怀疑我吸毒

Offline alt

Re: 测试BTS钱包集合竞价服务
« Reply #2 on: February 05, 2015, 01:14:27 AM »
下面是一个示例,从02-04 14:00 到 02-05 01:00
买单价格分别为 0.065, 0.063,卖单价格为  0.064, 0.066
根据其价格及订单额计算出成交价格为 0.0645,成交额为 15.625,
然后所有高于成交价的买单和所有低于成交价的卖单会被成交,并且成交价一律为0.0645
我会按成交结果返还对应资产,成交的会注明“交易号 成交价”,未成交的会著名“交易号 return"
这样做的好处是能减少人为控制市场,可以做大额交易,和兑换服务是互补的。兑换服务适合小额交易。

Code: [Select]
2015-02-04T14:58:30 1702476 f40f1f15 ask for 10 BTS at price 0.064 CNY/BTS dorian
2015-02-04T14:59:10 1702480 5afd6028 ask for 10 BTS at price 0.064 CNY/BTS dorian
2015-02-05T00:19:00 1705796 44ddc066 bid with 1 CNY at price 0.065 CNY/BTS dorian
2015-02-05T00:54:40 1706010 daca2efb bid with 1 CNY at price 0.063 CNY/BTS dorian
2015-02-05T00:54:50 1706011 2fb48c73 ask for 1 BTS at price 0.066 CNY/BTS dorian
-------------------------------------------------------------------------------
price is (0.065 + 0.064)/2 match volume is 15.625 BTS balance is 1.0078125 CNY
-------------------------------------------------------------------------------
transfer 15.5 BTS to dorian with memo "44ddc066 0.0645"
return 0.994 CNY to dorian with memo "daca2efb return"
transfer 0.644 BOTSCNY to dorian with memo "f40f1f15 0.0645"
return 4.28 BTS to dorian with memo "5afd6028 return"
transfer 0.362 BOTSCNY to dorian with memo "5afd6028 0.0645"
return 0.9 BTS to dorian with memo "2fb48c73 return"

Offline 天籁

  • Hero Member
  • *****
  • Posts: 532
    • View Profile
Re: 测试BTS钱包集合竞价服务
« Reply #3 on: February 05, 2015, 02:59:34 AM »
借鉴了股票市场机构大额撮合交易。 +5%
BTS account: disneyland
PLAY account: playone

Offline alt

Re: 测试BTS钱包集合竞价服务
« Reply #4 on: February 05, 2015, 03:50:49 AM »
我要在0.065 价格卖10000 BTS,想买的来竞价吧
Code: [Select]
2015-02-05T02:19:30 1706519 e7ad3914 bid with 1.0067 BOTSCNY at price 0.065 CNY/BTS dorian
2015-02-05T02:19:50 1706521 6ee6e9b2 ask for 5.0000 BTS at price 0.065 CNY/BTS dorian
2015-02-05T03:47:30 1707047 9604c628 ask for 10000.0000 BTS at price 0.065 CNY/BTS dorian

Offline cgafeng

Re: 测试BTS钱包集合竞价服务
« Reply #5 on: February 05, 2015, 04:39:18 AM »
多长时间竞价一次
BTC:1EYwcZ9cYVj6C9LMLafdcjK9wicVMDV376

Offline alt

Re: 测试BTS钱包集合竞价服务
« Reply #6 on: February 05, 2015, 04:59:04 AM »
现在没人参与,等有人参与了再定个时间吧

Offline alt

Re: 测试BTS钱包集合竞价服务
« Reply #7 on: February 10, 2015, 03:29:24 PM »
现在可以测试了,每360个BLOCK竞价一次,未成交的自动进入下一轮竞价,最长24小时仍未成交的单会被返还。

Offline ssjpts

Re: 测试BTS钱包集合竞价服务
« Reply #8 on: February 10, 2015, 04:10:15 PM »
价格跌了好多TOT。
新浪微博:剑指未来BTS
BTC:1Bc7gRGotktBmnNFr3BUUM22HFXCCTyxor
BTSX ID:loves,集大众之爱,待到BTS 500刀,10%回退给捐赠者,10%用于运营,剩余80%用于爱心事业和BTS宣传推广。

 

Google+