BitShares Forum
Main => 中文 (Chinese) => 新手入门 => Topic started by: xfund on September 28, 2014, 02:00:29 pm
-
喂价--------------------------------------------------------------------------------------------------------
参考:
https://bitsharestalk.org/index.php?topic=7528.0
https://bitsharestalk.org/index.php?topic=7787.0
(1)git clone https://github.com/Bitsuperlab/operation_tools.git
cd operation_tools/btsxfeed
cp config-sample.json config.json
(2)安装配套程序:
apt-get install python3
apt-get install python3-requests
apt-get install python3-numpy
(3)按自己的要求修改
vi config.json
i编辑
服务器用户名 服务器密码
"delegate_list": ["delegate.baozi", "delegate2.baozi"]
按esc :wq
-----------------------------------------
(4)以新的方式运行client(每次都需要)
去./bitshares_client --server --httpport 9989 --rpcuser 服务器用户名 --rpcpassword 服务器密码
(5)再回到operation_tools/btsxfeed目录
screen
./bts_feed_auto.py USD CNY GOLD BTC
投票链接-----------------------------------------------------------------------------------------
只需要更改自己的名字
Approve she.bitrose (http://daslab.io/scheme/btsx/she.bitrose/approve)
[url=http://daslab.io/scheme/btsx/she.bitrose/approve]Approve she.bitrose[/url]
-
+5%
-
赞一个,能做成图文版本加傻瓜一键完成就更赞了 +5% +5%
-
前来赞个!
-
建立feed node
-
建立feed node
nice work
-
升级用户git pull后,放弃原来的config.json;重新修改模版config-sample.json 。
-
config.json中默认的喂价时间间隔是23.5小时,显然得改小些。
-
config.json中默认的喂价时间间隔是23.5小时,显然得改小些。
那个是喂价过期时间不用改的
建议自定义以下参数
采样频率: sample_timer,多少秒取一次价格
滤波样本长度:median_length,价格中间值最多缓存多少个点,这个值越大价格越不容易被操控,但价格响应也会越慢
市场深度区间:depth_change,0.05意思是取成交价相差 5%内的深度
自定义权重:scale_xxxx
-
谢谢。是不是价格波动在自定义范围内,程序就不启动喂价动作?
不知为啥喂价频率很低。