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: wallet service: call auction  (Read 365 times)

0 Members and 1 Guest are viewing this topic.

Offline alt

wallet service: call auction
« on: February 04, 2015, 03:20:07 PM »

what do you think about call auction?
I think it can help trade market.so I have implement a call auction service.
if you want to sell BTS, sent bts to auction.btsbots, memo is your price, in CNY/BTS
Code: [Select]
wallet_transfer 10 BTS baozi auction.btsbots 0.064
if you want to buy BTS, sent USD/CNY/EUR/GOLD/SILVER/BITYUAN, memo is your price
Code: [Select]
wallet_transfer 1 CNY baozi auction.btsbots 0.065
I'll launch the call auction engine after some times.
Be attention: for simple the logic, all BTS ask order will get BOTSCNY, which is 1:1 to CNY.
there are market make at all main markets, like : BOTSCNY/BTS BOTSCNY/USD BOTSCNY/EUR BOTSCNY/CNY BOTSCNY/GOLD BOTSCNY/SILVER BOTSCNY/BTC
关于集合竞价交易制度可以参考这个链接,我的算法就是按照这个写的
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:03:34 AM by alt »

Offline alt

Re: wallet service: call auction
« Reply #1 on: February 04, 2015, 03:23:12 PM »
« Last Edit: February 05, 2015, 12:03:47 AM by alt »

Offline alt

Re: wallet service: call auction
« Reply #2 on: February 05, 2015, 12:56:44 AM »
here is an example
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 alt

Re: wallet service: call auction
« Reply #4 on: February 05, 2015, 03:54:36 AM »
I want to sell 10000 BTS at price 0.065 CNY/BTS
if you want to buy, join the call auction.
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

 

Google+